|
|
|
|||||
|
My question is, is there a way to detect if a proxy is bad, i.e. the server exited uncleanly, simply crashed? If a client tries to use proxy when server crashed the remote calls will never return. At least if you use an indirect proxy. I tried ice_ping() - it didn't return too.
Thanks, Sergei. |
|
|||||
|
Thanks, Marc. No the server's host is ok. I think, it has something to do with an indirect proxy I use. The server registers an object with the registry and when server crashes, the object doesn't exist anymore but is still registered. When I remove the object from the registry manually, then ice_ping throws the "ObjectNotRegistered" exception.
Sergei. |
|
||||||
|
You should still get an exception when your client tries to connect to the server that is not running (after the client received the endpoint information for the server from IcePack). What is the tracing output of the client with Ice.Trace.Network=2?
|
|
|||||
|
Here is the trace output: "trying to establish tcp connection to <server's IP address:4471>. And this message repeats endlessly. And it stops and throws NotRegistered exception after I removed the object manually.
Sergei. |
|
|||||
|
The output with trace.retry and trace.network:
---------------- Network: trying to establish tcp connection to <server's IP number>:1783 Retry: connection to endpoint failed, trying next endpoint .\Network.cpp:536: Ice::ConnectionRefusedException: connection refused: WSAECONNREFUSED ] Retry: connection to cached endpoints failed removing endpoints from cache and trying one more time ---------------- And again, this repeats endlessly. |
|
||||||
|
I was able to reproduce the problem. I believe this occurs only for indirect proxies containing only the identity of the object (let me know if that's not your case however). To work-around the problem for now, you could specify the adapter id in your proxy, i.e.: use 'identity@AdapterId' instead of just 'identity'.
We'll fix this bug ASAP and thanks again for the report! Benoit. |
|
|||||
|
Thanks, Benoit. The program is working now. But C# part doesn't work. I guess, there is the same bug in C# (icecs library) code. Could you provide C# patch?
Thanks again, Sergei. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using a HTTP-Proxy with ICE? | Farmer | Help Center | 7 | 11-28-2006 11:02 AM |
| "Invalid UTF8 string" when transer chinese chars between cpp server and csharp client | raygo | Help Center | 8 | 03-21-2006 09:34 PM |
| Python interactive mode - invalid value for element 0 | JavaJack | Help Center | 2 | 11-16-2005 08:23 PM |
| Proxy to 127.0.0.1 | Nis Baggesen | Help Center | 3 | 02-16-2005 05:04 PM |
| OpenSSLPluginI.cpp, invalid static cast on FreeBSD | rodrigc | Patches | 0 | 02-27-2003 01:08 PM |