gairne/jhgdc — comment on commit ce1b2f624baa028bc3a2478be46f489a9b06ad2b
File: libjhgdc/src/jhgdc/library/HGDClient.java line 756
By gairne:

I haven't looked at the code in a while but from memory:

We can't close the socket as that would lose the connection to the server. We do however have to replace the streams, but have to do a little hack to stop the output stream from actually closing (this also kills the connection). If we do not replace the streams, the server does not receive any data that is sent.