|
|
|
|||||
|
Client disconnect causes server to shutdown
I have built an application using Ice-E.
I have the code built and running on a desktop machine running linux with an Intel processor and it works fine. I have cross compiled Ice-E to run on an ARM processor that is running linux. When I run the server side on the ARM processor the server shuts down when a client disconnects. This exact same code runs on my Intel box. Do you have any suggestions? I currently do not have a way to run a debugger on the ARM system. |
|
|||||
|
Further information:
I placed a print statement in the function ObjectAdapterFactory::waitForShutdown() and found that the code Quote:
Any ideas what this means? |
|
|||||
|
It seems that "_instance" should not be valid yet when the server starts and has called waitForShutdown() before any connections are made.
I feel that there is a memory problem, maybe my cross compiled version of IceE is picking up the wrong header files when it is built. |
|
||||||
|
It seems that your cross-compilation environment is not setup correctly. If basic things like pthread_cond_wait do not work, then you have a serious problem.
|
|
|||||
|
Solved the problem. Seems that the compiler was picking up the wrong header files when I was cross compiling. The pthread header is full of ifdef statements and possibly was the cause of the problem.
The lesson is to not use the "-B" option with gcc but instead use the "-isystem" option to specify the location of the header files when cross compiling. |
![]() |
| 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 |
| client ask a string to the server and the server send it to the client | blade | Help Center | 6 | 08-15-2007 03:08 AM |
| How to shutdown a service instead of a Icebox server? | Deqing | Help Center | 6 | 05-17-2006 06:24 PM |
| How can client know the status that client and server disconnceted? | skyriver | Help Center | 2 | 06-08-2005 12:37 AM |
| How server initiatively send message to client, and client can responce to it? | ouloba | Help Center | 3 | 11-26-2004 10:35 AM |
| Client Disconnect Callback | tony_h | Help Center | 1 | 09-21-2004 12:41 PM |