From: Vitalii Tymchyshyn <tivv00@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Java 1.4
Date: Mon, 23 Jan 2012 16:36:31 +0200
Message-ID: <4F1D706F.4070704@gmail.com> (raw)
In-Reply-To: <CADK3HHLvyWY4AvpUatjLkBUUZMvw6MvcuQp32xPWS-fvRHxpNg@mail.gmail.com>
References: <4F1D1BB0.1000204@kickstone.com>
<CADK3HHLvyWY4AvpUatjLkBUUZMvw6MvcuQp32xPWS-fvRHxpNg@mail.gmail.com>
23.01.12 16:02, Dave Cramer написав(ла):
> More recently a patch has been presented with the subject NIO support.
> This patch in fact only provides an alternative implementation of
> setTimeout. The author has promised an NIO implementation later.
Small correction for everyone to understand it right: the patch does
contain NIO support for V3 non-secure connections. V2 and secure
requires extra work I am going to perform in the nearest time. I posted
to the list early because I simply wanted to get feedback as early as
possible.
Note that NIO itself do not provide any specific benefits (may be
performance?). What you get is much better control on IO, comparing to
using streaming. So, you can get timeout processing in same thread, you
can see when your buffers overflow and react accordingly, you can see
when your SSL data is available for reading.
As far as I can see, introducing NIO do not require global changes. The
tricky thing is handling read during write, but this is additional
feature NIO makes possible.
Best regards, Vitalii Tymchyshyn
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: tivv00@gmail.com
Subject: Re: Java 1.4
In-Reply-To: <4F1D706F.4070704@gmail.com>
References: <4F1D1BB0.1000204@kickstone.com> <CADK3HHLvyWY4AvpUatjLkBUUZMvw6MvcuQp32xPWS-fvRHxpNg@mail.gmail.com> <4F1D706F.4070704@gmail.com>
* 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