python - psycopg2 kills query after 3 minutes -


i using psycopg2 version 2.6.1, whenever run query remote server, if less 3 minutes run perfectly, if runs more 3 minutes gets killed.

i connecting , executing query following way (client side):

import psycopg2 con = psycopg2.connect("dbname=db user=db_user host=192.168.1.100 password=writerandompassword") cur = con.cursor() cur.execute('select * random_schema.random_table') 

in logs in postgres server (server side):

log:  not send data client: connection reset peer 

doing tcpdump client sends "r" (reset) flag postgres server , kills connection.

if run same query using postgres server localhost, query runs time needs to, when try access remote.

ps. using postgresql 9.4.


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -