Bug in send() - Mailing list pgsql-bugs

From Dennis Fleurbaaij
Subject Bug in send()
Date
Msg-id 3AD89721.123EC9C0@core-lan.nl
Whole thread Raw
Responses Re: Bug in send()
List pgsql-bugs
Hi i'm developing a searchengine which uses PostgreSQL (duh:)

I've fond erronuos behavour when I send a SIGTERM to my application when
then query is in progress.. The send() loop will go out of control in an
endless loop and that is clearly wrong.

I'm not going into the source unless you say that's a good idea and send you
some working code but you probably have a better oversight into the code and
can make some more logical code then I can...

This is the log;

<SNIP>

FATAL: pq_endmessage failed errno=32
pq_flush: send() failed broken pipe

</SNIP>

This is IHMO an example of trying to do it right but forgetting how dumb
users are. You obviously catch the SIGPIPE but then gerget to check the
errno. It's a quick fix no doubt.

Load goed to 100% btw.

In anycase let me know what happens,

Cheers,
Dennis Fleurbaaij
dennis@core-lan.nl

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Error on reference to inherited primary key
Next
From: Dennis Fleurbaaij
Date:
Subject: me bad :)