af6844f5c2
From Windows 7 onwards, dynamic send buffering is enabled. By setting SO_SNDBUF explicitly, we actually disabled the dynamic send buffering feature which results in reduced throughput. Thankfully this did not affect the majority of users since the default send buffer is usually already 64k. This commit replaces the setting of SO_SNDBUF with log output showing the current value of SO_SNDBUF at stream start and end. This will aid in debugging throughput issues caused by a buffer that isn't big enough, perhaps as a result of the user disabling dynamic send buffering system-wide.