From: Thadeu Lima de Souza Cascardo Date: Fri, 3 Jul 2009 19:58:27 +0000 (-0300) Subject: Close the other end of the connection too. X-Git-Tag: v0.1.3~42 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=fb200aa96a9b6fec93a2a0f7cf458dab158cc80d;hp=430215be2a18ee1cf703532e9490e80ddec45420 Close the other end of the connection too. When the proxy is the one to close the connection, it should close both ends, since there will be no event indicating one of the ends was closed. --- diff --git a/pop.c b/pop.c index 0477815..357a394 100644 --- a/pop.c +++ b/pop.c @@ -91,6 +91,7 @@ pop_read (net_hook_t *hook, gchar *buffer, size_t len) { g_message ("Denying access to user %s.", pop->user); pop_destroy (hook); + hc_conn_close (hook->peer->conn); hc_conn_close (hook->conn); return; }