-
Notifications
You must be signed in to change notification settings - Fork 42
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
Does the send callback indicate an error condition? #56
Comments
Not familiar with this lib, but your sleep function is blocking the event loop. Meaning no callbacks can fire until it (and everything in sync after it) completes. I'd look into setTimeout if I were you. |
That was the point of the sleep function... to halt execution until the network connection was disabled, and to fire the callbacks afterwards so that they fail to send. Regardless, the reason why there is no error propagation is because the underlying quickfix library does not propagate send errors. I believe it stores all failed messages into a queue/buffer and just retries them indefinitely. The send function in quickfix always returns true, so the nodejs wrapper would never know if it ever failed. I was able to trigger the |
Apologies, misunderstood what you were trying to do.
…On Tue, 20 Aug 2019, 02:14 Arun Joseph, ***@***.***> wrote:
Closed #56 <#56>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AAHMYD63POAPGC2NZSDRRNTQFLPG5A5CNFSM4IK2NBBKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTECKH4A#event-2567218160>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHMYD37D554MZU5QASMZYDQFLPG5ANCNFSM4IK2NBBA>
.
|
It seems that the callback for the FIX send and sendRaw functions only trigger HandleOKCallback and not the HandleErrorCallback. The reason why I suspect this is because I tried the following scenario.
I also tried the success case and confirmed the passed in value of the callback is still null.
The default version of HandleErrorCallback which is not overriden by FixSessionAsyncWorker passes back an error value. The overriden HandleOKCallback always passes back a null value. In nan's WorkComplete function, it conditions which callback to call based on
errmsg_
. I suspect node-quickfix does not seterrmsg_
when a failure occurs.Code Snippets I used inside my initiator:
Definition of sleep:
The text was updated successfully, but these errors were encountered: