[Heimdal-source-changes] [heimdal/heimdal] 12826c: Handle partial writes on non-blocking sockets

Viktor Dukhovni noreply at github.com
Tors Nov 7 02:29:31 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: 12826c9586f19b63198879c4bb93eb6395d0bfe1
      https://github.com/heimdal/heimdal/commit/12826c9586f19b63198879c4bb93eb6395d0bfe1
  Author: Viktor Dukhovni <viktor at twosigma.com>
  Date:   2019-11-06 (Wed, 06 Nov 2019)

  Changed paths:
    M lib/roken/net_write.c

  Log Message:
  -----------
  Handle partial writes on non-blocking sockets

Now that we're using krb5_net_write() with non-blocking sockets in
ipropd_master, we MUST correctly account for partial writes.

Therefore, roken net_write() called from krb5_net_write() now
returns the number of bytes written when the socket error was
EWOULDBLOCK (or EAGAIN).

Also, fix potential issue on Windows, where errno was used instead
of rk_SOCKET_ERRNO whether or not we used _write() or send().




More information about the Heimdal-source-changes mailing list