Hi,

Recently CGOS 19x19 stopped often.
I checked log, and found it stopped
in "proc infoMsg {msg}" function, when it sends message to all.

-----------------------------------------------------
error writing "sock18": connection reset by peer
   while executing
"puts $soc "info $msg""
   (procedure "infoMsg" line 8)
-----------------------------------------------------

So I modified from
puts $soc "info $msg"
to
catch {puts $soc "info $msg"}

and restarted.
For viewer code, "catch" has been used, like
catch {puts $v "info $msg"}

I hope this change makes server stable.
Current server code is
http://www.yss-aya.com/20170914cgos_yama.zip
cgos.tcl    ... server
webuild.tcl ... making html
viewer.cgi  ... sgf viewer

My change from original code.
-----------------------------------------------------
webuild.tcl
 recent 300 games
 viewer.cgi with wgo.
cgos.tcl
 forbidden "1024" login name (numeric only account)
 handling draw
 catch {puts $soc "info $msg"}  in proc infoMsg {msg}.
   sometimes CGOS server -socket function stopped here.
-----------------------------------------------------

Thanks,
Hiroshi Yamashita

_______________________________________________
Computer-go mailing list
Computer-go@computer-go.org
http://computer-go.org/mailman/listinfo/computer-go

Reply via email to