krummas / DrizzleJDBC

A BSD licensed JDBC driver for Drizzle and MySQL
BSD 3-Clause "New" or "Revised" License
31 stars 22 forks source link

SSL support broken on JDK 1.6 #8

Closed WoozyG closed 11 years ago

WoozyG commented 11 years ago

Running the Oracle JDK 1.6.0, MySQLProtocol.close() gets an unhandled UnspportedOperationException when trying to call socket.shutdownInput() when socket is an SSLSocket. This is per the SSL/TLS spec, and can be seen in the OpenJDK source.

Looks like this may have changed since previous JDK versions? The current close() code looks like it is supposed to handle this case, but only by catching the checked exception, not this runtime one.