[Computer-go] CGOS server update

Hiroshi Yamashita yss at bd.mbn.or.jp
Wed Sep 13 11:40:38 PDT 2017


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"
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
cgos.tcl    ... server
webuild.tcl ... making html
viewer.cgi  ... sgf viewer

My change from original code.
  recent 300 games
  viewer.cgi with wgo.
  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.

Hiroshi Yamashita

More information about the Computer-go mailing list