From 9f743e36909ba5509edaacd3f0e0edee625a72f5 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 18 Jun 2020 21:56:45 +0200 Subject: * 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 --- common-event2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common-event2.c') 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); -- cgit v1.2.3