threshold
asked on
What's that? SoLinger?
What's the difference between SoLinger and SoTimeout in java.net.Socket/java.net.S erverSocke t ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
- Set to false: no linger timeout -> the connection will be closed only when the data transmitted
to the socket has been successfully delivered (as TCP guarentees this). In general, a linger timeout should not be used. If you use it, there is the possibility to have packets of this connection interfering with packets of a new connection in the case where it is established from the same client socket port to the same server port.
- There is no setSoLinger() method for a ServerSocket in JDK 1.1. Is there?
to the socket has been successfully delivered (as TCP guarentees this). In general, a linger timeout should not be used. If you use it, there is the possibility to have packets of this connection interfering with packets of a new connection in the case where it is established from the same client socket port to the same server port.
- There is no setSoLinger() method for a ServerSocket in JDK 1.1. Is there?
ASKER
Thank.
ASKER
Socket.setSoLinger(boolean
If I set the enable as False and close the socket, will it close the connection immediately or wait for data transmittion forever?
And, I know the setSoTimeout in ServerSocket will effect the block-time of accept().
Could you tell me what the setSoLinger in ServerSocket will effect?