-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 5/14/2011 4:01 PM, André Warnier wrote:
> eurotrans-Verlag wrote:
>> However I would expect write() to always throw an IOException when the
>> connection to the client is aborted, 
> 
> Remember, there are 2 separate connections : the connection of the
> client to IIS+isapi_redirector, and the connection from
> IIS+isapi_redirector to Tomcat+servlet.
> The servlet will only throw an I/O exception if that second connection
> is closed.

+1

If the ISAPI redirector works anything like mod_jk, then the connection
is expected to be persistent. That means the redirector might end up
reading a lot of data and throwing it into the bit bucket.

If ISAPI redirector connections are /not/ intended to be persistent,
then the redirector should be terminating the connection with Tomcat as
soon as possible. You should only have to wait for a buffer to fill-up
before an error is detected, which shouldn't be long at all.

If reading and discarding the data sends the CPU high, there might be a
bug in there... maybe a buffer that is too small or a loop that either
doesn't do enough work in it's body (a "tight" loop) or is doing too
much useless work (like re-calculating a value that might be constant
during the loop).

> I have no idea.  We need Mladen or Rainer here..

I think so. I've looked at the mod_jk code before for certain things and
while it's fairly straightforward, it is certainly extensive.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3RUuIACgkQ9CaO5/Lv0PBPJQCgqcGo1rvFpjCOjzcMx17GS2cm
C2YAn0BETp2I6HK7fJrLLx0BBvMdvFwg
=vUDE
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to