I'm implementing an application that uses GeoServer deployed on apache tomcat. I would like to know if there is a way to handle an error case, such as when GeoServer is hung. For example, I'd like to display a message to user or something like that on client side.

I've been told that :

If GeoServer hangs, you will receive no answer. You should set a read   
time out for your GeoServer HTTP requests. After the timeout, you can   
send back whatever you want. 

but since I'm pretty beginner at these stuff, I've no idea how to do that. would anyone please explain me more how to set a readtime out for your GeoServer HTTP requests ??

EDIT: Can I convert the configuration in proxyhost to message displays to the user ?

  • 2
    this is an issue for your client application not GeoServer (which clearly can't reply).
    – Ian Turton
    Dec 28, 2012 at 9:39
  • Thanks! but how my client application would handle it? do you have a simple code to explain me please?
    – Shadin
    Dec 28, 2012 at 9:41
  • which client are you using?
    – Ian Turton
    Dec 28, 2012 at 10:14
  • apache tomcat to serve geoserver, and apache httpd to sere my applicatopn
    – Shadin
    Dec 28, 2012 at 10:32
  • 1
    these are both servers - you need to handle this at the client level, that is the program that makes the request
    – Ian Turton
    Dec 30, 2012 at 8:09

1 Answer 1


As explained at OpenLayers load WFS vector layer: how to check whether all features are returned from server?, you can set a callback on the read operation, and from that you can check whether there are any errors.

Not the answer you're looking for? Browse other questions tagged or ask your own question.