Once ng_ksocket(4) is fixed, re-apply r194662. See this revision for

longer description.

Discussed with:	andre, rwatson
Sponsored by:	Nginx, Inc.
This commit is contained in:
Gleb Smirnoff 2013-03-29 14:06:04 +00:00
parent 9a4d9e198a
commit 844cacd17c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248886

View File

@ -528,6 +528,9 @@ sbappendstream_locked(struct sockbuf *sb, struct mbuf *m)
SBLASTMBUFCHK(sb);
/* Remove all packet headers and mbuf tags to get a pure data chain. */
m_demote(m, 1);
sbcompress(sb, m, sb->sb_mbtail);
sb->sb_lastrecord = sb->sb_mb;