From ee53051b186e190ef25533341849b2f16346cd07 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 9 Apr 2001 18:14:18 +0000 Subject: [PATCH] updates. --- CHANGES | 5 ++++- apps/silcd/server.c | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 244132de..c297d624 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -Mon Apr 9 17:54:44 EEST 2001 Pekka Riikonen +Mon Apr 9 21:54:44 EEST 2001 Pekka Riikonen * Added silc_pkcs_decode_identifier to decode the public key's identifier. Affected file lib/silccrypt/silpkcs.[ch]. @@ -17,6 +17,9 @@ Mon Apr 9 17:54:44 EEST 2001 Pekka Riikonen * Fixed a fatal bug in the public and private key file loading. Affected file lib/silccrypt/silcpkcs.c. + * Execute the packet parsing for client with zero (0) timeout + if the protocol is active. Affected file silcd/server.c. + Sun Apr 8 19:30:56 EEST 2001 Pekka Riikonen * Made the key generation options to the silcd program. Added diff --git a/apps/silcd/server.c b/apps/silcd/server.c index 1b9c26c5..7fd9b86c 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -1504,7 +1504,6 @@ void silc_server_packet_parse(SilcPacketParserContext *parser_context) SilcSocketConnection sock = parser_context->sock; switch (sock->type) { - case SILC_SOCKET_TYPE_CLIENT: case SILC_SOCKET_TYPE_UNKNOWN: /* Parse the packet with timeout */ silc_task_register(server->timeout_queue, sock->sock, @@ -1513,6 +1512,15 @@ void silc_server_packet_parse(SilcPacketParserContext *parser_context) SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL); break; + case SILC_SOCKET_TYPE_CLIENT: + /* Parse the packet with timeout (unless protocol is active) */ + silc_task_register(server->timeout_queue, sock->sock, + silc_server_packet_parse_real, + (void *)parser_context, 0, + (sock->protocol ? 1 : 100000), + SILC_TASK_TIMEOUT, + SILC_TASK_PRI_NORMAL); + break; case SILC_SOCKET_TYPE_SERVER: case SILC_SOCKET_TYPE_ROUTER: /* Packets from servers are parsed as soon as possible */ -- 2.24.0