# (11: Resource temporarily unavailable)

**URL:** <https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519>\
**Category:** NGINX\
**Created:** [January 10, 2011, 1:11am UTC](https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519 "2011-01-10T01:11:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 10, 2011, 1:11am UTC](https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519/1 "2011-01-10T01:11:26Z")

</div>

Hello everybody,

# I have been doing some debugging and I saw messages like below from each request.

# . 2011/01/09 16:01:25 [debug] 26532#0: \*29 http keepalive handler 2011/01/09 16:01:25 [debug] 26532#0: \*29 malloc: 08B42288:1024 2011/01/09 16:01:25 [debug] 26532#0: \*29 recv: fd:3 -1 of 1024 2011/01/09 16:01:25 [debug] 26532#0: \*29 recv() not ready (11: Resource temporarily unavailable) 2011/01/09 16:01:55 [debug] 26532#0: \*29 event timer del: 3: 1800158943 2011/01/09 16:01:55 [debug] 26532#0: \*29 http keepalive handler . 2011/01/09 16:28:46 [debug] 26532#0: \*30 http keepalive handler 2011/01/09 16:28:46 [debug] 26532#0: \*30 malloc: 08B42288:1024 2011/01/09 16:28:46 [debug] 26532#0: \*30 recv: fd:3 -1 of 1024 2011/01/09 16:28:46 [debug] 26532#0: \*30 recv() not ready (11: Resource temporarily unavailable) 2011/01/09 16:29:16 [debug] 26532#0: \*30 event timer del: 3: 1801799968 2011/01/09 16:28:46 [debug] 26532#0: \*30 http keepalive handler .

# Sometime there are also some messages as below.

# . 2011/01/09 07:06:35 [debug] 5111#0: \*125 http run request: “/index.php?arg=news&page=1” 2011/01/09 07:06:35 [debug] 5111#0: \*125 http upstream check client, write event:1, “/index.php” 2011/01/09 07:06:35 [debug] 5111#0: \*125 http upstream recv(): -1 (11: Resource temporarily unavailable) 2011/01/09 07:06:35 [debug] 5111#0: \*125 post event 09BB2804 2011/01/09 07:06:35 [debug] 5111#0: \*125 post event 09BB502C 2011/01/09 07:06:35 [debug] 5111#0: \*125 delete posted event 09BB502C .

At the moment, the traffic on my test server only comes from my PC which  
only does the request once in a while, instead of doing stress test. So  
I believe the default settings (on my nginx and Debian) are much more  
than enough to provide the resource for that kind of requests.

I am wondering if the “Resource temporarily unavailable” message would  
be an indication that nginx is waiting for something and would do retry  
if it doesn’t get anything. If my nginx would get thousands of requests,  
I believe that would be a waste time doing wait and retry, which would  
significantly make my nginx slow.

At the moment, I don’t notice any issue. Should I worry about this? If  
so, what could the probable causes of that message be?

Kind regards,

Anto

---

<div class="post-metadata">

**Author:** ![Anto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@Anto](https://www.ruby-forum.com/u/Anto)\
**Post date:** [January 10, 2011, 4:04am UTC](https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519/2 "2011-01-10T04:04:46Z")

</div>

On Mon, Jan 10, 2011 at 8:10 AM, Anto [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am wondering if the “Resource temporarily unavailable” message would be an  
> indication that nginx is waiting for something and would do retry if it  
> doesn’t get anything. If my nginx would get thousands of requests, I believe  
> that would be a waste time doing wait and retry, which would significantly  
> make my nginx slow.

Nginx works in a non-blocking manner and it’s normal to receive EAGAIN  
when a non-blocking socket reading operation simply returns when the  
network device is not ready.

Cheers,  
-agentzh

---

<div class="post-metadata">

**Author:** ![Anto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@Anto](https://www.ruby-forum.com/u/Anto)\
**Post date:** [January 10, 2011, 5:36pm UTC](https://www.ruby-forum.com/t/11-resource-temporarily-unavailable/201519/3 "2011-01-10T17:36:43Z")

</div>

Thanks a lot agentzh.

I heard about non-blocking I/O and some terms related to that. It seems  
that I just do not understand it very well. I guess it is time to dig up  
more about all of those.

Kind regards,

Anto
