[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Server keeps disconnecting...

Asked by calinutz in PostgreSQL Database

Tags: postgresql, server, disconnection, connection

I have a problem: My PostgreSQL server runs on a FreeBSD server.
The server is in a LAN.
The LAN's router forwards the 5432 port for external connections to the server.
I have a database on the server.
I access this database from 2 types of locations:
    - LAN
    - WAN
(using of course as Host the LAN IP for local connections and the WAN IP for external connections)

When I start an application from inside the LAN, I have no problems.
When I start the same application from WAN, the connection dies in a few minutes after last user input.

So If I start pgAdmin III from a WAN location, I can connect easily to the server, but if I do not work with the connection for 1-2 minutes... the connection brakes, so when I try after 2 minutes to do something in pgAdmin, I receive error messages:
"An error has occurred:
server closed the connection unexpectedly.
This probably means the server terminated abnormally
before of while processing the request".
I get this message always 3 times.  

When I connect to the database using Delphi (all the same settings)  the same behavior happens. From LAN ... no problem, from WAN... after leaving the application alone... it disconnects from the server.

I do not understand this problem. It is probably somewhere in the postgresql.conf file. I did not modify it when building the server...
I will paste it if you need it in order to help.

Please advise
[+][-]11/01/09 10:56 AM, ID: 25714890Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/01/09 10:57 AM, ID: 25714894Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/01/09 10:58 AM, ID: 25714895Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 06:28 AM, ID: 25719553Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 06:30 AM, ID: 25719589Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/10/09 03:16 PM, ID: 25790994Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 03:19 PM, ID: 25791022Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/11/09 07:00 PM, ID: 25801240Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_EXPERT_20070906