Bug#542291: Patch

2009-08-19 Thread Arnaud Cornet
Here is what went to git HEAD, refactored the whole thing. I hope I didn't break any thing we fixed. Will upload in a few. Regards -- Arnaud Cornet diff --git a/src/connection.c b/src/connection.c index 77edd05..d1f919b 100644 --- a/src/connection.c +++ b/src/connection.c @@ -232,53 +232,45 @@ s

Bug#542291: Patch

2009-08-19 Thread Arnaud Cornet
Le mercredi 19 août 2009 à 12:51 -0400, Zygo Blaxell a écrit : > To simulate a bad connection, open two IRC clients, point them both at > the same bip proxy, connect to a big IRC network, kill -STOP one of them, Great idea, I love it. > I applied your patch and tested it. There's one bug left:

Bug#542291: Patch

2009-08-19 Thread Zygo Blaxell
On Wed, Aug 19, 2009 at 01:38:32AM +0200, Arnaud Cornet wrote: > Here is a quite hackish way to deal with the problem without rewriting > much of the event system. > We hack the message we want to send to the wire directly in the case of > partial writes. > > That allows us to keep the buffer in t

Bug#542291: Patch

2009-08-18 Thread Arnaud Cornet
Here is a quite hackish way to deal with the problem without rewriting much of the event system. We hack the message we want to send to the wire directly in the case of partial writes. That allows us to keep the buffer in the event system and not block in a sleep or loop. If you have a bad connec