Home > OS >  Service process delays
Service process delays

Time:10-08

Himself wrote a Linux service process, and its basic function is through the TCP socket accept information from the client, then the server to deal with this information, and returns the result, when I run directly after the process, client connection is normal, also can timely return to the calculation results,
Now add the process to the rc. Local file, set to automatically start the service process, the client in the same way to connect and send a message to the service, the first time waiting for a long time to return results (normally need 200-300 milliseconds, at this time need to 15 to 20 seconds), once return results for the first time, back again to send information, all is well,
Who have encountered similar problems, please feel free to comment,
I use the system is the Ubuntu 16.04,
  • Related