From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: 100% CPU on TCP servers (on Windoze). Date: Fri, 14 Jul 2006 12:23:28 +0200 Message-ID: References: <44B76936.4080803@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152872754 24116 80.91.229.2 (14 Jul 2006 10:25:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2006 10:25:54 +0000 (UTC) Cc: Juanma Barranquero , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 14 12:25:52 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 1G1Krf-0002sn-AV for ged-emacs-devel@m.gmane.org; Fri, 14 Jul 2006 12:25:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1Kre-0003WV-OU for ged-emacs-devel@m.gmane.org; Fri, 14 Jul 2006 06:25:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1KrQ-0003UY-H5 for emacs-devel@gnu.org; Fri, 14 Jul 2006 06:25:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1KrN-0003Sw-AW for emacs-devel@gnu.org; Fri, 14 Jul 2006 06:25:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1KrN-0003Sp-4k for emacs-devel@gnu.org; Fri, 14 Jul 2006 06:25:25 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G1KtH-00089g-QY; Fri, 14 Jul 2006 06:27:23 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id F08368A0060; Fri, 14 Jul 2006 12:25:14 +0200 (CEST) Original-To: Jason Rumney In-Reply-To: <44B76936.4080803@gnu.org> (Jason Rumney's message of "Fri, 14 Jul 2006 10:51:50 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56996 Archived-At: Jason Rumney writes: > Kim F. Storm wrote: >>>> (make-network-process :name "test" :server t :service t) >>>> >> I took a look at this issue, and it seems quite trivial to fix. >> >> Would someone try to apply the following patch and tell me whether >> it makes a difference (pls. try the above example before and after >> applying the patch). If it doesn't compile, pls try to fix it!! >> > Before your patch, the example works, but uses 50% CPU. I confirmed it > worked by connecting to the socket and sending data to Emacs. > > After your patch, and some additional patching to dynamically load > WSAEventSelect (the build process needs changing to eliminate this > requirement), the example fails with the following stack trace: > > Debugger entered--Lisp error: (file-error "make server process failed" > "invalid argument" :name "test" :server t :service t) > make-network-process(:name "test" :server t :service t) > eval((make-network-process :name "test" :server t :service t)) > eval-last-sexp-1(t) > eval-last-sexp(t) > eval-print-last-sexp() > call-interactively(eval-print-last-sexp) Strange -- it works fine when I try it (with the version I checked into CVS). Can you pls. try with that version. -- Kim F. Storm http://www.cua.dk