svn commit: r222688 - head/sbin/hastd

Maxim Sobolev sobomax at FreeBSD.org
Sat Jun 4 17:24:14 UTC 2011


On 6/4/2011 9:33 AM, Bjoern A. Zeeb wrote:
> I don't know about the hast internal protocol but the above reads kind of
> wrong to me.

Hmm, not sure what exactly is wrong? Sender does 3 writes to the TCP 
socket - 32k, 32k and 1071 bytes, while receiver does one 
recv(MSG_WAITALL) with the size of 66607. So I suspect sender's kernel 
does deliver two 32k packets and fills up receiver's buffer or 
something. And the remaining 1071 bytes stay somewhere in sender's 
kernel indefinitely, while recv() cannot complete in receiver's. Using 
the same size when doing recv() solves the issue for me.

-Maxim


More information about the svn-src-all mailing list