Переглянути джерело

Version 0.2

This version contains:
 * new timeout to remember connections after they are finished to be able
 to report termination on this connection to upload progress probes

 * handling of HTTP error 413 (request entity too large)
tags/v0.3
Brice Figureau 18 роки тому
джерело
коміт
dcdefc9609
3 змінених файлів з 779 додано та 750 видалено
  1. 9
    0
      CHANGES
  2. 5
    2
      README
  3. 765
    748
      ngx_http_uploadprogress_module.c

+ 9
- 0
CHANGES Переглянути файл

1
+nginx_upload_progress release 0.2                                  10 Oct 2007
2
+
3
+ * the system now remembers old active uploads for 1 minute to be
4
+   able to send back either error status or done status to upload 
5
+	 progress probes.
6
+	 
7
+ * track of HTTP error 413 (request entity too large) is implemented
8
+   and the error status '413' is returned.
9
+
1
 nginx_upload_progress release 0.1                                   3 Oct 2007
10
 nginx_upload_progress release 0.1                                   3 Oct 2007
2
 
11
 
3
  * public release
12
  * public release

+ 5
- 2
README Переглянути файл

68
 	
68
 	
69
 track_uploads
69
 track_uploads
70
 +++++++++++++
70
 +++++++++++++
71
-	:Syntax: track_uploads <zone_name>
71
+	:Syntax: track_uploads <zone_name> <timeout>
72
 	:Default: none
72
 	:Default: none
73
 	:Context: location
73
 	:Context: location
74
 	:Description:
74
 	:Description:
77
 	Since Nginx doesn't support yet RFC 1867 upload, the location must be a proxy_pass or fastcgi location.
77
 	Since Nginx doesn't support yet RFC 1867 upload, the location must be a proxy_pass or fastcgi location.
78
 	The POST _must_ have a query parameter called X-Progress-ID (or an HTTP header of the same name) whose value is the
78
 	The POST _must_ have a query parameter called X-Progress-ID (or an HTTP header of the same name) whose value is the
79
 	unique identifier used to get progress information. If the POST has no such information, the upload will not be tracked.
79
 	unique identifier used to get progress information. If the POST has no such information, the upload will not be tracked.
80
+	The tracked connections are kept at most <timeout> seconds after they have been finished to be able to serve 
81
+	unseful information to upload progress probes.
80
 	
82
 	
81
 report_uploads
83
 report_uploads
82
 ++++++++++++++
84
 ++++++++++++++
122
 			proxy_redirect default;
124
 			proxy_redirect default;
123
 			
125
 			
124
 			# track uploads in the 'proxied' zone
126
 			# track uploads in the 'proxied' zone
125
-			track_uploads proxied;
127
+			# remember connections for 30s after they finished
128
+			track_uploads proxied 30s;
126
 		}
129
 		}
127
 		
130
 		
128
 		location ^~ /progress {
131
 		location ^~ /progress {

+ 765
- 748
ngx_http_uploadprogress_module.c
Різницю між файлами не показано, бо вона завелика
Переглянути файл


Завантаження…
Відмінити
Зберегти