httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Nensa <ne...@zeec.biz>
Subject tmp file get's stored twice during HTTP Upload
Date Thu, 19 Mar 2009 18:04:15 GMT
Hello guys,

first of all thank you for libapreq2 ... it greatly eases module development
and provides a real nice API :-)

I've just installed the latest libapreq2 release and played around with HTTP
file uploads.
I've written a simple module that does nothing but copy the uploaded file to
another file using apreq_brigade_fwrite().
Examining my temp dir during an upload (122M file) I was wondering why the
temp file that I suppose to hold the file bucket get created and filled up
twice.

Here are some ls snapshots from my temp dir during an upload. Am I missing
something or why do I see apreq42MmiO and apreqkUS2cX?

Best regards,

Felix



[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 0
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 80M
-rw------- 1 apache apache 40M Mar 19 18:31 apreq42MmiO
-rw------- 1 apache apache 40M Mar 19 18:31 apreqkUS2cX
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 130M
-rw------- 1 apache apache 65M Mar 19 18:31 apreq42MmiO
-rw------- 1 apache apache 65M Mar 19 18:31 apreqkUS2cX
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 197M
-rw------- 1 apache apache 99M Mar 19 18:31 apreq42MmiO
-rw------- 1 apache apache 99M Mar 19 18:31 apreqkUS2cX
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 250M
-rw------- 1 apache apache 122M Mar 19 18:31 apreq42MmiO
-rw------- 1 apache apache 122M Mar 19 18:31 apreqkUS2cX
-rw-r--r-- 1 apache apache 6.8M Mar 19 18:31 upload.test
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 253M
-rw------- 1 apache apache 122M Mar 19 18:31 apreq42MmiO
-rw------- 1 apache apache 122M Mar 19 18:31 apreqkUS2cX
-rw-r--r-- 1 apache apache 9.5M Mar 19 18:31 upload.test
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 301M
-rw------- 1 apache apache 122M Mar 19 18:31 apreq42MmiO
-rw------- 1 apache apache 122M Mar 19 18:31 apreqkUS2cX
-rw-r--r-- 1 apache apache  59M Mar 19 18:31 upload.test
[felix@radiohead modules]# ls -lh /var/cache/mod_cod/
total 122M
-rw-r--r-- 1 apache apache 122M Mar 19 18:31 upload.test

-- System --
libapreq2-2.12
Server version: Apache/2.2.3
Server built:   Nov 12 2008 10:41:27
2.6.18-92.1.22.el5xen

-- httpd.conf --
LoadModule apreq_module       modules/mod_apreq2.so
APREQ2_ReadLimit     1024M
APREQ2_BrigadeLimit  10K
APREQ2_TempDir       /var/cache/mod_cod

Mime
View raw message