[FEATURE REQUEST] Accept connected sockets from custom socket factory
See original GitHub issueIs your feature request related to a problem? If so, please give a short summary of the problem and how the feature would resolve it
Currently, when using a custom socket factory that returns a connected socket, a SocketException
is thrown because the getConnectedSocket
method in IOBuffer.java
will attempt to connect without checking whether the socket is already connected.
Describe the preferred solution
Check whether a socket is connected before attempting to connect to it in getConnectedSocket
. See the corresponding code in the Postgres JDBC driver for reference
Additional context
This small change would allow for compatibility with the Cloud SQL JDBC Socket Factory.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Using Custom Socket Factories with Java RMI
This tutorial shows you steps to follow to implement and use custom socket factories with Java Remote Method Invocation (Java RMI). Custom socket...
Read more >SSL/TLS connection from android to a Custom Socket Server
The default socket IS the secure socket, at least with any sane TCP/HTTP library. You have to make code changes to tell the...
Read more >[Feature Request] get RealConnection rawsocket localport · Issue ...
If you're looking for a workaround, you can provide a custom SocketFactory that remembers the sockets returned. All reactions.
Read more >Introducing Socket Broker - ExceptionFactory
SOCKS5 Proxy Connection. Connecting through a proxy server requires creating a SocketFactory and configuring the client to use the factory prior ...
Read more >Sockets Examples - Mule 4 | MuleSoft Documentation
Run your Mule application and start a TCP client socket to send the expected query parameter by ... On the Connection tab, set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @shubha-rajan, sorry for the delay. We were busy working on the RTW and HotFix for our driver, and I will create a PR for this issue soon.
Just tested it and it works!