]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix two issues with not ready data in sockets (read: sendfile)
authorglebius <glebius@FreeBSD.org>
Wed, 13 Sep 2017 16:47:23 +0000 (16:47 +0000)
committerglebius <glebius@FreeBSD.org>
Wed, 13 Sep 2017 16:47:23 +0000 (16:47 +0000)
commitc3c8e7f59cdfb0208992ac1e88420a20aaaf76dc
tree153c0d337826fd02ca5545d8cf81ec7c8466af74
parentba609761a8626a935c70752abcb1491acdbe72ca
Fix two issues with not ready data in sockets (read: sendfile)
in UNIX sockets.

o Check that socket is still connected in uipc_ready(). If not
  we are responsible to free mbufs.
o In uipc_send() if socket appears to be disconnected, but we
  are sending data with pending I/Os, don't free mbufs.

Reported by: Kevin Bowling <kbowling llnw.com>
Tested by: Kevin Bowling <kbowling llnw.com>
PR: 222259
Reported by: Mark Martinec <Mark.Martinec ijs.si>
MFC after: 3 days
sys/kern/uipc_usrreq.c