Subject: | SimpleHTTP server exits with error on rapid reloads (IGNORE 4849) |
Code a server based on the synopsis code and start it. In the browser, enter an illegal URL (like "http://host/foo"), then rapidly click the refresh button. Several reloads occur, then server exits with errno 29 (Solaris 7), and DEBUG-mode messages (starting from last click):
Acceptor got connection, sending to parent at /usr/local/lib/perl5/site_perl/5.8.1/POE/Component/Server/SimpleHTTP.pm line 320.
Got_Connection completed creation of ReadWrite wheel ( 6 ) at /usr/local/lib/perl5/site_perl/5.8.1/POE/Component/Server/SimpleHTTP.pm line 352.
Wheel 6 generated read error 0:
Can't call method "put" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.1/POE/Component/Server/SimpleHTTP.pm line 468.
Successful reloads have above trace plus messages from lines 475 and 415 before the "read error" message (and no undef error).
It looks like the rapid reload closes the wheel socket before Got_Output() runs. Platform: Server: Perl 5.8.1-sun4-solaris-thread-multi/Solaris 7/Sparcstn 2; client: Win2000 PC/Opera 7.1x.