From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c6c265459ff33db7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-29 16:02:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!69116-cm.able.ES!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: Gnat.Sockets and non-blocking connects Date: Mon, 30 Jun 2003 01:00:24 +0200 Message-ID: References: <87he69j8zo.fsf@deneb.enyo.de> <87fzltnf33.fsf@inf.enst.fr> <87r85dhs90.fsf@deneb.enyo.de> <874r28ham2.fsf@deneb.enyo.de> <87ptkwmvtd.fsf@inf.enst.fr> <87r85cfubn.fsf@deneb.enyo.de> <87he68mrvk.fsf@inf.enst.fr> NNTP-Posting-Host: 69116-cm.able.es (212.97.169.116) X-Trace: fu-berlin.de 1056927734 32733266 212.97.169.116 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:39915 Date: 2003-06-30T01:00:24+02:00 List-Id: Samuel Tardieu dice... > >>>>> "Florian" == Florian Weimer writes: > > Florian> It's EINPROGRESS. Pretty informative, isn't it? > > It's never EINPROGRESS if you wait until the corresponding bit is set > by select in the write set. It's never EINPROGRESS in my experience: the first time is "would block", following times is another one (invalid parameter I seem to remember but I'm not sure; certainly nothing like "in progress"). Checking for writing is ok for connects that succeed. For failed ones, you must check another thing. The windows SDK says to check for exception condition in select. Checking for reading or writing doesn't reveal the failure. -- ------------------------- Jano 402450.at.cepsz.unizar.es -------------------------