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
Send returns no error after broker drops connection #16
Comments
Why is this surprising if the time deltas are fairly small? |
It is surprising if the time deltas are large. So something seems amiss. No idea at present as to cause. If you have any insight, I would love t hear it. |
@andrewzeneski Please correct me if the following is incorrect. Observed Scenario
Expected Scenario
|
@gmallard: That is correct. In my testing the "sleep" time was more in |
Thanks. Some notes for posterity. This behavior is somewhat broker dependent. I observe the unexpected behavior with:
Strangely, I observe the expected behavior with:
I believe I can bypass the unexpected behavior with a little more due diligence (and overhead) in stompngo's writer goroutine. More on this later. I continue to think that timings can make a difference here. If client is sending every 100 nano-seconds, and a broker crashes, it seems likely that it will take several 'send cycles' for the client TCP system to even note that the connection is 'gone'. Also note that different scenarios, e.g. a cut or unplugged wire will cause totally different behavior. |
@andrewzeneski Plese try a system built with the HEAD of current 'dev' branch: e43869f |
Closed: |
If you are still using the stompngo package please try the current v.1.0.2 tag. Tag information: b1f1d96 refs/tags/v1.0.2 Document that version number in any issue reports. Thanks for the support. Guy |
The first attempt to send after a broker drops the connection returns no [expected] error. Subsequent attempts to send will return an expected error.
The text was updated successfully, but these errors were encountered: