Increase BUF_SIZE to fit MTU, remove unused variable, cleanup on fail.
- BUF_SIZE was less than MTU resulting in sub-optimal performance, 16384 is even more than enough to accomodate Jumbo Frames. - Sockets weren't closed in the event of a failure to connect to remote. - Fixed some compiler warnings about invalid data types.
Showing
Please register or sign in to comment