aboutsummaryrefslogtreecommitdiff
path: root/common-event2.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-18 21:56:45 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-18 21:56:45 +0200
commit9f743e36909ba5509edaacd3f0e0edee625a72f5 (patch)
tree73e598b8d7d9642ef2503110ad39a8eca122f6c9 /common-event2.c
parent44b764cff8f8bcfd10751760d4e304f0a19398a2 (diff)
* capture, prettify and print recv/sent bytes
* error and disconnect if server or client have different WINDOW_SIZE's * removed additional WINDOW_SIZE pre-processor checks which are not required anymore Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'common-event2.c')
-rw-r--r--common-event2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common-event2.c b/common-event2.c
index b0bfe95..bc631e7 100644
--- a/common-event2.c
+++ b/common-event2.c
@@ -279,6 +279,10 @@ void ev_read_cb(struct bufferevent * bev, void * connection_state)
LOG(ERROR, "Crypto error");
ev_disconnect(c);
return;
+ case RECV_FATAL_REMOTE_WINDOW_SIZE:
+ LOG(ERROR, "Remote has a larger WINDOW_SIZE size than us.");
+ ev_disconnect(c);
+ return;
case RECV_CORRUPT_PACKET:
LOG(ERROR, "Packet Corrupt");
ev_disconnect(c);