Author Topic: telnet timeout  (Read 5850 times)

Offline hervé

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
telnet timeout
« on: October 14, 2011, 10:44:02 AM »
Hi Mark,

I want to have telnet without timeout

I set telnet_timeout to 0xffff to cancel the timeout but it did nothing.

I didn't find where it is used?

I saw a line
Code: [Select]
       Telnet_socket = fnStartTelnet(temp_pars->temp_parameters.usTelnetPort, (2*60), 0, 0, fnTELNETListener);   // 2 minute inactivity timeout
Can I change there to use telnet_timeout instead (2*60) ?

Regards


Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: telnet timeout
« Reply #1 on: October 14, 2011, 09:12:57 PM »
Hi Hervé

The variable telnet_timeout is not used (although it is included in the parameters).
If you change (2*60) to telnet_timeout it will then be a real parameter.
Note that you can also use the define INFINITE_TIMEOUT rather than 0xffff to get no timeout on the session; this is however not always advisable since it could leave the single TELNET session blocked forever if the TELNET client crashes and there is no more data sent.

Regards

Mark

Offline hervé

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: telnet timeout
« Reply #2 on: October 15, 2011, 04:25:43 PM »
Hi Mark,

I changed to add the parameter.
I need it for testing purpose.

Thanks
 :D