]> git.tdb.fi Git - libs/net.git/commitdiff
Socket::close was removed
authorMikko Rasa <tdb@tdb.fi>
Wed, 10 Aug 2011 18:03:05 +0000 (21:03 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 10 Aug 2011 18:03:05 +0000 (21:03 +0300)
source/client.cpp
source/server.cpp

index 7e4ffb39e936e63d08394fe322dc2824318df755..48cd291664b26ad659aff9919f028311e5d48f4d 100644 (file)
@@ -111,7 +111,6 @@ void Client::connect_finished(int err)
        {
                signal_socket_error.emit(err);
 
-               sock->close();
                delete request;
                request = 0;
        }
@@ -156,7 +155,6 @@ void Client::data_available()
        {
                signal_response_complete.emit(*response);
 
-               sock->close();
                delete request;
                request = 0;
        }
index 2fcfb90055933e036bbc7c71d3216a41020bddf7..677bc6c43b5e52fc7048594177b7d3d3bad005b4 100644 (file)
@@ -55,7 +55,6 @@ void Server::submit_response(Response &resp)
        if(cl.async)
        {
                cl.sock->write(resp.str());
-               cl.sock->close();
                cl.stale = true;
        }
 }
@@ -146,7 +145,6 @@ void Server::client_data_available(Client &cl)
        if(response)
        {
                cl.sock->write(response->str());
-               cl.sock->close();
                cl.stale = true;
        }
 }