Perhaps someone has reported it before, but I couldn't find it.
A timeout of 1 to 999 is good with no problems.
A timeout of 1000 and higher causes the GUI to be sluggish.
If you keep going up to 2000, 3000, 4000, etc. -- it will be exponentially sluggish.
2 Questions:
What is happening between 999 and 1000 to cause this?
Is this a Windows problem or AutoIt?
The test script below, serves to reproduce the problem. (tested on 2 machines)
AutoIt
TCPStartup() ; Local $Socket, $Server = TCPListen('127.0.0.1', 80) If $Server = -1 Then Exit ; Opt('TCPTimeout', 999); <-- change this to reproduce the problem ; Local $gui = GUICreate('TCPTimeout Test', 400, 250, -1, -1) GUISetState(@SW_SHOW) ; While 1 Switch GUIGetMsg() Case -3 TCPShutdown() GUIDelete($gui) Exit EndSwitch ; $Socket = TCPAccept($Server) If $Socket <> -1 Then TCPCloseSocket($Socket) EndIf WEnd ;




