Affects Version/s: jdbc-1.1.2
Fix Version/s: None
Environment:Linux, JDK 1.7
Its possible to use a custom SocketFactory. To use unix Sockets theres exist a project called junixsocket here:
I've writte a custom SocketFactory which does create unix sockets - but the code does force the connect to an
InetSocketAddress sockAddr = new InetSocketAddress(host, port);
in connect of MySQLProtocol class - which are of cause not supported and denied by the AFUnixSocket implementation.
I've patched the Protocol class to read like this:
and did specify the property unixsocket - value does not matter - to the properties given to the Driver class.
After that i was able to use AF_UNIX Sockets.
Would be nice if its possible to get some patch or property switch like this one, to make use of them.
Or maybe use a custom SocketFactory interfae like connector/J does.