On 25/10/2010, at 10:41 PM, john skaller wrote: > On linux I get this problem with the webserver: > > curl .... > > <span class=small_keyword>return</span> o + <span > class=fstring>')'</span>; > } > } > } > > > </pre> > </body></html> > curl: (56) Failure when receiving data from the peer > > What am I doing wrong here? That is in fact the whole page. Firefox says > "connection reset whilst the page was loading". In fact it displays the page > correctly, then blanks it out with that message. > > HTML 0.9 (what the server runs) is a frameless protocol.. why do these clients > think that the page wasn't finished? > > The program closes the socket.. it doesn't do a shutdown. Should it? > > Oh .. I am fetching this data *over the internet* from my slicehost > to my local mac.. amazing. It works. A couple of fixes and we have > a Felix based webserver put documentation on the net live > from its local copy of the repository. (All I need to do is figure out > how to start a daemon :)
OMG firefox is stupid .. doesn't even know when a socket is shutdown :) Hmmm.. shutdown doesn't work. in HTTP 1.1 there is a "content length" field; I'm NOT sending that because it is a serious performance problem: one can't know the length of generated text until after it is generated :) What am I supposed to do, cache the whole reply before sending it?? -- john skaller skal...@users.sourceforge.net ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language