.
D 2000-10-26T01:00:38
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s611\sBug\nVersion:\s8.0p2\nSubmitDate:\s'1998-05-21'\nLastModified:\s'1998-06-04'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\sstanton\nChangedBy:\sstanton\nOS:\sAll\sWindows\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\s8.0.3\nClosedDate:\s'1998-06-04'\n\n\nIn\sa\sconversation\swith\sBob\sLamoureux\sof\sBridge\sInformation\sSystems\nyesterday,\she\sreported\sthe\sfollowing\sbug:\n\nIn\sthe\sTcl\ssocket\scode\sfor\sWindows,\sthere\sis\sapparently\sa\scall\sto\nioctl(FIONREAD)\sto\s"peek"\son\sthe\ssocket\sto\ssee\show\smany\sbytes\sare\nready.\s\sThe\sMicrosoft\scode\sthat\simplements\sthis\sfunction\sdoesn't\nproperly\shandle\sthe\scase\swhere\sthe\sready\sdata\sspans\smore\sthan\sone\nbuffer.\s\sApparently,\sit\sworks\sby\sreading\sall\sof\sthe\savailable\sinput\ndata,\scounting\sthe\sbytes,\sthen\spushing\sall\sof\sthe\sdata\sback\sinto\nthe\sbuffers.\s\sHowever,\sit\sapparently\sisn't\spossible\sto\spush\sback\smore\nthan\sone\sbufferfull\sof\sdata,\sso\sany\sdata\sbeyond\sthe\sfirst\sbuffer\sis\nlost.\s\sAfter\sthe\sioctl\scall\sTcl\stries\sto\sread\sthe\sdata,\swhich\shangs\nsince\sthere\sisn't\senough\sdata\sthere\sanymore.\s\sIt\ssounds\slike\sthis\nmay\seven\shang\sthe\ssystem\s(it\shangs\slow\senough\sin\sthe\skernel\sto\smake\nit\shard\sto\sinterrupt).\s\sBob\stracked\sit\sdown\swith\sthe\shelp\sof\nMicrosoft\sengineers,\swho\sthen\ssaid\sit\swas\sa\sknown\sproblem\sand\sit's\nour\sfault\sfor\strying\sto\sport\sUnix\scode\sto\sWindows\s(sheesh).\n\nAnyhow,\sthe\ssolution\sis\sprobably\sto\schange\sthe\ssocket\scode\sto\sspin\sa\nthread\slike\spipes\sand\sserial\slines,\sso\sthat\sit\sisn't\snecessary\sto\n"peek"\son\sthe\ssocket.\n\n\n\n
J foundin obsolete:\s8.0p2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 63.\s(unused)
J title Bug\sin\sWindows\ssockets
J type Bug
K 218459ffffffffffffffffffffffffffffffffff
U nobody
Z 045c020a863b726eb968efc476fa5f59