Thread: Could not receive data from client: Unknown winsock error 10061

Could not receive data from client: Unknown winsock error 10061

From
"Patrick Weimer"
Date:
Hi,

the error message of the subject is my big problem, log entrys:=20

2010-02-24 12:22:25 LOG:  XX000: could not receive data from client:=20
Unknown winsock error 10061
2010-02-24 12:22:25 LOCATION:  pq_recvbuf, pqcomm.c:738
2010-02-24 12:22:25 LOG:  08P01: unexpected EOF on client connection
2010-02-24 12:22:25 LOCATION:  SocketBackend, postgres.c:307

After this messages our WebSphere Application Server 6.1.0.9 crashs, with=
=20
Database Timeout.=20

I spend many time on google and the postgre manual and found some possible=
=20
problem causes, but no one helped me.

The following link describes my problem and including a patch, but the=20
link seems to be down.
Post http://archives.postgresql.org/pgsql-bugs/2009-07/msg00179.php
Patch http://archives.postgresql.org/pgsql-bugs/2009-07/msg00078.php

Eviroment:
System1:
Windows 2003 SP2 on ESX
WAS6

System2:
Windows 2003 SP2 on ESX
PostgreSQL 8.2.15


Actually I'm a little bit helpless with debugging this error, someon has a=
=20
idea what the problem causes? Or a advice what to do, for debbunging??



Kind regards,

Patrick Weimer
--------------------------------------
Sitz / Registergericht: Frankfurt am Main / Amtsgericht Frankfurt am Main
Registernummer: HRA 42705
Geschaeftsfuehrer: Jens Dreger
USt.ID: DE244892265
--------------------------------------
Komplementaer-GmbH: J&J DREGER Verwaltungs GmbH, Carl-Benz-Str. 35, 60386 F=
rankfurt am Main
Sitz / Registergericht: Frankfurt am Main / Amtsgericht Frankfurt am Main
Registernummer: HRB 73891
Geschaeftsfuehrer: Jens Dreger
--------------------------------------

Re: Could not receive data from client: Unknown winsock error 10061

From
Magnus Hagander
Date:
2010/2/24 Patrick Weimer <Patrick.Weimer@dreger.de>:
> Hi,
>
> the error message of the subject is my big problem, log entrys:
>
> 2010-02-24 12:22:25 LOG: =A0XX000: could not receive data from client:
> Unknown winsock error 10061
> 2010-02-24 12:22:25 LOCATION: =A0pq_recvbuf, pqcomm.c:738
> 2010-02-24 12:22:25 LOG: =A008P01: unexpected EOF on client connection
> 2010-02-24 12:22:25 LOCATION: =A0SocketBackend, postgres.c:307
>
> After this messages our WebSphere Application Server 6.1.0.9 crashs, with
> Database Timeout.
>
> I spend many time on google and the postgre manual and found some possible
> problem causes, but no one helped me.

10061 is "connection refused". Windows will give this when the client
hangs up the connection. So from the perspective of PostgreSQL, your
appserver closed the connection. Most likely, your appserver crashed
*first*, and that caused the message with postgresql.

If not, my best bet would be some firewall or antivirus software, on
either the db server or the appserver. Do yo uhave any of those
running?

> The following link describes my problem and including a patch, but the
> link seems to be down.
> Post http://archives.postgresql.org/pgsql-bugs/2009-07/msg00179.php
> Patch http://archives.postgresql.org/pgsql-bugs/2009-07/msg00078.php

A different verison of the shared memory patch has been applied and is
in the current releases of 8.3 and 8.4. If you are sure you are
experiencing that problem, I would suggest you upgrade.

However, that's just the shared memory problem. Which is a secondary
problem to the connection closed one, that prevents the system from
properly restarting after a failure.


--=20
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/