]> git.tdb.fi Git - libs/net.git/commitdiff
Don't generate a duplicate signal when the connection is closed
authorMikko Rasa <tdb@tdb.fi>
Wed, 10 Aug 2011 19:30:52 +0000 (22:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 10 Aug 2011 19:30:52 +0000 (22:30 +0300)
source/http/server.cpp

index 47de7dd381b6c84cd995e4dd56239ab64d91b2e2..b18ed4c76b02dec85572e41cfecac26f2f186852 100644 (file)
@@ -84,6 +84,8 @@ void Server::client_data_available(Client &cl)
 
        char rbuf[4096];
        unsigned len = cl.sock->read(rbuf, sizeof(rbuf));
+       if(cl.stale)
+               return;
        cl.in_buf.append(rbuf, len);
 
        RefPtr<Response> response;