Hi
I’m using ROIndyHTTPServer with a simple server and even though everything is working ok, I get “connection closed gracefully” messages. Can I suppress them?
Delphi XE, Remobjects 6.0.61.1029
Bora Aydemir
Hi
I’m using ROIndyHTTPServer with a simple server and even though everything is working ok, I get “connection closed gracefully” messages. Can I suppress them?
Delphi XE, Remobjects 6.0.61.1029
Bora Aydemir
Hello,
Could you describe situations when you get this exception? How do you want to suppress exception? You could handle onException event of client channel, propose user to check connection for example, and retry action that was interrupted by the exception. But you get the exception itself anyway.
Best regards
I couldn’t figure out why and how I’m getting the exception message. The interesting part is everything is working, the client calls the remote function, the server responds but sometimes (even though the remote call is succesfull) I get a message from the server RO executable.
I had a very simple http server (without RemObject) coded with IndyHttpServer years ago, It was raising the same message. I believe It should be related to IndyHttpServer.
One of the reason for such message - server close connection, anyway you can safely ignore it.
I just want to ignore this error and prevent it from poping up a message box (but not for other exceptions) from the server executable.
What would be the best way to do it?
You could place every remote call from client to server in try/except block and compare exception with ‘connection closed gracefully’ one.
Best regards