From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 18 18:08:43 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A79C16A4D4 for ; Tue, 18 Jan 2005 18:08:40 +0000 (GMT) Received: from mail16.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB91843D41 for ; Tue, 18 Jan 2005 18:08:39 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 12195 invoked from network); 18 Jan 2005 18:08:39 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 18 Jan 2005 18:08:39 -0000 Received: from [10.50.40.202] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j0II8W6I097728; Tue, 18 Jan 2005 13:08:36 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 18 Jan 2005 10:43:31 -0500 User-Agent: KMail/1.6.2 References: <00be01c4fd71$046adae0$b3db87d4@multiplay.co.uk> In-Reply-To: <00be01c4fd71$046adae0$b3db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200501181043.31108.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: freebsd-emulation@FreeBSD.org Subject: Re: Patch for linux ABI for MSG_NOSIGNAL and out of order tcp packet issue X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 18:08:44 -0000 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org