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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f6dc5bfebaf357f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "fabio de francesco" Newsgroups: comp.lang.ada Subject: Re: "broken pipe" while reading/writing stream-based sockets Date: 13 May 2005 13:18:46 -0700 Organization: http://groups.google.com Message-ID: <1116015526.449361.68350@g44g2000cwa.googlegroups.com> References: <1115766179.505983.40960@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 80.181.52.84 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1116015531 17887 127.0.0.1 (13 May 2005 20:18:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 May 2005 20:18:51 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=80.181.52.84; posting-account=Lp02jQ0AAABMd3TAghNf0TM2YBZqD_JE Xref: g2news1.google.com comp.lang.ada:11025 Date: 2005-05-13T13:18:46-07:00 List-Id: Simon Wright wrote: > "fabio de francesco" writes: > > > I usually test the server this way: > > > > $ ./tcp_client abc & ./tcp_client def & ./tcp_client xyz & ./tcp_client > > kill > > > > 1) Why does this server sometimes crash with "Broken Pipe"? > > Just now I replaced your 'kill' above with 'lmn' and ran it 25 times > with no errors -- GCC 4.0.0 on Darwin 7.9.0 > > --S As I wrote in a previous message I bootstrapped a new GCC 4.0.0 and then I recompiled those programs again. The server program continues to crash giving a more elaborated message: raised GNAT.SOCKETS.SOCKET_ERROR : [32] Broken pipe The message I got with GCC 3.4.1 was only "Broken Pipe". Now there's also that "32" number. What is it? Do any of you have any suggestion on this problem? Regards, fabio de francesco