Sfoglia il codice sorgente

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 anni fa
parent
commit
dcdefc9609
3 ha cambiato i file con 779 aggiunte e 750 eliminazioni
  1. 9
    0
      CHANGES
  2. 5
    2
      README
  3. 765
    748
      ngx_http_uploadprogress_module.c

+ 9
- 0
CHANGES Vedi File

@@ -1,3 +1,12 @@
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 10
 nginx_upload_progress release 0.1                                   3 Oct 2007
2 11
 
3 12
  * public release

+ 5
- 2
README Vedi File

@@ -68,7 +68,7 @@ upload_progress
68 68
 	
69 69
 track_uploads
70 70
 +++++++++++++
71
-	:Syntax: track_uploads <zone_name>
71
+	:Syntax: track_uploads <zone_name> <timeout>
72 72
 	:Default: none
73 73
 	:Context: location
74 74
 	:Description:
@@ -77,6 +77,8 @@ track_uploads
77 77
 	Since Nginx doesn't support yet RFC 1867 upload, the location must be a proxy_pass or fastcgi location.
78 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 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 83
 report_uploads
82 84
 ++++++++++++++
@@ -122,7 +124,8 @@ http {
122 124
 			proxy_redirect default;
123 125
 			
124 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 131
 		location ^~ /progress {

+ 765
- 748
ngx_http_uploadprogress_module.c
File diff soppresso perché troppo grande
Vedi File


Loading…
Annulla
Salva