# Nginx-0.7.7

**URL:** <https://www.ruby-forum.com/t/nginx-0-7-7/144514>\
**Category:** NGINX\
**Created:** [July 30, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/nginx-0-7-7/144514 "2008-07-30T15:37:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [July 30, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/nginx-0-7-7/144514/1 "2008-07-30T15:37:40Z")

</div>

Changes with nginx 0.7.7 30 Jul  
2008

```
*) Change: now the EAGAIN error returned by connect() is not 

```

considered  
as temporary error.

```
*) Change: now the $ssl_client_cert variable value is a certificate
   with TAB character intended before each line except first one; an
   unchanged certificate is available in the $ssl_client_raw_cert
   variable.

*) Feature: the "ask" parameter in the "ssl_verify_client" 

```

directive.

```
*) Feature: byte-range processing improvements.
   Thanks to Maxim D..

*) Feature: the "directio" directive.

*) Feature: MacOSX 10.5 sendfile() support.

*) Bugfix: now in MacOSX and Cygwin locations are tested in case
   insensitive mode; however, the compare is provided by single-byte
   locales only.

*) Bugfix: mail proxy SSL connections hanged, if select, poll, or
   /dev/poll methods were used.

*) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module.
```

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [July 30, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/nginx-0-7-7/144514/2 "2008-07-30T20:42:11Z")

</div>

What is this “directio” directive? I didn’t find anything searching  
the list archive.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [July 30, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/nginx-0-7-7/144514/3 "2008-07-30T22:44:04Z")

</div>

On Wed, Jul 30, 2008 at 02:34:15PM -0400, Jon S. wrote:

> What is this “directio” directive? I didn’t find anything searching  
> the list archive.

directio [off|size]  
http/server/location level  
default off

The directive enables O\_DIRECT or F\_NOCACHE (Mac OS X) options for  
files open for reading if their size is bigger than specified in  
directive.

Example:

```
 directio 4m;
 sendfile off;
```

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [May 15, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/nginx-0-7-7/144514/4 "2009-05-15T17:59:02Z")

</div>

Why would one use directio vs sendfile? Why would/should they be  
mutually exclusive?

–J

Igor S. wrote:

> directio [off|size]  
> http/server/location level  
> default off
> 
> The directive enables O\_DIRECT or F\_NOCACHE (Mac OS X) options for  
> files open for reading if their size is bigger than specified in  
> directive.
> 
> Example:
> 
> ```
> directio 4m;
> sendfile off;
> ```

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [May 16, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/nginx-0-7-7/144514/5 "2009-05-16T18:07:53Z")

</div>

On Fri, May 15, 2009 at 05:59:02PM +0200, Joe Bofh wrote:

> Why would one use directio vs sendfile? Why would/should they be  
> mutually exclusive?

The main sendfile advantage is that it uses pages of cached files.  
directio disables file caching. This example should be corrected as

```
  sendfile on;
  directio 4m;

```

Then files up to 4M would have good chances to be cached in VM.
