Welcome! Log In Create A New Profile

Advanced

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Maxim Dounin
March 26, 2012 06:22AM
Hello!

On Sun, Mar 25, 2012 at 11:55:53PM -0400, TECK wrote:

> Hi everyone,
>
> I just wanted to let the developers know about some error flags I
> discovered into Nginx 1.0.14, with debug mode disabled.
> Socket leaks and pread:
> 2012/03/24 23:29:52 [alert] 10770#0: open socket #46 left in connection
> 5
> 2012/03/24 23:29:52 [alert] 10770#0: open socket #115 left in connection
> 54
> 2012/03/24 23:29:52 [alert] 10770#0: open socket #110 left in connection
> 107
> 2012/03/24 23:29:52 [alert] 10770#0: aborting
> 2012/03/24 23:29:52 [alert] 10772#0: open socket #44 left in connection
> 57
> 2012/03/24 23:29:52 [alert] 10772#0: open socket #38 left in connection
> 140
> 2012/03/24 23:29:52 [alert] 10772#0: aborting

Do you see this as a regression from some previous version? If
yes - which one? Do you see the same problem in 1.1.x?

> 2012/03/25 00:01:35 [alert] 4105#0: *14584 pread() read only 0 of 5733
> from "/var/www/domain.com/index.html" while sending response to client,
> client: xx.xxx.xx.xxx, server: www.domain.com, request: "GET /
> HTTP/1.1", host: "www.domain.com"

This usually happens if you update files non-atomically, i.e. edit
files in-place instead of creating new file and then renaming it
to desired name. Obvious solution is to update files atomically.

Note well: by using open_file_cache you allow much bigger time
frame for non-atomic updates to trigger problems. If you can't
eliminate non-atomic updates it's a good idea to avoid using
open_file_cache.

> SSL_Write()
> 2012/03/25 12:59:25 [crit] 8254#0: *342055 SSL_write() failed (SSL:)
> while sending to client, client: xxx.xx.xxx.xxx, server: www.domain.com,
> request: "GET /community/attachments/info007-jpg.179371/ HTTP/1.1",
> upstream: "fastcgi://127.0.0.1:9000", host: "www.domain.com", referrer:
> "https://www.domain.com/community/threads/photos.42232/"
> 2012/03/25 14:52:15 [crit] 8253#0: *388269 SSL_write() failed (SSL:)
> while sending to client, client: xx.xxx.xx.xxx, server: www.domain.com,
> request: "GET /community/ HTTP/1.0", upstream:
> "fastcgi://127.0.0.1:9000", host: "www.domain.com"
>
> We are running Nginx on CentOS 5.8 64bits, with openssl 0.9.8e-22.el5.

As openssl 0.9.8e is quite old, I assume it's heavily modified by
your OS vendor. Do you see the same errors if you compile nginx with
recent vanilla openssl (0.9.8u, 1.0.0h or 1.0.1 will be ok)?

[...]

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 25, 2012 11:55PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 26, 2012 12:01AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Maxim Dounin March 26, 2012 06:22AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 26, 2012 08:04AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 26, 2012 08:49AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Samael March 26, 2012 10:41AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 26, 2012 06:57PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 26, 2012 10:28PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK March 29, 2012 04:50AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Maxim Dounin March 26, 2012 12:50PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

teckinno March 31, 2012 06:42PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Maxim Dounin April 02, 2012 07:18AM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK April 02, 2012 12:22PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Maxim Dounin April 02, 2012 01:08PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK April 02, 2012 09:10PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

Maxim Dounin April 03, 2012 12:34PM

Re: Socket leaks., pread and [crit] SSL_Write() in 1.0.14

TECK April 05, 2012 11:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready