Skip to content
Tcl Source Code Artifact [5e14e461a5]
Login

Artifact [5e14e461a5]

Artifact 5e14e461a50ff41cd7344e96424137b23cb7c166:

Ticket change [5e14e461a5] - New ticket [2812527fffffffff|2812527fff] <i>ftp library - connection close</i>. by russellbell on 2009-06-26 03:17:44.
D 2009-06-26T03:17:44
J assignee hobbs
J cmimetype text/plain
J comment I've\sfound\sa\sbug\sin\sthe\sftp\sclient\slibrary\s2.4.8\sthat\sbites\nwhen\sa\sconnection\sis\sclosed.\s\sWhen\syou\scall\s::ftp::Close\s$handle\nyou\ssometimes\sget\sa\sTCL\sexception\s(thrown\sin\san\sevent\shandler\nso\sa\scatch\saround\s::ftp::Close\sdoesn't\shelp)\sand\ssometimes\nyou\sget\san\sendless\sloop.\s\sDepends\son\sthe\sftp\sserver\syou're\ntalk\sto\sand\sdoesn't\shappen\sconsistently,\sbut\senough\sto\sbe\nannoying.\n\nThe\sfaulty\scode\sis\sabout\sline\s35\sof\s::ftp::StateHandler\swhich\ndoes\s"set\snumber\s[gets\s$sock\sbufline]".\s\sThis\scode\sreads\na\scontinuation\sline,\sso\snormally\sisn't\scalled\safter\sthe\nsocket\sis\sclosed,\sbut\ssometimes\sit\sis\sand\san\sexception\sis\nthe\sresult.\s\sFix\sis\sto\swrap\sin\sa\scatch,\seasy\senough.\n\nBut\sthen\sthe\ssecond\sbug\sbites\s-\sthis\scode\sis\sin\sa\sloop\sand\nif\sthe\sgets\sreturns\s<=\s0,\sthe\sloop\sis\sinfinite.\s\sFix\sis\sto\nbreak\sfrom\sthe\sloop,\sand\schange\sthe\scode\sstructure\sa\slittle\nto\sensure\s"if\s{\s[eof\s$ftp(CtrlSock)]\s}\s..."\sgets\scalled\nin\sthis\scase.\n\nI\sbelieve\sthis\sis\sa\sseparate\sissue\sto\s1076923\sfound\sby\sKeith\nVetter\s-\sthat\swas\sthe\sgets\son\sline\s16\sof\s::ftp::StateHandler.\n\nIf\sit's\shelpful\sI\scan\sprovide\ssource\sfor\smy\sfix\sto\sftp\s2.4.8,\[email protected]\n\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter russellbell
J subsystem 55.\sOther\sTools
J title ftp\slibrary\s-\sconnection\sclose
J type Bug
K 2812527fffffffffffffffffffffffffffffffff
U russellbell
Z aa248bfa1e7d2b77d49ab96b4a244f13