- dprint (1, (debugfile,
- "mutt_socket_write: error writing, closing socket\n"));
- mutt_socket_close (conn);
+ if ((rc = conn->conn_write (conn, buf + sent, len - sent)) < 0)
+ {
+ dprint (1, (debugfile,
+ "mutt_socket_write: error writing (%s), closing socket\n",
+ strerror(errno)));
+ mutt_socket_close (conn);