Home » U++ Library support » U++ MT-multithreading and servers » Skylark logs failure in accept()
Skylark logs failure in accept() [message #37160] |
Sat, 01 September 2012 15:03 |
|
Hi,
I'm running a Skylark based server app and I get a lot of this error in the log:
Quote: | Accept failed: accept: Resource temporarily unavailable
| It appears on average once every 10 requests or so. When I run the same server single-threaded in debug mode it doesn't happen. I don't know the socket stuff good enough to point my finger at the culprit, but it seems as if sometimes one thread tries to handle a request that is already being handled by some other thread. As far as I can say it doesn't affect the behavior of the app, so it is not really a bug - but if it didn't happen the app might have slightly better performance
Honza
|
|
|
|
|
Re: Skylark logs failure in accept() [message #37165 is a reply to message #37162] |
Sun, 02 September 2012 12:08 |
|
mirek wrote on Sun, 02 September 2012 10:10 | Now, thinking about it, I guess it can rather be associated with prefork... Do you have prefork > 1 ?
Mirek
|
Oops, I forgot to mention that. I run the server with prefork=2 and threads at default (machine has 1 CPU -> 4 threads).
I will publish the sources in couple of days, I just need to fix couple last errors I found when I run it in production settings, so then it will be available for testing.
Honza
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 03:24:09 CEST 2024
Total time taken to generate the page: 0.03543 seconds
|