Re: problem with PoCo::Server::SimpleHTTP

Eriam Schaffter <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Lars Balker Rasmussen a écrit :
>> To reproduce:
>>
>> 	# mkdir -p /tmp/root/static ; echo foo > /tmp/root/static/foo.txt
>> 	# perl simplehttp.pl
>>
>> and
>>
>> 	# wget -O foo.txt.1 http://localhost:8000/static/foo.txt & ; wget -O foo.txt.2 http://localhost:8000/static/foo.txt
>>
>> Both wgets will get the file contents, but only one will close the stream.
>>
>> Is there some kind of obvious mistake I'm making?
>>     
It's weird but I can't reproduce:

[eriam@home ~/temp]$ perl test.pl
3 -> GOT_MAIN (from 
/usr/local/lib/perl5/site_perl/5.8.8/POE/Component/Server/SimpleHTTP.pm 
at 806)
3 -> GOT_STREAM (from test.pl at 59)
3 -> CLOSE_STREAM (from 
/usr/local/lib/perl5/site_perl/5.8.8/POE/Kernel.pm at 1810)
3 -> GOT_MAIN (from 
/usr/local/lib/perl5/site_perl/5.8.8/POE/Component/Server/SimpleHTTP.pm 
at 806)
3 -> GOT_STREAM (from test.pl at 59)
3 -> CLOSE_STREAM (from 
/usr/local/lib/perl5/site_perl/5.8.8/POE/Kernel.pm at 1810)

Is this what you expected ?

Thanks

Eriam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.