From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 100% CPU on TCP servers (on Windoze). Date: Fri, 14 Jul 2006 16:40:06 +0300 Message-ID: References: <44B76936.4080803@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1152884434 28663 80.91.229.2 (14 Jul 2006 13:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2006 13:40:34 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 14 15:40:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G1Nu3-00078b-Mr for ged-emacs-devel@m.gmane.org; Fri, 14 Jul 2006 15:40:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1Nu3-0000v5-3y for ged-emacs-devel@m.gmane.org; Fri, 14 Jul 2006 09:40:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1Nts-0000uj-8k for emacs-devel@gnu.org; Fri, 14 Jul 2006 09:40:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1Ntp-0000uP-0e for emacs-devel@gnu.org; Fri, 14 Jul 2006 09:40:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1Nto-0000uJ-NH for emacs-devel@gnu.org; Fri, 14 Jul 2006 09:40:08 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G1Nvo-0004ga-DK for emacs-devel@gnu.org; Fri, 14 Jul 2006 09:42:12 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-228-104.inter.net.il [80.230.228.104]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id FFY79933 (AUTH halo1); Fri, 14 Jul 2006 16:40:05 +0300 (IDT) Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57009 Archived-At: > From: storm@cua.dk (Kim F. Storm) > Date: Fri, 14 Jul 2006 15:24:23 +0200 > Cc: Emacs Devel > > Here is something which actually seems to work -- provided > we can use ws2_32.dll: We could test that dynamically: if LoadLibrary fails for ws2_32.dll, fall back on wsock32.dll, and use the old code. The rest of the code can test if pfn_WSAEventSelect and pfn_WSACreateEvent are non-NULL to DTRT. I asked Jason to comment on this, let's wait for his response.