node-telnet-client icon indicating copy to clipboard operation
node-telnet-client copied to clipboard

make timeout optional

Open banchanKiro opened this issue 3 years ago • 2 comments

Hi, I am creating multiple(large number) instances simultaneously, and in such cases I get a problem with the socket timing out. I downloaded your code and commented out the part for the socket.setTimeout, and I am getting proper results.

Is there any way that the timeout property can be set to optional? here I see that the timeout is set to default of 500.

banchanKiro avatar Apr 07 '21 07:04 banchanKiro

You can only increase timeout for send and exec.

mkozjak avatar Apr 07 '21 07:04 mkozjak

I am facing a problem at that point. When I put timeout, for any value, no matter how large, I am getting a connection timed out error.

banchanKiro avatar Apr 07 '21 10:04 banchanKiro