﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1863	UDPRecv halts script for 100ms when there is no data to recieve	qsek@…		"If this is intended/recommended, can there be inserted an option for lowering or removing this 'timeout'?

Purpose: I want to script a game based on UPD fast packet sending and recieving at the same time while painting 2D Graphics and doing various stuff.
To have 100 ms delay on each UDPRecv is quite noticable for this kind of usage.

Example:

{{{
;;This is the UDP Server
;;Start this first

; Start The UDP Services
;==============================================
UDPStartup()

; Register the cleanup function.
OnAutoItExitRegister(""Cleanup"")

; Bind to a SOCKET
;==============================================
$socket = UDPBind(""127.0.0.1"", 65532)
If @error <> 0 Then Exit

While 1
;~ 	sleep(10)
	$ti = TimerInit()
    $data = UDPRecv($socket, 50)
	ConsoleWrite(Round(TimerDiff($ti))&""ms"" & @CRLF) 
    If $data <> """" Then
        ConsoleWrite(""UDP DATA: ""& $data& @CRLF)
    EndIf
WEnd

Func Cleanup()
    UDPCloseSocket($socket)
    UDPShutdown()
EndFunc
}}}
"	Bug	closed		AutoIt	3.3.6.1	None	Rejected	UDP timeout recv	
