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=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83a56cb8370ebd04 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-07 13:37:42 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.stueberl.de!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: ADA vs JAVA sockets Date: Wed, 7 Jan 2004 22:11:36 +0100 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1073509925 64737 80.67.180.195 (7 Jan 2004 21:12:05 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 7 Jan 2004 21:12:05 +0000 (UTC) To: Pascal Obry , comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.5.4 In-Reply-To: Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:4189 Date: 2004-01-07T22:11:36+01:00 On Wednesday 07 January 2004 20:44, Pascal Obry wrote: > Duncan Sands writes: > > GNAT Sockets in 3.15p is full of bugs. > > AWS works just fine with 3.15p, so saying that GNAT Sockets in 3.15p is > full of bugs is certainly pushing a bit! OK, Check_Selector is full of bugs (this is fixed in gcc CVS). Also, stream 'Read and 'Write don't work well with non-blocking sockets: they try to read (write) in a busy loop, consuming all CPU. I didn't try most of the other routines, perhaps they are perfect and I was unlucky to try the only routines with problems. Duncan. PS: (1) On line 367 of g-socket.adb, this Len := C.int'Max (Max (RSet) + 1, Len); should be Len := C.int'Max (Max (WSet) + 1, Len); (2) Check_Selector does not work for sockets with fd > 31. Since normal files also take up fd's, you don't need to have 32 open sockets to see this. This requires major changes to fix, and is fixed in gcc CVS.