From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Bayless Kirtley <bkirt(at)cox(dot)net> |
Cc: | "List, Postgres" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Connection question |
Date: | 2010-09-02 03:08:07 |
Message-ID: | 4C7F1517.1060703@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 09/01/2010 11:22 PM, Bayless Kirtley wrote:
> About twice per month, it is necessary to reset the modem and router. This,
> of course, loses the manager's connection to the DB.
With modern OSes, and many much older ones, it's not "of course" at all.
Windows XP Pro is quite odd in that it breaks TCP/IP connections when an
interface goes down and comes back up with the same IP address.
Windows 7 even retains my SSH connections, made over wifi, when
suspended and resumed! They only break if PuTTY tries to send a packet
while the interface is still down after resume.
Really, resetting a switch, unplugging a network cable and plugging it
back in, etc shouldn't break TCP/IP connections, unless it triggers the
connected host to do a new DHCP request, and the DHCP server hands out a
different IP. No decent DHCP server will do that, but some cheap and
nasty modem/router units don't store DHCP leases across a reboot so they
"forget" their MAC address to IP address mappings.
Anyway, that's a bit of a tangent, since you're on XP Pro and stuck with
its rather less than ideal handling of connection loss.
> The problem is, it
> also
> seems to break the connection at the cash register. The next time it
> tries to
> record a transaction, it gets the error "Unable to write to the backend" or
> something very close to that.
Is the register application connecting to localhost (127.0.0.1) or to
the public IP address assigned by DHCP to the register's ethernet
interface? If the latter, you're being bitten by Windows XP tossing out
all TCP/IP connections involving that IP.
If you're not sure, the easiest way I can think of to find out is to
unplug the register from the network, restart the router and see if it
can still connect. It should be able to.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Gerhard Wiesinger | 2010-09-02 05:44:51 | Double iteration in the buffer cache code |
Previous Message | John R Pierce | 2010-09-02 02:51:33 | Re: postgreSQL problem |