]> granicus.if.org Git - mutt/commit
Fix raw socket read/write to follow expected behavior.
authorKevin McCarthy <kevin@8t8.us>
Mon, 21 Jan 2019 23:19:08 +0000 (15:19 -0800)
committerKevin McCarthy <kevin@8t8.us>
Mon, 21 Jan 2019 23:19:08 +0000 (15:19 -0800)
commit688e27a93b9c2ed377e097b921e3cb43f6dd1057
treeb2a5a31c2a00629df4d5f2443625b74370e83a06
parentae8bb261b5ae49cba2e7a4c360ef57e41fd7c3ef
Fix raw socket read/write to follow expected behavior.

The mutt_sasl.c code expects conn_write() to write the entire buffer.
This is inconsistent with mutt_socket.c, but since other conn_write()
implementations guarantee this, change raw_socket_write() to do so too
for now.

Also, update reading and writing to loop on EINTR, as gnutls does.
They won't return EAGAIN or EWOULDBLOCK because we don't mark sockets
as non-blocking.
mutt_socket.c