comp.lang.ada
 help / color / mirror / Atom feed
From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: "broken pipe" while reading/writing stream-based sockets
Date: Wed, 11 May 2005 12:46:08 +0200
Date: 2005-05-11T12:46:08+02:00	[thread overview]
Message-ID: <4281e280$0$21650$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <1115766179.505983.40960@f14g2000cwb.googlegroups.com>

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



  reply	other threads:[~2005-05-11 10:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-10 23:02 "broken pipe" while reading/writing stream-based sockets fabio de francesco
2005-05-11 10:46 ` Adrien Plisson [this message]
2005-05-11 15:01   ` fabio de francesco
2005-05-11 21:18 ` Simon Wright
2005-05-11 23:30   ` fabio de francesco
2005-05-13 20:18   ` fabio de francesco
2005-05-13 20:25     ` fabio de francesco
2005-05-14 20:39     ` Jeffrey Carter
2005-05-14 21:27 ` Florian Weimer
2005-05-20 15:01   ` fabio de francesco
2005-05-20 17:52     ` tmoran
2005-05-20 20:02     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox