femebe icon indicating copy to clipboard operation
femebe copied to clipboard

example program fails on SSL connection

Open petere opened this issue 10 years ago • 1 comments

The program in example/simpleproxy.go aborts ungracefully with "could not understand client" when an SSL connection is attempted (which is the default for libpq clients). At least, handleConnection() should recognize an SSLRequest packet and send back a rejection. It's not clear how to do that in femebe.

(Setting PGSSLMODE=disable works.)

petere avatar Oct 08 '14 14:10 petere

Thanks for the report. For now, I added a clearer error message in the proxy log. I'll see about a better fix (hopefully just SSL support) later.

msakrejda avatar Oct 08 '14 16:10 msakrejda