Andrey Belov
1c42128e50
Reorder checks in ngx_shared_memory_add() for more consistent error messages.
2012-08-01 14:37:08 +00:00
Maxim Konovalov
f8d59e33f3
Copyright updated.
2012-01-18 15:07:43 +00:00
Maxim Dounin
91ecc8f43c
Added shmtx interface to forcibly unlock mutexes.
...
It is currently used from master process on abnormal worker termination to
unlock accept mutex (unlocking of accept mutex was broken in 1.0.2). It is
expected to be used in the future to unlock other mutexes as well.
Shared mutex code was rewritten to make this possible in a safe way, i.e.
with a check if lock was actually held by the exited process. We again use
pid to lock mutex, and use separate atomic variable for a count of processes
waiting in sem_wait().
2011-11-23 13:55:38 +00:00
Ruslan Ermilov
a823c550e4
Replaced "can not" with "cannot" and "could not" in a bunch of places.
...
Fixed nearby grammar errors.
2011-09-19 14:48:29 +00:00
Igor Sysoev
dfd81a23b2
A new fix for the case when ssl_session_cache defined, but ssl is not
...
enabled in any server. The previous r1033 does not help when unused zone
becomes used after reconfiguration, so it is backed out.
The initial thought was to make SSL modules independed from SSL implementation
and to keep OpenSSL code dependance as much as in separate files.
2011-08-04 11:12:30 +00:00
Igor Sysoev
4956ac5108
reuse keepalive connections if there are no free worker connections
...
patch by Maxim Dounin
2011-04-04 12:26:53 +00:00
Igor Sysoev
2cb30f153f
the -q switch
2010-09-02 13:43:02 +00:00
Igor Sysoev
ce03ba019e
fix IPv6 listen socket handling while reconfiguring
2010-06-30 12:01:56 +00:00
Igor Sysoev
1f07392c42
*) delete no longer used unix domain sockets
...
*) fix unix domain socket comparison
2010-06-04 13:34:23 +00:00
Igor Sysoev
6d45d8a50d
*) introduce ngx_time_sigsafe_update() to update the error log time only
...
*) change ngx_time_update() interface
2010-03-25 09:10:10 +00:00
Igor Sysoev
2f916a9721
*) use previously cached GMT offset value to update time from a signal handler
...
*) change ngx_time_update() interface since there are no notification methods
those return time
2010-03-13 18:08:07 +00:00
Igor Sysoev
42b72993c5
use lowcase only hostname
2009-10-21 17:04:13 +00:00
Igor Sysoev
15c149e499
restore environ, this fixes segfault on reconfiguration failure when
...
perl module creates new environment
2009-09-18 09:21:14 +00:00
Igor Sysoev
2d95c3f210
fix comment
2009-09-18 09:12:40 +00:00
Igor Sysoev
366bf71b82
win32 master process had aready closed listening sockets
2009-06-06 12:53:55 +00:00
Igor Sysoev
165aa39230
a signaller process should stop configuration processing just after
...
it is able to get pid file, this allows to not open log files, etc.
2009-06-06 12:41:31 +00:00
Igor Sysoev
260c4321d7
return NULL instead of NGX_CONF_ERROR on a create conf failure
2009-06-02 16:09:44 +00:00
Igor Sysoev
a119584e66
test that zone has the same addresses in different processes
2009-06-02 13:57:59 +00:00
Igor Sysoev
00bd137064
use correct name
2009-05-05 13:12:59 +00:00
Igor Sysoev
0cd76ea290
*) refactor error_log processing: listen socket log might inherit built-in
...
error_log with zero level, and r2447, r2466, r2467 were not enough
*) remove bogus "stderr" level
*) some functions and fields renames
2009-04-30 13:53:42 +00:00
Igor Sysoev
ef919756d9
uniform ngx_file_info() interface with ngx_fd_info()
2009-04-29 19:28:52 +00:00
Igor Sysoev
5ef370df40
-p and --prefix=
2009-04-27 11:32:33 +00:00
Igor Sysoev
c28ff717cb
issue start up errors and warning on both stderr and error_log
2009-04-23 11:13:12 +00:00
Igor Sysoev
c8e9f26a57
implement "-s signal" option for Unix
2009-04-21 20:25:49 +00:00
Igor Sysoev
dc5ad52761
style fix: remove tabs
2009-04-21 19:38:02 +00:00
Igor Sysoev
bd91999ea5
Win32 master/workers model
2009-04-20 06:08:47 +00:00
Igor Sysoev
1153aa6465
show -t results on stderr
2009-04-19 16:06:09 +00:00
Igor Sysoev
f7a08d5f9a
support attaching to an existent Win32 shared memory
2009-04-18 19:27:28 +00:00
Igor Sysoev
b072c3d647
fix the previous commit
2009-04-17 19:09:08 +00:00
Igor Sysoev
c7f876bd4c
move zone name from ngx_shm_zone_t to ngx_shm_t to use Win32 shared memory
2009-04-16 19:25:09 +00:00
Igor Sysoev
b37316d7dd
style fix
2009-04-08 19:51:30 +00:00
Igor Sysoev
a2de7b9b93
delete win32 ngx_file_append_mode() as we use reliable
...
FILE_APPEND_DATA|SYNCHRONIZE flags
2009-04-08 19:13:28 +00:00
Igor Sysoev
2ec2e35efe
adopt NGX_FILE_TRUNCATE for win32
2009-04-08 19:03:41 +00:00
Igor Sysoev
24c2787163
Win32 appends synchronized if only FILE_APPEND_DATA and SYNCHRONIZE are set
...
without any other flags. On the other hand, Unix requires at least the write
flag to be set together with O_APPEND.
2009-03-31 13:52:01 +00:00
Igor Sysoev
fadc7a7e81
win32 ngx_open_file() supports utf8 names and NGX_FILE_APPEND
2009-03-30 14:51:51 +00:00
Igor Sysoev
1f4220ee86
small optimization: " == NGX_ERROR" > " != NGX_OK"
2009-02-24 10:42:23 +00:00
Igor Sysoev
a35eaccdec
a prelimiary IPv6 support, HTTP listen
2009-02-21 07:02:02 +00:00
Igor Sysoev
9aa30bc51e
revert the previous commit and r2447 change in src/core/ngx_cycle.c
2009-01-26 14:31:49 +00:00
Igor Sysoev
71f729c78c
default error_log has zero level, the bug has been introduced in r2447
2009-01-26 14:11:09 +00:00
Igor Sysoev
91cf00da17
set the error level as default http error_log level
2009-01-16 14:00:05 +00:00
Igor Sysoev
f2884e194a
compatibility with glibc 2.3, warn_unused_result attribute for write()
2008-11-11 16:17:45 +00:00
Igor Sysoev
fcb5a705dd
ngx_timezone_update()
2008-08-30 19:52:07 +00:00
Igor Sysoev
b4fbdcf5d4
-g switch
2008-06-30 12:35:16 +00:00
Igor Sysoev
7f6b2ffc60
*) back out r2040
...
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
2008-06-17 15:00:30 +00:00
Igor Sysoev
3be5257a4f
$hostname variable
2008-05-16 14:39:06 +00:00
Igor Sysoev
7f35ae6ea6
restore environ for perl_destruct()
2007-12-16 11:58:16 +00:00
Igor Sysoev
86ef6aaa6b
move condition declarations inside blocks where they are used
2007-12-10 12:09:51 +00:00
Igor Sysoev
e5e4c0000d
fix segfault when
...
*) perl was built without multiplicity
*) when configuration was invalid
2007-04-18 11:28:11 +00:00
Igor Sysoev
8e750112f6
fix building on platforms with non-supported atomic operations
2007-02-11 07:49:12 +00:00
Igor Sysoev
50034b856c
ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)
2007-01-18 20:15:09 +00:00