Edward Tomasz Napierala 84fb32a371 Don't spin with mutex hold when there is not enough room in the send socket
buffer.  While here, make the code flow somewhat nicer.

Thanks to mav@ for tracking it down.

Tested by:	mav
MFC after:	3 days
Sponsored by:	FreeBSD Foundation
2013-10-24 15:54:06 +00:00
..
2013-10-24 00:33:29 +00:00
2013-09-29 15:19:34 +00:00
2013-10-23 21:35:39 +00:00
2013-10-17 12:19:36 +00:00
2013-08-22 16:39:59 +00:00
2013-09-29 13:09:25 +00:00
2013-10-24 00:33:29 +00:00