Skip to content

Commit

Permalink
remove manual timeout for socket
Browse files Browse the repository at this point in the history
  • Loading branch information
salhk committed Jul 20, 2024
1 parent e16accc commit 6d2bf3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions http_server/http_server.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,13 @@ sub http_server_proc_timer()
dim prev_sock as byte=sock.num
for ii=0 to HTTP_SERVER_COUNT-1
if http_servers(ii).state<>HTTP_SERVER_STATE_IDLE then
if http_servers(ii).ts + 5000 < sys.timercountms then
sys.debugprint("HTTP>timeout")
http_servers(ii).state=HTTP_SERVER_STATE_IDLE
sock.num=http_servers(ii).socket
sock.close()
sock.num=prev_sock
end if
' if http_servers(ii).ts + 5000 < sys.timercountms then
' sys.debugprint("HTTP>timeout")
' http_servers(ii).state=HTTP_SERVER_STATE_IDLE
' sock.num=http_servers(ii).socket
' sock.close()
' sock.num=prev_sock
' end if
end if
next ii

Expand Down

0 comments on commit 6d2bf3a

Please sign in to comment.