From: David Boreham <david_list@boreham.org>
To: pgsql-general@postgresql.org
Subject: Re: Mixed up protocol packets in server response?
Date: Fri, 03 Jun 2011 10:20:12 -0600
Message-ID: <4DE909BC.2040308@boreham.org> (raw)
In-Reply-To: <20110603130357.GA7961@meep.pl>
References: <20110601130649.GA21333@meep.pl>
<4DE6DE56.8030008@postnewspapers.com.au>
<20110603130357.GA7961@meep.pl>
> transaction. No passing connections by hand anywhere, everything should be
> nicely thread-bound. Still, if not here, where could it go wrong?
>
I have seen two cases in my career where there was an "evil box" on the
network that corrupted the traffic.
The first was a very long time ago (in the late '80s) but the second was
only a couple of years ago and presented
with very similar symptoms to your report. This happened at a consulting
client's site (actually between two sites).
Weird "franken-packets" showed up once in a while, leading to a protocol
decode failure. Luckily we had been
involved in writing both the client and the server, and therefore had a
high degree of confidence that they were
correct. The network administrators denied strongly that they had any
equipment deployed that touched the
payload of any packet. They denied this several times. Eventually we
were able to take packet traces
on both client and server machines, correlate the traffic (not
necessarily an easy task), and prove
conclusively that what had been sent from one end did not show up intact
at the other end.
A few days later the network people revealed that they had some sort of
firewall/traffic management box
that was mangling the traffic.
Having said that, bugs in buffer management code are also not uncommon,
and can manifest intermittently
since they may be triggered by specific boundary conditions, specific
received data buffer size, and so on.
I have also seen once case of data leaking between threads in an
unpleasant and intermittent way
in a Java application, in buffer management code that attempted to avoid
GC overhead by re-using
buffers across sessions. So that's definitely a non-zero possibility too.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: david_list@boreham.org, pgsql-general@postgresql.org
Subject: Re: Mixed up protocol packets in server response?
In-Reply-To: <4DE909BC.2040308@boreham.org>
References: <20110601130649.GA21333@meep.pl> <4DE6DE56.8030008@postnewspapers.com.au> <20110603130357.GA7961@meep.pl> <4DE909BC.2040308@boreham.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox