msakrejda/femebe

example program fails on SSL connection

Opened this issue · 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.)

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.