Read instead of write to get connection reset by peer #3128