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: How about a new pretest? Date: Thu, 21 Dec 2006 14:41:13 +0100 Message-ID: References: <87wt4pccoo.fsf@stupidchicken.com> <458A6643.4090500@gnu.org> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166708535 6554 80.91.229.10 (21 Dec 2006 13:42:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2006 13:42:15 +0000 (UTC) Cc: lekktu@gmail.com, eliz@gnu.org, rms@gnu.org, cyd@stupidchicken.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 21 14:42:13 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxOBS-0007Hq-Sr for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2006 14:42:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxOBS-00028r-Dh for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2006 08:42:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GxOAs-0001vX-97 for emacs-devel@gnu.org; Thu, 21 Dec 2006 08:41:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GxOAq-0001uf-Sa for emacs-devel@gnu.org; Thu, 21 Dec 2006 08:41:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxOAq-0001ub-M0 for emacs-devel@gnu.org; Thu, 21 Dec 2006 08:41:28 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GxOAk-00011s-W9; Thu, 21 Dec 2006 08:41:23 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id F2EFBFAC079; Thu, 21 Dec 2006 14:41:13 +0100 (CET) Original-To: Jason Rumney In-Reply-To: <458A6643.4090500@gnu.org> (Jason Rumney's message of "Thu\, 21 Dec 2006 10\:47\:31 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (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:64054 Archived-At: Jason Rumney writes: > Richard Stallman wrote: >> I think we should try to fix these two problems now. The first one >> should be easy. >> ** make-network-process :nowait t doesn't work for non-local >> targets >> on Windows. >> > I have looked at this several times myself in the past, and others > have looked since and made some more progress, but it isn't as simple > as it should be. No, but it doesn't seem too complicated either. The code would look pretty much like the _sys_wait_accept code (using FD_CONNECT rather than FD_ACCEPT). In sys_connect, we would have to arrange for the reader_thread to first wait for _sys_wait_connect (e.g. by a new flag FILE_CONNECT set by sys_connect if FILE_NDELAY is set). Finally, sys_select would have to look into wdesc too, basically just waiting for the status to change to STATUS_READ_SUCCEEDED (and do the obvious things in that case). Btw, I noticed that the way the reader thread does "recv 1 byte" to wait for input means that for a datagram socket, it actually discards most datagrams. So it would probably be better to use FD_READ to wait for incoming data on sockets... Well, I might give it a shot after Xmas. -- Kim F. Storm http://www.cua.dk