-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42883/
-----------------------------------------------------------
Review request for geode, Hitesh Khamesra and Udo Kohlmeyer.
Bugs: GEODE-871
https://issues.apache.org/jira/browse/GEODE-871
Repository: geode
Description
-------
This change-set alters the client to abort its TCP/IP connection to the locator
by enabling SO_LINGER and setting the timeout to zero before it closes the
connection. The Locator closes its connection first, which puts it into
TIME_WAIT. The client then aborts the connection, which cleans up the
Locator's TIME_WAIT connection.
Diffs
-----
gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/tcpserver/TcpClient.java
47f50b342e495a25978d86f717b6140b67687618
gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/tcpserver/TcpServer.java
f52b9ab3a47c9dc4147a852695b789a2d11b958e
Diff: https://reviews.apache.org/r/42883/diff/
Testing
-------
Manual testing using TcpClient to send GetAllServersRequests to the locator
thousands of times & counting the number of sockets open on the locator machine
with "netstat -a".
I'm not sure how this could be unit-tested.
Thanks,
Bruce Schuchardt