Gleb Smirnoff a2d8f9d2fc Fix regression from r297400, which truncates headers in case of low socket
buffer and put a small optimization for low socket buffer case:

- Do not hack uio_resid, and let m_uiotombuf() properly take care of it. This
  fixes truncation of headers at low buffer.
- If headers ate all the space, jump right to the end of the cycle, to
  avoid doing single page I/O and allocating zero length mbuf.
- Clear hdr_uio only if space is positive, which indicates that all uio
  was copied in.

Reviewed by:	pluknet, jtl, emax, rrs, lstewart, emax, gallatin, scottl
2016-09-22 20:34:44 +00:00
..
2015-04-22 14:38:58 +00:00
2016-06-09 18:27:41 +00:00
2016-09-18 07:37:00 +00:00
2016-07-27 11:40:06 +00:00
2015-01-22 11:12:42 +00:00
2016-08-30 19:26:07 +00:00
2016-07-26 17:23:49 +00:00
2016-04-29 22:15:33 +00:00
2015-03-17 14:16:50 +00:00
2016-04-14 17:07:26 +00:00
2016-08-17 10:14:22 +00:00
2016-08-11 07:58:23 +00:00