Skip to content
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

SocketClosed by Listener exception when using samples in high speed loop #651

Open
undecided2013 opened this issue Aug 16, 2020 · 0 comments

Comments

@undecided2013
Copy link

undecided2013 commented Aug 16, 2020

I converted the TradeClient sample to create random orders in a loop in order to test throughput. I have a Thread.Sleep(ms) in the loop. If the sleep is less than 20ms, the Acceptor Sample does not respond and the tradeclient crashes with a socket closed exception. If I set the sleep to 20ms or higher, the Acceptor and TradeClient work harmoniously together.

Logs have this in them

20200818-13:49:25.641 : Session FIX.4.4:SIMPLE->CLIENT1 already disconnected: Resetting...
20200818-13:49:25.647 : Session reset: New session
20200818-13:49:25.647 : Created session
20200818-13:49:39.559 : FIX.4.4:SIMPLE->CLIENT1 Socket Reader 59817589 accepting session FIX.4.4:SIMPLE->CLIENT1 from 127.0.0.1:58496
20200818-13:49:39.559 : FIX.4.4:SIMPLE->CLIENT1 Acceptor heartbeat set to 0 seconds
20200818-13:49:39.566 : Session FIX.4.4:SIMPLE->CLIENT1 disconnecting: Received msg type 'D' when not logged on
20200818-13:49:39.571 : Session reset: ResetOnDisconnect

Looks like some kind of race condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant