Skip to content
Tcl Source Code Artifact [7c386ce4fb]
Login

Artifact [7c386ce4fb]

Artifact 7c386ce4fb9a863d9ffc2f74f8b30877d9927d94d444223807822d5a408f1309:

Ticket change [7c386ce4fb] - Ticket [55bf73b52bd77304|55bf73b52b] <i>http reuses connections after 101 Switching Protocols</i> status still Open with 3 other changes by kjnash on 2022-05-10 10:04:55.
D 2022-05-10T10:04:55.782
J icomment All\sversions\sof\shttp\s2.9\sbefore\s2.9.7\shave\sthe\sbug.\s\sAlso\sall\sversions\sof\shttp\s2.10\s(these\swill\sbe\sfixed\sif\s2.9.7\sis\ssatisfactory).\r\n\r\nThe\sbranch\sbug-55bf73b52b-8.6\shas\sa\sfix\sfor\sTcl\s8.6\s(as\sthe\snew\sversion\s2.9.7\sof\shttp).\r\n\r\nThe\sfix\sis\salmost\sas\sadrianmedranocalvo\ssuggested:\r\n\r\n1.\sUse\sa\sfresh\sconnection\sif\sthe\srequest\shas\s"Connection:\supgrade"\sand\s"Upgrade"\sheaders.\s\sThe\svalue\sof\s-keepalive\spassed\sto\shttp::geturl\sis\signored.\s\sThe\ssocket\sis\snot\savailable\sfor\sfurther\sHTTP\srequests.\r\n\r\n2.\sIf\sthe\sserver\sanswers\sto\sthat\srequest\swith\sa\s"101\sSwitching\sProtocols"\sand\sresponse\sheaders\s"Connection:\supgrade"\sand\s"Upgrade",\sthe\ssocket\sis\slonger\sHTTP.\s\sThe\ssocket\sis\snot\sclosed,\sand\sthe\s-command\scallback\spassed\sto\shttp::geturl\sis\sresponsible\sfor\sfurther\sprocessing.\r\n\r\nAlso:\r\n\r\n3.\sA\stest\sfile\shas\sbeen\sadded\sto\sthe\swebsocket\sTcllib\smodule.\s\sThis\stests\ssimple\s\sWebSocket\soperations,\sincluding\sa\sregression\stest\sfor\sthis\sbug.\s\sPlease\sadd\sfurther\stests\sof\sthe\swebsocket\smodule\sto\sthis\sfile.\r\n\r\n4.\sThe\sbugfix\sshould\sbe\ssuitable\sfor\sprotocol\supgrades\sto\sTLS\sand\sHTTP/2,\sbut\sthis\shas\snot\sbeen\stested.\r\n\r\n5.\sThe\sman\spage\shttp(n)\snow\shas\sa\sbrief\ssection\sdescribing\sprotocol\supgrades.
J login kjnash
J mimetype text/plain
K 55bf73b52bd77304481150b5e94d2c50d2c18b39
U kjnash
Z d8efcfeecefea215753c9f10033bdd2a