websrv: re-init connection forever

This commit is contained in:
Joerg Deckert 2014-07-23 08:23:25 +02:00
parent 7b7e5bde66
commit 6872d9d008
1 changed files with 8 additions and 15 deletions

View File

@ -64,7 +64,7 @@ VAR
long cog, random_value long cog, random_value
PUB main | i PUB main
rr_start rr_start
@ -85,18 +85,11 @@ PUB main | i
getcfg getcfg
ios.print(@strMsgEnd) ios.print(@strMsgEnd)
i := 0
repeat repeat
if ios.keystat > 0 if ios.keystat > 0
ios.key
quit quit
if (handleidx := ios.lan_listen(handleidx,80)) == $FF 'Empfangs-Socket auf Port 80 öffnen if (handleidx := ios.lan_listen(handleidx,80)) <> $FF 'Empfangs-Socket auf Port 80 öffnen
if i > 20
ios.print(@strErrorNoSock)
quit
else
i++
next
i := 0
if ios.lan_isconnected(handleidx) 'bei bestehender Verbindung... if ios.lan_isconnected(handleidx) 'bei bestehender Verbindung...
if webThread == 0 if webThread == 0
ios.lan_txflush(handleidx) ios.lan_txflush(handleidx)