[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with the url package on w32?

From: Kim F. Storm
Subject: Re: Problems with the url package on w32?
Date: Sun, 03 Dec 2006 22:17:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

Magnus Henoch <address@hidden> writes:

> Richard Stallman <address@hidden> writes:
>>     > 1. Make non-blocking connections work on Windows.
>>     > 2. Make (featurep 'make-network-process '(:nowait t)) return nil on
>>     >    Windows.
>>     > 3. Document that make-network-process returns nil if it fails to
>>     >    create a non-blocking socket.
>>     > 4. Make make-network-socket do a blocking connect if a non-blocking
>>     >    connect fails, and document that.
>> Why not make it signal an error if it can't do what was requested?
> Hm... that might work.  IMO it should be easy for a program to find
> out what happened (non-blocking connect doesn't work in this case), 

A non-blocking connect is requested by making the socket non-blocking
before calling connect ...

How would it know that connect failed because it requested a
non-blocking connect vs. other error codes?

>                                                                     so
> it can perform a certain remedy (doing a blocking connect instead).  A
> specific error "nowait-not-supported" could be the solution.

If :nowait t doesn't work on Windoze,
(featurep 'make-network-process '(:nowait t)) should return nil.  

But why doesn't it work on Windoze?  Could someone please investigate it?

If this is a general problem, BROKEN_NON_BLOCKING_CONNECT should
be defined in window...

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]