From: Mikko Rasa Date: Wed, 10 Aug 2011 18:03:05 +0000 (+0300) Subject: Socket::close was removed X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2ced7606eb9090cdddd89e0481c441403d367bb2;p=libs%2Fnet.git Socket::close was removed --- diff --git a/source/client.cpp b/source/client.cpp index 7e4ffb3..48cd291 100644 --- a/source/client.cpp +++ b/source/client.cpp @@ -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; } diff --git a/source/server.cpp b/source/server.cpp index 2fcfb90..677bc6c 100644 --- a/source/server.cpp +++ b/source/server.cpp @@ -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; } }