2

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 ?

BradHards
  • 12,881
  • 2
  • 37
  • 70
Shadin
  • 395
  • 2
  • 14

1 Answers1

4

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.

BradHards
  • 12,881
  • 2
  • 37
  • 70