Forum: NGINX Connection reset by peer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
103bd9500e5abc85d654c416b789ce5a?d=identicon&s=25 Szymon Kosok (Guest)
on 2008-11-05 23:59
(Received via mailing list)
Hello,

I think problem is related to Safari engine browsers (Safari/Chrome)
only.

2008/11/05 23:42:59 [info] 20405#0: *5 client xxx closed keepalive
connection (104: Connection reset by peer)
2008/11/05 23:43:18 [info] 20405#0: *7 client xxx closed keepalive
connection (104: Connection reset by peer)
2008/11/05 23:43:18 [info] 20405#0: *10 client xxx closed keepalive
connection (104: Connection reset by peer)

When it occurs, downloading of content is stalled for a while (~5
secs.). What can be problem? As I said - it only occurs in
Safari/Chrome.

Greetings,
Szymon
561c2fb6d0c72e0c7bc52b263c7d56c3?d=identicon&s=25 Merlin (Guest)
on 2008-11-06 01:32
(Received via mailing list)
You might try raising the keepalive_timeout in your configuration
(please
see
http://wiki.codemongers.com/NginxHttpCoreModule#ke... );
however, this does not mean the client will bother honoring it.
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2008-11-06 11:44
(Received via mailing list)
On Wed, Nov 05, 2008 at 11:45:45PM +0100, Szymon Kosok wrote:

> secs.). What can be problem? As I said - it only occurs in
> Safari/Chrome.

I saw that MSIE usually closes keepalive connection with RST packet.
Don't know about Safari/Chrome (on Windows ?).

However, I think that the problem is not related to these messages.
Could you create debug log ?
103bd9500e5abc85d654c416b789ce5a?d=identicon&s=25 Szymon Kosok (Guest)
on 2008-11-06 12:22
(Received via mailing list)
2008/11/6 Igor Sysoev <is@rambler-co.ru>:
> Don't know about Safari/Chrome (on Windows ?).

Yup, on Windows.

> However, I think that the problem is not related to these messages.
> Could you create debug log ?

I've filtered out my IP (i'm using Safari), and everytime when it
occurs that message appears in log.

And sorry for my ignorance - debug log you mean - error_log
/var/log/nginx/localhost.error_log debug; ?
103bd9500e5abc85d654c416b789ce5a?d=identicon&s=25 Szymon Kosok (Guest)
on 2008-11-06 12:39
(Received via mailing list)
2008/11/6 Szymon Kosok <szymon@mwg.pl>:
> And sorry for my ignorance - debug log you mean - error_log
> /var/log/nginx/localhost.error_log debug; ?

Here is log when it occurs (my IP/with Safari)

2008/11/06 12:29:34 [debug] 3335#0: *35 post event 00000000006B3010
2008/11/06 12:29:34 [debug] 3335#0: *35 delete posted event
00000000006B3010
2008/11/06 12:29:34 [debug] 3335#0: *35 http keepalive handler
2008/11/06 12:29:34 [debug] 3335#0: *35 recv: fd:17 -1 of 1024
2008/11/06 12:29:34 [info] 3335#0: *35 client 83.4.51.162 closed
keepalive connection (104: Connection reset by peer)
2008/11/06 12:29:34 [debug] 3335#0: *35 close http connection: 18
2008/11/06 12:29:34 [debug] 3335#0: *35 event timer del: 18:
1225970981675
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 00000000006A25E0
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000000000
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000699AF0, unused:
0
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 0000000000698EB0, unused:
8
2008/11/06 12:29:34 [debug] 3335#0: *35 free: 00000000006A1CF0, unused:
200

And sometimes there is such message:

2008/11/06 12:29:13 [debug] 3335#0: *31 recv() not ready (11: Resource
temporarily unavailable)

But as far I see - it's not related to my problem (?).
This topic is locked and can not be replied to.