µTasker Forum
µTasker Forum => µTasker general => Topic started by: hervé 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
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
-
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
-
Hi Mark,
I changed to add the parameter.
I need it for testing purpose.
Thanks
:D