projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a94a6fd
)
updates.
author
Pekka Riikonen
<priikone@silcnet.org>
Mon, 2 Jul 2001 14:01:52 +0000
(14:01 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Mon, 2 Jul 2001 14:01:52 +0000
(14:01 +0000)
apps/silcd/server.c
patch
|
blob
|
history
diff --git
a/apps/silcd/server.c
b/apps/silcd/server.c
index 4c5fbeb8e0ef80bae6ea274887e6e24743780b56..d1d0003cd5cb53c13355494c78bcf59bc6b176ec 100644
(file)
--- a/
apps/silcd/server.c
+++ b/
apps/silcd/server.c
@@
-1395,8
+1395,15
@@
SILC_TASK_CALLBACK(silc_server_packet_process)
if (ret == -2)
return;
if (ret == -2)
return;
- if (ret == -1)
+ if (ret == -1) {
+ SILC_LOG_ERROR(("Error sending packet to 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")));
return;
return;
+ }
/* The packet has been sent and now it is time to set the connection
back to only for input. When there is again some outgoing data
/* The packet has been sent and now it is time to set the connection
back to only for input. When there is again some outgoing data
@@
-1413,9
+1420,16
@@
SILC_TASK_CALLBACK(silc_server_packet_process)
/* Read some data from connection */
ret = silc_packet_receive(sock);
/* Read some data from connection */
ret = silc_packet_receive(sock);
- if (ret < 0)
+ if (ret < 0) {
+ SILC_LOG_ERROR(("Error receiving packet from 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")));
return;
return;
-
+ }
+
/* EOF */
if (ret == 0) {
SILC_LOG_DEBUG(("Read EOF"));
/* EOF */
if (ret == 0) {
SILC_LOG_DEBUG(("Read EOF"));