CABrouwers / node-red-contrib-telnet

Apache License 2.0
3 stars 1 forks source link

telnet-request doesn't observe timeout value #7

Open HonestJohn61 opened 2 years ago

HonestJohn61 commented 2 years ago

Thanks for this module. For the most part It's working for my use case, but if the server is a bit slow to respond, the telnet-request node doesn't appear to be observing the timeout value set in the telnet-connection node. Here's an example from the debug log:

22/03/2022, 12:00:49node: Sent msg.payload : string[7] "loadp 1" 22/03/2022, 12:00:49node: AL16 msg : string[51] "Response wait exceeded timeout value (request 2500)" 22/03/2022, 12:00:49node: Error msg.payload : string[5] "error" 22/03/2022, 12:00:54node: Sent msg.payload : string[7] "loadp 1" 22/03/2022, 12:00:54node: AL16 msg : string[51] "Response wait exceeded timeout value (request 2500)" 22/03/2022, 12:00:54node: Error msg.payload : string[5] "error"

It appears that telnet-request is erroring within one second when the timeout value request is set to 2.5 seconds

Youaresmarter commented 1 year ago

The same problem. It works the first time after deployment but doesn't work after.