/// by the connection class you are using.
void socket_handler::close()
{
+ LOGSTREAM(debug,"close connection");
// graceful shutdown
shutdown(sock,SHUT_RDWR);
::close(sock);
char socket_buffer[recv_buffer_size];
int nbytes = read (sock, socket_buffer, recv_buffer_size);
+
if (nbytes < 0)
{
if (errno == EAGAIN)