Changeset e892f813a63122fd52a0f54214f365af0c3f2ede

Show
Ignore:
Timestamp:
07/25/11 22:03:10 (7 years ago)
Author:
Mark Harrison <mark@mivok.net>
git-committer:
Mark Harrison <mark@mivok.net> 1311631390 -0400
git-parent:

[0b400ff0f3237a070ef4402eefc52ae4860867cc]

git-author:
Mark Harrison <mark@mivok.net> 1311631390 -0400
Message:

Don't exit on connection accept failure

If a client connection dies (connection reset by peer) then previously the web
server would just exit. This shouldn't happen.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Status.pm

    r0b400ff re892f81  
    467467            $SIG{'HUP'} = 'IGNORE'; 
    468468            $SIG{'PIPE'} = 'IGNORE'; 
    469             while(my $client = $handle->accept) { 
     469            while(1) { 
     470                my $client = $handle->accept; 
     471                next unless $client; 
    470472                my $req; 
    471473                my $proto;