-
Notifications
You must be signed in to change notification settings - Fork 5
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
Client always times out #169
Comments
@alwhiting Just so you know I been expecting this myself recently. You might have nailed it. Let me work on it this weekend. |
# [3.0.0-beta.1](v2.3.1...v3.0.0-beta.1) (2024-10-31) ### Features * client connection ([e6ee6a3](e6ee6a3)), closes [#169](#169) * client connection ([#175](#175)) ([aeb4108](aeb4108)) ### BREAKING CHANGES * Default now set to be always connected. Must set connectionTimeout, if you want your client to disconnect after a certain time. The max is still 60 seconds.
🎉 This issue has been resolved in version 3.0.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@alwhiting I just pushed the changed into the develop branch. There should be a NPM that you should test out prior to me releasing it. I have to do some other internal testing, a lot of other series of tests that I run through not on any CI since this deals with medical applications. So let me know how your testing. By Monday, I will release on main. |
I have been working around it with this hack for now:
That got around the normalize function enforcing a timeout; when it's set to 0 the timeout that was killing the socket was not run. |
What’s the PR for this intergrated into the code? |
@alwhiting Add it to PR #176 please :) |
I didn't actually fork this one just did the hack I pasted above in my code so I could bypass the minimum value for the |
sweet. I have already done that in develop:
node-hl7-client/src/utils/normalizedClient.ts Line 163 in e66b85a
and now its working like designed. codec is fixed in the node-hl7-package. merging in. |
Perhaps I'm missing something here; but the block starting at this line seems to be causing the client to constantly be reconnecting:
node-hl7-client/src/client/connection.ts
Line 323 in dcc0f10
Is there something that should be done to prevent this behavior? It's not possible to set the connectionTimeout to 0 so this is basically constantly triggering a socket destruction and then the retry logic kicks in. Also the error comes up as "server disconnected" but in reality it is us, the client, who disconnected, which makes me think maybe this is unintentional.
The text was updated successfully, but these errors were encountered: