Re: unrecognized winsock error 10061

From: Emanuel Calvo <emanuel(dot)calvo(at)2ndquadrant(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: unrecognized winsock error 10061
Date: 2014-11-23 15:36:59
Message-ID: 5471FF1B.7010907@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

El 21/11/14 a las 17:31, jvenegasperu . escibió:
> Alvaro
>
> en el link que deje se menciona que el problema se dan con postgres
> 9.0.3 en Ubuntu 11.04 32 bits, windows server 2008 y windows 7
>
> en mi caso se trata de postgres 9.3 sobre windows server 2008

Es un problema de la auto-configuración de TCP en Windows.

>
> al respecto encontre este post
>
> http://forums.enterprisedb.com/posts/list/3331.page
>
> que da las instrucciones que aparecen a bajo para resolverlo pero no
> entiendo bien que habria que hacer alguna idea?
>
> Problem solved... it seems that one of the TCP tuning settings for
> Internet connectivity was interfering with the loopback connections
>
> I uses rawcap to capture the loopback interface packets and then
> wireshark to decode the packets
> http://wiki.wireshark.org/CaptureSetup/Loopback
>
> I was seeing a zero TCP window size:
> 85 65.052114 127.0.0.1 127.0.0.1 TCP 40 [TCP ZeroWindow] 50173 >
> postgresql [ACK] Seq=1 Ack=1 *Win=0* Len=0
>
> after resetting the values:
> netsh int tcp set global autotuninglevel=normal
> netsh int tcp set global congestionprovider=ctcp
> netsh int tcp set global ecncapability=default
> netsh int tcp set global rss=enabled
> netsh int tcp set global chimney=default
> netsh int tcp set global dca=enabled
> (sorry I don't know which one was the culprit)

Te está dando la solución ahí :) Esos son comandos de cmd.

>
> loopback connections are now working okay )
>
> The symptoms of this are that the postgres servers starts and will
> fork for new clients, but the connection never moves beyond that, e.g.
> prompting for a password.
>
>

Hasta donde sabía hubo un parche para solucionar algunos conflictos en
el loopback
sobre windows 2008 r2:
http://support2.microsoft.com/kb/979612
http://support2.microsoft.com/kb/983528/es

Verifica que tengas todos los parches.

Para verificar los valores que ves en el artículo que te ha pasado
Álvaro, debes mirar y
modificar las claves en el registro que se encuentran en:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters

O, puedes checkear cada uno de los valores:

netsh int tcp show global -> Toda la info de las variables que están arriba

netsh int tcp set global autotuninglevel=normal -> Pone en normal el
autotuning.

Si sigue dando problemas, deshabilita directamente el autotuning.

--
--
Emanuel Calvo http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripcin:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Guillermo Córdoba 2014-11-24 06:53:57 Re: pseudo-sincronización: mismas tablas en dos equipos
Previous Message Emanuel Calvo 2014-11-23 15:21:36 Re: que tipo de sistema de archivos