This is an interesting question, and I'm going to "guess"...
If you in a JSP page, I dont think the error can be trapped.

If you in a servlet, yes I think a try catch will detect it, but only if you actually write something.

I think the generic problem is that you cant just leave the browser standing there doing sweat nothing.... and I appreciate the problem, its tricky.

Think you going to have to resort to AJAX or something like that.
Dont know anything about WMS, but I imagine it collects images and assembles the overlays. If perhaps you could send the user a base overlay, while it was been assembled, that may keep them interested, then when its ready, AJAX kills the base image and replaced it with the full assembly.... something like that.

I think the problem comes down to sending the user something, while its being assembled.

good luck....




----- Original Message ----- From: "aaime74" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Sunday, July 08, 2007 12:06 PM
Subject: Any way to check the client abruptly close the connection?



Hi,
I'm fighting a relatively nasty issue. I've implemented a WMS service (Web
Map Server), which basically
returns a geographic map in response to a request stating which data to use,
which area to display, which style to apply to the map, and so on.

The main trouble is that building the map can take anywhere from 100ms to
minutes, depending on
how much data is needed, and during the map building time the output stream
is not touched (the map is drawn on a buffered image, which is encoded to
png/gif/jpeg only when completely drawn).
It happens quite often that the client closes the connection because the map
is taking too much time to be generated, and I would like to be informed
about this right away to avoid wasting precious resources.

Is there any way to know?
Cheers
Andrea

--
View this message in context: http://www.nabble.com/Any-way-to-check-the-client-abruptly-close-the-connection--tf4043946.html#a11487168
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to