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 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!news3.google.com!news.glorb.com!txtfeed1.tudelft.nl!130.161.131.117.MISMATCH!tudelft.nl!txtfeed2.tudelft.nl!newsfeed.multikabel.nl!skynet.be!newspost001!tjb!not-for-mail Date: Wed, 11 May 2005 12:46:08 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: "broken pipe" while reading/writing stream-based sockets References: <1115766179.505983.40960@f14g2000cwb.googlegroups.com> In-Reply-To: <1115766179.505983.40960@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4281e280$0$21650$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 202a6a82.news.skynet.be X-Trace: 1115808384 news.skynet.be 21650 81.246.244.162:3243 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:10992 Date: 2005-05-11T12:46:08+02:00 List-Id: fabio de francesco wrote: > 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"? on my windows machine, i get the windows equivalent ("connection reset by peer") on every test. it seems due to the speed of your computer. i observed that closing a local socket (that is a socket which connect a server and a client on the same machine) while data are not already received by the other side always causes loss of data on fast computers. -- rien