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 ?

closed as off topic by Ian Turton, Devdatta Tengshe, Aragon, R.K., Get Spatial Jan 3 '13 at 7:39

Questions on Geographic Information Systems Stack Exchange are expected to relate to geographic information systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    this is an issue for your client application not GeoServer (which clearly can't reply). – Ian Turton Dec 28 '12 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 '12 at 9:41
  • which client are you using? – Ian Turton Dec 28 '12 at 10:14
  • apache tomcat to serve geoserver, and apache httpd to sere my applicatopn – Shadin Dec 28 '12 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 '12 at 8:09

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.