Version bump.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4950 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4913: fixed CPU affinity on respawn of dead workers.

Worker processes are now made aware of their sequential number needed
to select CPU affinity mask.  This replaces a workaround from r4865.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4951 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4914: variables $request_time and $msec.

Log module counterparts are preserved for efficiency.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4952 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4915, r4916, r4917: upstream minor fixes.

*) Upstream: honor the "down" flag for a single server.

   If an upstream block was defined with the only server marked as
   "down", e.g. 
        
       upstream u {
           server 127.0.0.1:8080 down;
       }

   an attempt was made to contact the server despite the "down" flag.
   It is believed that immediate 502 response is better in such a
   case, and it's also consistent with what is currently done in case
   of multiple servers all marked as "down".

*) Upstream: better detection of connect() failures with kqueue.

   Pending EOF might be reported on both read and write events, whichever
   comes first, so check both of them.

   Patch by Yichun Zhang (agentzh), slightly modified.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4953 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4918: cache manager startup with many listen sockets.

Fixed failure to start cache manager and cache loader processes
if there were more than 512 listening sockets in configuration.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4954 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4919: fixed segfault on PUT in dav module.

Dav: fixed segfault on PUT if body was already read (ticket #238).

If request body reading happens with different options it's possible
that there will be no r->request_body->temp_file available (or even
no r->request_body available if body was discarded).  Return internal
server error in this case instead of committing suicide by dereferencing
a null pointer.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4955 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4920, r4939: ngx_write_chain_to_file() fixes.

*) Core: added debug logging of writev() in ngx_write_chain_to_file().

*) Core: fixed ngx_write_chain_to_file() with IOV_MAX reached.

   Catched by dav_chunked.t on Solaris.  In released versions this might
   potentially result in corruption of complex protocol responses if they
   were written to disk and there were more distinct buffers than IOV_MAX
   in a single write.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4956 73f98a42-aea0-e011-b76d-00259023448c
Merge of r4933, r4933: shared memory fixes.

*) Fixed location of debug message in ngx_shmtx_lock().

*) Core: don't reuse shared memory zone that changed ownership (ticket #210).

   nginx doesn't allow the same shared memory zone to be used for different
   purposes, but failed to check this on reconfiguration.  If a shared memory
   zone was used for another purpose in the new configuration, nginx attempted
   to reuse it and crashed.


git-svn-id: svn://svn.nginx.org/nginx/branches/stable-1.2@4957 73f98a42-aea0-e011-b76d-00259023448c