Archived
This forum has been archived. Please start a new discussion on GitHub.
Client disconnect causes server to shutdown
cmeyers
in Help Center
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.
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.
0
Comments
-
If the code never waits in that loop then it means that something called shutdown prior to the code entering this function. When you say looping continuously do you mean spinning? The code should not spin, as it is using a monitor (and therefore a condition variable) to wait. This should not consume CPU while waiting to be signaled.0
-
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.0
