Connection reset by peer


#1

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


#2

You might try raising the keepalive_timeout in your configuration
(please
see
http://wiki.codemongers.com/NginxHttpCoreModule#keepalive_timeout );
however, this does not mean the client will bother honoring it.


#3

On Wed, Nov 05, 2008 at 11:45:45PM +0100, Szymon K. 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 ?


#4

2008/11/6 Igor S. removed_email_address@domain.invalid:

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; ?


#5

2008/11/6 Szymon K. removed_email_address@domain.invalid:

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 (?).