Skip to content
Tcl Source Code Artifact [70b36dbbc2]
Login

Artifact [70b36dbbc2]

Artifact 70b36dbbc2a4bb5ad73f692bf8226d63f148d713:

Ticket change [70b36dbbc2] - Ticket [780533ffffffffff|780533ffff] <i>[fcopy] callback sometimes fails to trigger</i> status still Open with 4 other changes by msofer on 2004-04-01 21:22:50.
D 2004-04-01T21:22:50
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nIs\sthis\sa\sreal\sbug,\sor\smainly\sEBKAC?\sIf\sit\sis\sa\sreal\sbug,\sit\nneeds\sattention\s-\sif\sit\sis\sEBKAC,\sI\sneed\sa\sspanking\s...\n\nThe\sbug\sI\s(think\sthat\sI)\ssee\sis:\s[fcopy]\sis\sfailing\sto\scall\nits\scallback\safter\scopying\sthe\srequired\snumber\sof\sbytes.\n\nThe\stest\sscript\slacks\scomments,\sportability\s('puts\sstderr'),\nand\snicety\s(writes\sa\stempFile\sin\swd,\sleaves\sit\sthere),\nsorry.\sWhat\sit\sdoes\sis:\n\n1.\sopens\sa\sserver\ssocket;\son\sconnection\s4\sbytes\sare\sread\n(number\sN\sof\sfollowing\sbytes),\sthen\sN\sbytes\sare\sfcopied\sto\ntempFile,\scalling\sthe\sdoneCopy\scallback\swhen\sdone.\sdoneCopy\nwrites\sa\slog\sto\sstderr,\send\sthen\scauses\sthe\sapp\sto\sexit.\sThe\napp\sexits\salso\safter\sreceiving\sthe\ssecond\smessage\sthrough\nthe\spipe\s(used\sto\ssignal\sa\sfailure).\n\n2.\sopens\s(via\spipe)\sa\ssecond\stclsh\sthat\sconnects\sto\sthe\nserver\sand\ssends\sa\sbinary\s(length+message).\sAfter\smessage\nend,\sthe\sclient\swaits\sfor\s10\sseconds\sand\sprints\san\sexit\nmessage\s-\sif\sit\sstill\salive,\swhich\sshould\snot\shappen\sas\sthe\npipe\sshould\shave\sbeen\sclosed\sbefore\sthat,\swhen\sthe\smain\nprocess\sexits.\n\nObserved\sbehaviour:\sfcopy's\scallback\sis\snot\scalled\safter\sthe\n10\sseconds,\sthe\sclient\sprints\sits\sexit\smessage.\n\nShould\shave\sobserved:\sfcopy's\scallback\sis\scalled,\sno\sclient\nexit\smessage\sseen.\n\nWeirdness:\sif\sthe\sclient\ssends\san\sextra\sbyte\sdown\sthe\nsocket,\sall's\swell.\s\s\n\n
J login msofer
J mimetype text/plain
J username msofer
K 780533ffffffffffffffffffffffffffffffffff
U msofer
Z 05e02a91ae1118c34426532c6291ede2