New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the ESTAB tcp connection remains even after closed initiator #269
Comments
This message is printed each time a connection is opened against the acceptor. When there is no |
@chrjohn the client initiator tried to logon but no reponse |
is it possible that its something related to the network settings, because I'm testing in my company domain, the remote acceptor running on a vm, I have to logon vpn on my local pc, I mean the initiator doesn't directly connect to the acceptor but go through some vpn gateway( my network knowledge is limited, but I can see that the Peer Address Port showing in the first screenshot 54833 is not the port that my local initiator listened), I'm thinking may be because the gateway port in between remains open even when I closed the initiator, so the acceptor still keep the tcp connection alive(ESTAB), |
so, to summarize, there is two questions:
|
Your heartbeat interval is 200.000 seconds. That's 55 days! Could you please post the acceptor and the initiator config? |
oh, s, I mistook it for microseconds, thanks, I'm doing another round of testing, and here is the config: acceptor:
initiator
|
@chrjohn 2.in this remaining open tcp connection, which resource is occupied that blocks the upcoming new connections(all the connections except the first one become TIME_WAIT), I mean blocks the logon attempt |
When two initiators have exactly the same config, then this also means they have the same SenderCompID/TargetCompID pair? That won't work. The log of the acceptor should show a message "Multiple logons/connections for this session are not allowed" when an initiator tries to connect to an already established session. |
understood, I'll close the ticket, although I didn't see "Multiple logons/connections for this session are not allowed", but I guess that's because I'm using quickfixj-spring-boot-starter instead of'pure' quickfixj, will check on this, thanks again |
Describe the bug
the acceptor written in java is running on redhat vm, and the initiator written in c# is running in local win10 pc;
after suceesfully exchange messages, I left the initiator there without any message exchange for about half an hour, then I closed the initiator, but the tcp connection remains ESTAB, as showing in below screenshot:
and when I try to run the initiator again, it just cannot logon, toadmin cannot get a response,
and the acceptor keep printing:
"2020-03-17 16:25:15.617 INFO 13057 --- [ NioProcessor-9] q.mina.acceptor.AcceptorIoHandler : MINA session created: local=/xxxxxxx:9870, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=/xxxxxx:30986"
generated a lot TIME_WAIT tcp connections
it looks like something has blocked the new connection, obviously the ESTAB Tcp connection must have onhold some resources I guess
To Reproduce
as described above
Expected behavior
the tcp connection should disconnected after closing the initiator
system information:
The text was updated successfully, but these errors were encountered: