Patch for linux ABI for MSG_NOSIGNAL and out of order tcp packet issue

John Baldwin jhb at FreeBSD.org
Tue Jan 18 10:08:44 PST 2005


On Tuesday 18 January 2005 10:18 am, Steven Hartland wrote:
> After digging around and getting some information from Alfred
> at Valve ( the makers of HalfLife ) I've found the reason for
> HalfLife 2 server ( CounterStrike Source ) crashing when
> using rcon under FreeBSD.
> The problem is that although their code was setting
> MSG_NOSIGNAL on the send() call this was being
> ignored by the linux ABI. The attached patch checks for
> MSG_NOSIGNAL and if set enables SO_NOSIGPIPE
> for the duration of send call. Im not 100% sure this is the
> way to do it but have confirmed that the patch works on
> 5.2.1 so if someone could check and commit it that would
> be great.
>
> I'm also investigating an issue where tcp packets from a
> linux app end up being sent out of order. I don't really
> know where to start on this one. send() from the linux
> domain seems to be a clean pass off to the native send
> so unless the native send also has issues I'm at a loss.
>
> I'm still waiting on confirmation of the calls being used
> by Valve which is causing this behaviour and will post
> more when I know it. Has anyone else seen this behaviour
> else where?
>
>     Regards
>     Steve

Can you please file a PR and include the patch in your PR?

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-hackers mailing list