News

If you call Socket.setSoLinger (true, 10000), then call close (), the documentation states that this causes close () to block until all of the data has been sent to the TCP destination.