Artifact
3968ceb651dc357e64c94fbcea74c5490dc052a4:
Ticket change
[3968ceb651]
- New ticket
[3472316fffffffff|3472316fff] <i>fconfigure <sock> -error called twice in Connect</i>.
by
zwischenzugs on
2012-01-11 09:32:04.
D 2012-01-11T09:32:04
J assignee patthoyts
J cmimetype text/plain
J comment It\sappears\sthat\sif\syou\scall\sfconfigure\stwice\son\sa\sreset\ssocket\s(for\sexample)\sa\scall\sto\sfconfigure\s<sock>\s-error\scan\sonly\sbe\scalled\sonce\sto\sretrieve\sthe\serror.\n\n[Terminal\s1]\nT1\s$\stclsh\n%\ssocket\s-server\ssockproc\s12345\nsock5\n%\s\n\n[Terminal\s2]\nT2\s$\stclsh\n%\ssocket\slocalhost\s12345\nsock5\n%\s\n\n[Terminal\s1]\n%\s^C\nT1\s$\n\n[Terminal\s2]\n%\sfconfigure\ssock5\s-error\nconnection\sreset\sby\speer\n%\sfconfigure\ssock5\s-error\n%\s\n\nIt\sseems\sthis\scauses\sthis\sif\sclause\sto\sultimately\sreturn\san\serror\sstring\swhich\smeans\sit's\snot\spossible\sto\sdetermine\swhether\sthe\swriteable\ssocket\shas\seof\sand/or\sthrew\san\serror:\n\n\s\s\s\sif\s{\n\s\s\s\s[eof\s$state(sock)]\s||\n\s\s\s\s[string\slength\s[fconfigure\s$state(sock)\s-error]]\n\s\s\s\s}\sthen\s{\n\s\s\s\sFinish\s$token\s"connect\sfailed\s[fconfigure\s$state(sock)\s-error]"\s1\n\s\s\s\s}\selse\s{\n\ntcl8.5.11/library/http/http.tcl\n\nAs\san\saside,\sthe\sdocumentation\sfor\ssocket\sappears\snot\sto\sstate\sthat\sthe\serror\smessage\scan\sonly\sbe\sretrieved\sonce.\n\nIf\sthe\sfconfigure\s<sock>\s-error\sis\srun\stwice\sin\squick\ssuccession\sthis\sappears\sto\smake\sno\sdifference\s(ie\sI\scouldn't\sdetermine\sthat\sit\swas\sa\srace\scondition\swith\ssockets\sstill\sin\sthe\sOS's\smemory).
J foundin obsolete:\s8.5.11
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter zwischenzugs
J subsystem 29.\shttp\sPackage
J title fconfigure\s<sock>\s-error\scalled\stwice\sin\sConnect
J type Bug
K 3472316fffffffffffffffffffffffffffffffff
U zwischenzugs
Z a8285e325635d6f1d6ab871b8dbbd018