From: Pekka Riikonen Date: Sat, 28 Jul 2001 10:03:01 +0000 (+0000) Subject: updates. X-Git-Tag: robodoc-323~25 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=8f6fe84c603ddc878c6d0d225315445dd73e569a updates. --- diff --git a/apps/silcd/server.c b/apps/silcd/server.c index f3d00f16..0439567e 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -2098,6 +2098,13 @@ SILC_TASK_CALLBACK(silc_server_close_connection_final) void silc_server_close_connection(SilcServer server, SilcSocketConnection sock) { + SILC_LOG_INFO(("Closing connection %s:%d [%s]", sock->hostname, + sock->port, + (sock->type == SILC_SOCKET_TYPE_UNKNOWN ? "Unknown" : + sock->type == SILC_SOCKET_TYPE_CLIENT ? "Client" : + sock->type == SILC_SOCKET_TYPE_SERVER ? "Server" : + "Router"))); + /* We won't listen for this connection anymore */ silc_schedule_unset_listen_fd(server->schedule, sock->sock); @@ -2150,13 +2157,6 @@ void silc_server_disconnect_remote(SilcServer server, SILC_LOG_DEBUG(("Disconnecting remote host")); - SILC_LOG_INFO(("Disconnecting %s:%d [%s]", sock->hostname, - sock->port, - (sock->type == SILC_SOCKET_TYPE_UNKNOWN ? "Unknown" : - sock->type == SILC_SOCKET_TYPE_CLIENT ? "Client" : - sock->type == SILC_SOCKET_TYPE_SERVER ? "Server" : - "Router"))); - /* Notify remote end that the conversation is over. The notify message is tried to be sent immediately. */ silc_server_packet_send(server, sock, SILC_PACKET_DISCONNECT, 0,