D 2010-12-24T23:55:38 J +comment \n\nanonymous\sclaiming\sto\sbe\sJoerg\sSonnenberger\sadded\son\s2010-12-24\s23:55:38:\nI\sthink\sI\sfound\sthe\sroot\sof\sthis\sproblem.\sfossil\sis\susing\sssh\s-T\sto\sconnect\sto\sthe\sserver.\sThis\sinhibits\sthe\screation\sof\sa\spty\sand\stherefore\ssh\sis\sstarted\swith\sa\spipe\sfor\sstdin/stdout/stderr.\sThis\sin\sturn\smakes\slibc\suse\sbuffering.\sThe\scommands\sare\ssent\sto\sthis\sshell\sand\sthe\sfollowing\sPOST\srequest\sis\sobtained\sby\ssh\stoo\s(due\sto\sthe\sbuffering).\sAs\sa\sresult,\sthe\sremote\sfossil\sis\swaiting\sin\sread\sfor\sdata\sthat\swill\snever\sarrive.\r\n\r\nI\sthink\sthe\sbest\sapproach\sfor\sthis\sis\sto\snot\sdo\sfancy\sthings\sinvolving\sthe\sshell,\sbut\sswitch\sto\ssomething\slike:\r\n\r\n\r\nssh\s-e\snone\s-T\s\s\sssh-sync\s\r\n\r\n\r\nssh-sync\sdiffers\sfrom\stest-http\sby\slooping\son\sstdin\suntil\sit\sis\sclosed.\sE.g.\suse\sssh\slike\sthe\sequivalent\sof\skeep-alive\swith\sHTTP.\r\n\r\nAdvantage:\smuch\sless\schance\sfor\sa\sshell\sto\smock\sthings\sup.\sIt\scan\sbe\seasily\schanged\sto\smake\sfossil\san\sssh\ssubsystem,\swhich\smight\sbe\sa\snice\soption\sfor\sdeployment\son\scentral\sservers,\swhere\snormal\susers\sshouldn't\shave\sshell\saccess. K 115e95ac11631d0f3f2cf2427f1a7212999b079e U anonymous Z 080a461c864877e11eccf0fb42c5a10f