Re: Got "broken pipe" exception



On Tue, Nov 27 2007, Trastabuga wrote:

I am using Edi's libraries like drakma, chunga based on
usocket-0.3.5. As this looks more like a general network question
and might not be related to Edi's libraries, I am asking it here
looking for any ideas why it might be happening.
Basically I form an http-request to some server and at times it
gives me the "broken pipe" exception.
I read that this exception happens when the server terminates the
connection on its end and the client still tries to use the socket.
I am wondering if you guys had it and how did you go about fixing
it?

Fixing it on the client or on the server?

Could it be just because the server to which I am trying to connect
just dis-behaves? Or could it the some unstable network connection
related to my router (linksys) or NIC?

It could be any of these. Do you have control on the server?

I am using linux 2.6 kernel (debian), sbcl 1.0.11 and the latest
drakma related libraries.

Any ideas are welcome!

If you are programming the client and you do not have control upon the
server then your only options are to re-send the request and hope that
it would pass.

If you are controlling both and this happens in "lab" conditions, than
you need to isolate the problem. I'd suggest try with different
clients and with different servers. Analyse your requests and
responses.

HTH,

--
Kamen
.



Relevant Pages

  • Re: Some free utilities for Java, with Hebrew support.
    ... mostly separate from the one for replacing the client library. ... Then you're a MySQL reseller, by the sounds of it, rather than a MySQL ... I.e. they might use MySQL server and client, ... competing libraries, so I'd expect to see it happen sooner or later. ...
    (comp.lang.java.programmer)
  • Re: Gradual move to own mail server - strategy for noob
    ... many webmail interfaces use php imap extensions, ... less trouble with the client and server talking to each other ... easy as pie.Never cared about which imap libs were used on the client vs the ... time / space / libraries involved). ...
    (freebsd-questions)
  • Re: ImageVideo Compression for Video Streaming
    ... capture devices in server side. ... also in client side. ... libraries for C\C++. ... DirectShow is a closed source free library that only depends ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: orphaned port?
    ... kdelibs-2.2.2_3 Libraries for KDE2 ... lynx-2.8.4.1b A non-graphical, text-based World-Wide Web client ... mysql-client-3.23.47 Multithreaded SQL database ... mysql-server-3.23.47 Multithreaded SQL database ...
    (freebsd-questions)
  • Got "broken pipe" exception
    ... I am using Edi's libraries like drakma, ... As this looks more like a general network question and might not be ... Basically I form an http-request to some server and at times it gives ...
    (comp.lang.lisp)