aboutsummaryrefslogtreecommitdiff
path: root/common-event2.c
diff options
context:
space:
mode:
Diffstat (limited to 'common-event2.c')
-rw-r--r--common-event2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common-event2.c b/common-event2.c
index bc631e7..7f60ba9 100644
--- a/common-event2.c
+++ b/common-event2.c
@@ -268,7 +268,7 @@ void ev_read_cb(struct bufferevent * bev, void * connection_state)
case RECV_SUCCESS:
break;
case RECV_FATAL:
- LOG(ERROR, "Callback Fatal");
+ LOG(ERROR, "Internal error");
ev_disconnect(c);
return;
case RECV_FATAL_UNAUTH:
@@ -283,6 +283,10 @@ void ev_read_cb(struct bufferevent * bev, void * connection_state)
LOG(ERROR, "Remote has a larger WINDOW_SIZE size than us.");
ev_disconnect(c);
return;
+ case RECV_FATAL_CALLBACK_ERROR:
+ LOG(ERROR, "Callback error");
+ ev_disconnect(c);
+ return;
case RECV_CORRUPT_PACKET:
LOG(ERROR, "Packet Corrupt");
ev_disconnect(c);