Open ttcds opened 1 month ago
@ttcds Thank you for the test case but we'll need more information about the where the server and client is running on. What version of Linux and the kernel are you running?
@trevorbernard I am using a Yocto build (dunfell) and using kernel 5.4.147.
The situation is as follows:
What version of the Java SDK?
Openjdk 17.0.10
@ttcds is the issue that there are extraneous SYN
packets sent or that the ROUTER
maintains an established connection with a closed socket?
After closing a ZMQ.Socket like below (simplified code) a few seconds later a SYN_SENT is send which causes an underlying tcp socket to connect again. And when starting a new thread with a new ZMQ.Socket there are 2 tcp sockets open to the endpoint while the first one should have never reconnected again by itself.
Code
After a few disconnects and reconnects the output of netstat looks like this: