Mercurial > hg > nginx-quic
annotate src/os/win32/ngx_gui.c @ 573:58475592100c release-0.3.8
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 09 Nov 2005 17:25:55 +0000 |
parents | 9b8c906f6e63 |
children | ad08367a257b |
rev | line source |
---|---|
461 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 #define NGX_MAX_TEXT 2048 | |
12 | |
13 | |
509 | 14 void __cdecl |
15 ngx_message_box(char *title, ngx_uint_t type, ngx_err_t err, | |
503 | 16 const char *fmt, ...) |
461 | 17 { |
18 va_list args; | |
19 u_char text[NGX_MAX_TEXT], *p, *last; | |
20 | |
21 last = text + NGX_MAX_TEXT; | |
22 | |
23 va_start(args, fmt); | |
24 p = ngx_vsnprintf(text, NGX_MAX_TEXT, fmt, args); | |
25 va_end(args); | |
26 | |
27 if (err) { | |
28 | |
29 if (p > last - 50) { | |
30 | |
31 /* leave a space for an error code */ | |
32 | |
33 p = last - 50; | |
34 *p++ = '.'; | |
35 *p++ = '.'; | |
36 *p++ = '.'; | |
37 } | |
38 | |
39 if ((unsigned) err >= 0x80000000) { | |
40 p = ngx_snprintf(p, last - p, " (%Xd: ", err); | |
41 | |
42 } else { | |
43 p = ngx_snprintf(p, last - p, " (%d: ", err); | |
44 } | |
45 | |
46 p = ngx_strerror_r(err, p, last - p); | |
47 | |
48 if (p < last) { | |
49 *p++ = ')'; | |
50 } | |
51 } | |
52 | |
53 if (p == last) { | |
54 p--; | |
55 } | |
56 | |
57 *p = '\0'; | |
58 | |
59 MessageBox(NULL, (char *) text, title, type); | |
60 } | |
61 | |
62 | |
503 | 63 ngx_int_t |
64 ngx_system_tray_icon(HWND window, u_long action, HICON icon, u_char *tip) | |
461 | 65 { |
66 NOTIFYICONDATA ni; | |
67 | |
68 ni.cbSize = sizeof(NOTIFYICONDATA); | |
69 ni.hWnd = window; | |
70 ni.uID = 0; | |
71 ni.uFlags = NIF_MESSAGE|NIF_ICON|NIF_TIP; | |
72 ni.uCallbackMessage = NGX_WM_TRAY; | |
73 ni.hIcon = icon; | |
74 | |
75 if (tip) { | |
76 ngx_cpystrn((u_char *) ni.szTip, tip, 64); | |
77 } else { | |
78 ni.szTip[0] = '\0'; | |
79 } | |
80 | |
81 if (Shell_NotifyIcon(action, &ni) == 0) { | |
82 return NGX_ERROR; | |
83 } | |
84 | |
85 return NGX_OK; | |
86 } |