Re: java.net.Socket should report the attempted address and port

2018-04-22 Thread James Roper
This would be especially useful in asynchronous applications - since in those cases the exception rarely maps back to a place in user code that would indicate what is being connected to. As someone who has spent a lot of time supporting developers who use asynchronous libraries and post exceptions

java.net.Socket should report the attempted address and port

2018-04-22 Thread Péter Gergely Horváth
Hi All, I am wondering if it would be possible to make a minor improvement to the way *java.net.Socket* reports connectivity errors and incorporate the attempted address, port and the timeout used into the exception message. The current implementation emits a generic error message, which is not