It looks like SocketChannel
supports being interrupted, yet regular sockets do not.
Do any java HTTP clients exists which are able to use the SocketChannel
instead of Socket
.
I would like to support threads being interrupted when reading from the server, currently when using URL#openConnection()
if the thread is stuck waiting for a response from the server it can not be unstuck by interrupting it.