TimelordUK / jspurefix

native typescript FIX engine
MIT License
58 stars 27 forks source link

Node crash if tcp-initiator can't connect to server #45

Closed hmvs closed 1 year ago

hmvs commented 1 year ago

Fix for #44

hmvs commented 1 year ago

Hmmm. It doesn't fix the issue fully. Let me debug further.

hmvs commented 1 year ago

Aha. We have some lost promise

repeatConnect reject with message StagingClient: timeout of 22 whilst connecting (module=StagingClient:TcpInitiator) Error: StagingClient: timeout of 22 whilst connecting at /..../node_modules/jspurefix/src/transport/tcp/tcp-initiator.ts:183:20 [nodemon] app crashed - waiting for file changes before starting...

hmvs commented 1 year ago

The thing is. I open session only when it is needed. And right now we have some lost promise that crashes the whole app.

TimelordUK commented 1 year ago

Thanks for fix