Thread: [Cppcms-users] Upload large files
Brought to you by:
artyom-beilis
|
From: Saikumar G. <sai...@gm...> - 2013-05-09 18:19:31
|
We are unable to upload large files. Small files (even multiple files) work
perfectly well.
I am trying to upload a 130MB file.
Our requirement is to upload upto 2GB of data.
1. Lighttpd is used as the webserver. There is no config settings at the
lighttpd.conf file to limit the upload size.
The line for server.max-request-size is commented out hoping the default
lighttpd limit is used ( 2GB ).
2. The size limit in cppcms is set to 2GB.
"security" : {
"multipart_form_data_limit" : "2097152"
},
3. Getting the following error in lighttpd error.log when a large file
completes upload from the client.
2013-05-09 13:40:34: (mod_fastcgi.c.3068) connection was dropped after
accept() (perhaps the fastcgi process died), write-offset: 66687
socket: unix:/tmp/hello-fcgi-socket-0
4. At the client I am using YUI uploader to upload.
Anything else I am doing wrong ?
|
|
From: Marcel H. <ke...@co...> - 2013-05-09 21:48:16
Attachments:
signature.asc
|
On 09.05.2013 20:19, Saikumar Gandapodi wrote:
> We are unable to upload large files. Small files (even multiple files) work
> perfectly well.
> I am trying to upload a 130MB file.
> Our requirement is to upload upto 2GB of data.
I don't think that HTTP is a good protocoll for transfering 2GB of data
to the server. Maybe use another protocoll like ftp/ssh?
Maybe you can create via the webinterface a temporary ssh/ftp access and
upload the data. 2GB are a lot of data and HTTP can't continue its
aborted connections.
> 1. Lighttpd is used as the webserver. There is no config settings at the
> lighttpd.conf file to limit the upload size.
> The line for server.max-request-size is commented out hoping the default
> lighttpd limit is used ( 2GB ).
>
> 2. The size limit in cppcms is set to 2GB.
> "security" : {
> "multipart_form_data_limit" : "2097152"
> },
>
> 3. Getting the following error in lighttpd error.log when a large file
> completes upload from the client.
> 2013-05-09 13:40:34: (mod_fastcgi.c.3068) connection was dropped after
> accept() (perhaps the fastcgi process died), write-offset: 66687
> socket: unix:/tmp/hello-fcgi-socket-0
>
> 4. At the client I am using YUI uploader to upload.
>
> Anything else I am doing wrong ?
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
|
|
From: Saikumar G. <sai...@gm...> - 2013-05-09 22:05:26
|
We cannot expect every user to use ftp or scp to transfer files. See for example youtube, yousendit or wetransfer. Such sites are doing it. Thanks. |
|
From: Saikumar G. <sai...@gm...> - 2013-05-12 11:25:07
|
Artyom,
Here is the output of strace when a large file was sent and also a smaller
file was sent.
Dont know if this will help.
The member function for post method handler is not called. However for
smaller files it does perfectly fine.
What could be the issue ?
----------- strace when a large file (135MB) is sent ---------------
epoll_wait(8, {{EPOLLIN, {u32=0, u64=0}}}, 128, 3600000) = 1
epoll_ctl(8, EPOLL_CTL_DEL, 0, {0, {u32=0, u64=0}}) = 0
accept(0, 0, NULL) = 11
fcntl(11, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0
readv(11, 0x7fff207f7940, 1) = -1 EAGAIN (Resource temporarily
unavailable)
epoll_ctl(8, EPOLL_CTL_ADD, 11, {EPOLLIN, {u32=11, u64=11}}) = 0
epoll_ctl(8, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0
epoll_wait(8, {{EPOLLIN, {u32=11, u64=11}}}, 128, 3600000) = 1
epoll_ctl(8, EPOLL_CTL_DEL, 11, {0, {u32=11, u64=11}}) = 0
readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4N\0\0\17\17SERVER"...,
16384}], 1) = 16384
epoll_wait(8, {}, 128, 0) = 0
epoll_wait(8, {}, 128, 0) = 0
writev(11, [{"\1\6\0\1\0\212\6\0", 8}, {"Content-Type: text/html\r\nStatus:"..
., 138}, {"\0\0\0\0\0\0", 6}], 3) = 152
epoll_wait(8, {}, 128, 0) = 0
writev(11, [{"\1\6\0\1\0\0\0\0\1\3\0\1\0\10\0\0\0\0\0\0\0\0\0\0", 24}], 1) =
24
epoll_wait(8, {}, 128, 0) = 0
shutdown(11, 2 /* send and receive */) = 0
shutdown(11, 2 /* send and receive */) = 0
close(11) = 0
epoll_wait(8,
----------- strace when a small file (1.5mb) is sent ---------------
epoll_wait(8, {{EPOLLIN, {u32=0, u64=0}}}, 128, 3600000) = 1
epoll_ctl(8, EPOLL_CTL_DEL, 0, {0, {u32=0, u64=0}}) = 0
accept(0, 0, NULL) = 11
fcntl(11, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0
readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4K\0\0\17\17SERVER"..
., 16384}], 1) = 16384
epoll_ctl(8, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0
brk(0xca0000) = 0xca0000
readv(11, [{"R\vf\20+I\302\26\245\260;X\233\277a\345t!\251\f~b\303\371%\234
\224\332~%pC"..., 50290}], 1) = 50290
readv(11, [{"\1\5\0\1\377\377\0\0\366\350\261$\335m\376\275\351\234\333O\"e
\276y\375\377\373\322\0\20\0\5"..., 65535}], 1) = 45065
epoll_wait(8, {}, 128, 0) = 0
epoll_wait(8, {}, 128, 0) = 0
readv(11, [{"DB\f%ZpGZ\24\2\300\232R8\277)\316\2464\314\271\313\263\17?\261
\7\5\240\202R\25"..., 20478}], 1) = 20478
epoll_wait(8, {}, 128, 0) = 0
epoll_wait(8, {}, 128, 0) = 0
epoll_wait(8, {}, 128, 0) = 0
brk(0xcdc000) = 0xcdc000
epoll_wait(8, {}, 128, 0) = 0
readv(11, [{"\1\5\0\1\377\377\0\0\345\217l\257\257>\261]\24Q\366q,t\37z5\17
\201\354@\264\373\31"..., 65535}], 1) = 65535
epoll_wait(8, {}, 128, 0) = 0
epoll_wait(8, {}, 128, 0) = 0
readv(11, [{"\355U@\213\\\310\245,", 8}], 1) = 8
epoll_wait(8, {}, 128, 0) = 0
epoll_wait(8, {}, 128, 0) = 0
brk(0xd1c000) = 0xd1c000
open("/dev/urandom", O_RDONLY) = 13
read(13, "5\251\365')\220\255\0\217\314\3306\\\374\327\260", 16) = 16
close(13) = 0
open("/tmp/cppcms_uploads_35a9f5272990ad008fccd8365cfcd7b0.tmp", O_RDWR
|O_CREAT|O_TRUNC, 0666) = 13
writev(13, [{NULL, 0}, {"ID3\3\0\0\0\0\7vTCON\0\0\0\7\0\0\0Blues\0GEOB\0"...,
1024}], 2) = 1024
writev(13, [{"", 0}, {"\377\373\322\0\0\0\t\223GDK,2\340\207h\350\211e\206\\
\16\240\367\37\255<k\211\324\36\343"..., 1024}], 2) = 1024
MANY writev's happened.......
writev(13, [{"\377\377\373\322\0>\0\17\374\0K\200\0\0\t \200\tp\0\0\1\0\0\1.
\0\0\0 \0\0"..., 8190}, {"\377", 1}], 2) = 8191
write(13, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377
\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 1133)
= 1133
lseek(13, 0, SEEK_SET) = 0
futex(0xc48534, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xc48530, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
futex(0xc44d80, FUTEX_WAKE_PRIVATE, 1) = 1
|
|
From: Shiv S. D. <shi...@gm...> - 2013-05-12 11:34:30
|
readv(11, 0x7fff207f7940, 1) = -1 EAGAIN (Resource temporarily
unavailable)
That is one thing I can apparently see.
On Sun, May 12, 2013 at 4:54 PM, Saikumar Gandapodi <sai...@gm...>wrote:
> Artyom,
> Here is the output of strace when a large file was sent and also a
> smaller
> file was sent.
> Dont know if this will help.
> The member function for post method handler is not called. However for
> smaller files it does perfectly fine.
> What could be the issue ?
>
> ----------- strace when a large file (135MB) is sent ---------------
> epoll_wait(8, {{EPOLLIN, {u32=0, u64=0}}}, 128, 3600000) = 1
> epoll_ctl(8, EPOLL_CTL_DEL, 0, {0, {u32=0, u64=0}}) = 0
> accept(0, 0, NULL) = 11
> fcntl(11, F_GETFL) = 0x2 (flags O_RDWR)
> fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> readv(11, 0x7fff207f7940, 1) = -1 EAGAIN (Resource temporarily
> unavailable)
> epoll_ctl(8, EPOLL_CTL_ADD, 11, {EPOLLIN, {u32=11, u64=11}}) = 0
> epoll_ctl(8, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0
> epoll_wait(8, {{EPOLLIN, {u32=11, u64=11}}}, 128, 3600000) = 1
> epoll_ctl(8, EPOLL_CTL_DEL, 11, {0, {u32=11, u64=11}}) = 0
> readv(11,
> [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4N\0\0\17\17SERVER"...,
> 16384}], 1) = 16384
> epoll_wait(8, {}, 128, 0) = 0
> epoll_wait(8, {}, 128, 0) = 0
> writev(11, [{"\1\6\0\1\0\212\6\0", 8}, {"Content-Type:
> text/html\r\nStatus:"..
> ., 138}, {"\0\0\0\0\0\0", 6}], 3) = 152
> epoll_wait(8, {}, 128, 0) = 0
> writev(11, [{"\1\6\0\1\0\0\0\0\1\3\0\1\0\10\0\0\0\0\0\0\0\0\0\0", 24}], 1)
> =
> 24
> epoll_wait(8, {}, 128, 0) = 0
> shutdown(11, 2 /* send and receive */) = 0
> shutdown(11, 2 /* send and receive */) = 0
> close(11) = 0
> epoll_wait(8,
>
>
> ----------- strace when a small file (1.5mb) is sent ---------------
> epoll_wait(8, {{EPOLLIN, {u32=0, u64=0}}}, 128, 3600000) = 1
> epoll_ctl(8, EPOLL_CTL_DEL, 0, {0, {u32=0, u64=0}}) = 0
> accept(0, 0, NULL) = 11
> fcntl(11, F_GETFL) = 0x2 (flags O_RDWR)
> fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> readv(11,
> [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4K\0\0\17\17SERVER"..
> ., 16384}], 1) = 16384
> epoll_ctl(8, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0
> brk(0xca0000) = 0xca0000
> readv(11, [{"R\vf\20+I\302\26\245\260;X\233\277a\345t!\251\f~b\303\371%\234
> \224\332~%pC"..., 50290}], 1) = 50290
> readv(11, [{"\1\5\0\1\377\377\0\0\366\350\261$\335m\376\275\351\234\333O\"e
> \276y\375\377\373\322\0\20\0\5"..., 65535}], 1) = 45065
> epoll_wait(8, {}, 128, 0) = 0
> epoll_wait(8, {}, 128, 0) = 0
> readv(11, [{"DB\f%ZpGZ\24\2\300\232R8\277)\316\2464\314\271\313\263\17?\261
> \7\5\240\202R\25"..., 20478}], 1) = 20478
> epoll_wait(8, {}, 128, 0) = 0
> epoll_wait(8, {}, 128, 0) = 0
> epoll_wait(8, {}, 128, 0) = 0
> brk(0xcdc000) = 0xcdc000
> epoll_wait(8, {}, 128, 0) = 0
> readv(11, [{"\1\5\0\1\377\377\0\0\345\217l\257\257>\261]\24Q\366q,t\37z5\17
> \201\354@\264\373\31"..., 65535}], 1) = 65535
> epoll_wait(8, {}, 128, 0) = 0
> epoll_wait(8, {}, 128, 0) = 0
> readv(11, [{"\355U@\213\\\310\245,", 8}], 1) = 8
> epoll_wait(8, {}, 128, 0) = 0
> epoll_wait(8, {}, 128, 0) = 0
> brk(0xd1c000) = 0xd1c000
> open("/dev/urandom", O_RDONLY) = 13
> read(13, "5\251\365')\220\255\0\217\314\3306\\\374\327\260", 16) = 16
> close(13) = 0
> open("/tmp/cppcms_uploads_35a9f5272990ad008fccd8365cfcd7b0.tmp", O_RDWR
> |O_CREAT|O_TRUNC, 0666) = 13
> writev(13, [{NULL, 0},
> {"ID3\3\0\0\0\0\7vTCON\0\0\0\7\0\0\0Blues\0GEOB\0"...,
> 1024}], 2) = 1024
> writev(13, [{"", 0},
> {"\377\373\322\0\0\0\t\223GDK,2\340\207h\350\211e\206\\
> \16\240\367\37\255<k\211\324\36\343"..., 1024}], 2) = 1024
> MANY writev's happened.......
> writev(13, [{"\377\377\373\322\0>\0\17\374\0K\200\0\0\t
> \200\tp\0\0\1\0\0\1.
> \0\0\0 \0\0"..., 8190}, {"\377", 1}], 2) = 8191
> write(13, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377
> \377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 1133)
> = 1133
> lseek(13, 0, SEEK_SET) = 0
> futex(0xc48534, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xc48530, {FUTEX_OP_SET, 0,
> FUTEX_OP_CMP_GT, 1}) = 1
> futex(0xc44d80, FUTEX_WAKE_PRIVATE, 1) = 1
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Best regards,
Shiv Shankar Dayal
|
|
From: Artyom B. <art...@ya...> - 2013-05-12 17:36:32
|
It is really strange, does it work for a small files? On what size the failure occurs Do you have enough space on the disk (default /tmp)? Does it work or not with internal web server? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Saikumar Gandapodi <sai...@gm...> >To: cpp...@li... >Sent: Sunday, May 12, 2013 2:24 PM >Subject: Re: [Cppcms-users] Upload large files > > >Artyom, > Here is the output of strace when a large file was sent and also a smaller >file was sent. >Dont know if this will help. >The member function for post method handler is not called. However for >smaller files it does perfectly fine. >What could be the issue ? > >----------- strace when a large file (135MB) is sent --------------- >epoll_wait(8, {{EPOLLIN, {u32=0, u64=0}}}, 128, 3600000) = 1 >epoll_ctl(8, EPOLL_CTL_DEL, 0, {0, {u32=0, u64=0}}) = 0 >accept(0, 0, NULL) = 11 >fcntl(11, F_GETFL) = 0x2 (flags O_RDWR) >fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 >readv(11, 0x7fff207f7940, 1) = -1 EAGAIN (Resource temporarily >unavailable) >epoll_ctl(8, EPOLL_CTL_ADD, 11, {EPOLLIN, {u32=11, u64=11}}) = 0 >epoll_ctl(8, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0 >epoll_wait(8, {{EPOLLIN, {u32=11, u64=11}}}, 128, 3600000) = 1 >epoll_ctl(8, EPOLL_CTL_DEL, 11, {0, {u32=11, u64=11}}) = 0 >readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4N\0\0\17\17SERVER"..., >16384}], 1) = 16384 >epoll_wait(8, {}, 128, 0) = 0 >epoll_wait(8, {}, 128, 0) = 0 >writev(11, [{"\1\6\0\1\0\212\6\0", 8}, {"Content-Type: text/html\r\nStatus:".. >., 138}, {"\0\0\0\0\0\0", 6}], 3) = 152 >epoll_wait(8, {}, 128, 0) = 0 >writev(11, [{"\1\6\0\1\0\0\0\0\1\3\0\1\0\10\0\0\0\0\0\0\0\0\0\0", 24}], 1) = >24 >epoll_wait(8, {}, 128, 0) = 0 >shutdown(11, 2 /* send and receive */) = 0 >shutdown(11, 2 /* send and receive */) = 0 >close(11) = 0 >epoll_wait(8, > > >----------- strace when a small file (1.5mb) is sent --------------- >epoll_wait(8, {{EPOLLIN, {u32=0, u64=0}}}, 128, 3600000) = 1 >epoll_ctl(8, EPOLL_CTL_DEL, 0, {0, {u32=0, u64=0}}) = 0 >accept(0, 0, NULL) = 11 >fcntl(11, F_GETFL) = 0x2 (flags O_RDWR) >fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 >readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4K\0\0\17\17SERVER".. >., 16384}], 1) = 16384 >epoll_ctl(8, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0 >brk(0xca0000) = 0xca0000 >readv(11, [{"R\vf\20+I\302\26\245\260;X\233\277a\345t!\251\f~b\303\371%\234 >\224\332~%pC"..., 50290}], 1) = 50290 >readv(11, [{"\1\5\0\1\377\377\0\0\366\350\261$\335m\376\275\351\234\333O\"e >\276y\375\377\373\322\0\20\0\5"..., 65535}], 1) = 45065 >epoll_wait(8, {}, 128, 0) = 0 >epoll_wait(8, {}, 128, 0) = 0 >readv(11, [{"DB\f%ZpGZ\24\2\300\232R8\277)\316\2464\314\271\313\263\17?\261 >\7\5\240\202R\25"..., 20478}], 1) = 20478 >epoll_wait(8, {}, 128, 0) = 0 >epoll_wait(8, {}, 128, 0) = 0 >epoll_wait(8, {}, 128, 0) = 0 >brk(0xcdc000) = 0xcdc000 >epoll_wait(8, {}, 128, 0) = 0 >readv(11, [{"\1\5\0\1\377\377\0\0\345\217l\257\257>\261]\24Q\366q,t\37z5\17 >\201\354@\264\373\31"..., 65535}], 1) = 65535 >epoll_wait(8, {}, 128, 0) = 0 >epoll_wait(8, {}, 128, 0) = 0 >readv(11, [{"\355U@\213\\\310\245,", 8}], 1) = 8 >epoll_wait(8, {}, 128, 0) = 0 >epoll_wait(8, {}, 128, 0) = 0 >brk(0xd1c000) = 0xd1c000 >open("/dev/urandom", O_RDONLY) = 13 >read(13, "5\251\365')\220\255\0\217\314\3306\\\374\327\260", 16) = 16 >close(13) = 0 >open("/tmp/cppcms_uploads_35a9f5272990ad008fccd8365cfcd7b0.tmp", O_RDWR >|O_CREAT|O_TRUNC, 0666) = 13 >writev(13, [{NULL, 0}, {"ID3\3\0\0\0\0\7vTCON\0\0\0\7\0\0\0Blues\0GEOB\0"..., >1024}], 2) = 1024 >writev(13, [{"", 0}, {"\377\373\322\0\0\0\t\223GDK,2\340\207h\350\211e\206\\ >\16\240\367\37\255<k\211\324\36\343"..., 1024}], 2) = 1024 >MANY writev's happened....... >writev(13, [{"\377\377\373\322\0>\0\17\374\0K\200\0\0\t \200\tp\0\0\1\0\0\1. >\0\0\0 \0\0"..., 8190}, {"\377", 1}], 2) = 8191 >write(13, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377 >\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 1133) >= 1133 >lseek(13, 0, SEEK_SET) = 0 >futex(0xc48534, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xc48530, {FUTEX_OP_SET, 0, >FUTEX_OP_CMP_GT, 1}) = 1 >futex(0xc44d80, FUTEX_WAKE_PRIVATE, 1) = 1 > > >------------------------------------------------------------------------------ >Learn Graph Databases - Download FREE O'Reilly Book >"Graph Databases" is the definitive new guide to graph databases and >their applications. This 200-page book is written by three acclaimed >leaders in the field. The early access version is available now. >Download your free book today! http://p.sf.net/sfu/neotech_d2d_may >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Saikumar G. <sai...@gm...> - 2013-05-12 11:54:16
|
No clue what that resource would mean.
But if you notice the readv succeeds after that.
>>> readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4N\0\0\1
7\17SERVER"..., 16384}], 1) = 16384
|
|
From: Shiv S. D. <shi...@gm...> - 2013-05-12 11:59:19
|
I will have to create a test situation to actually simulate that.
writev(11, [{"\1\6\0\1\0\212\6\0", 8}, {"Content-Type:
text/html\r\nStatus:"..
., 138}, {"\0\0\0\0\0\0", 6}], 3) = 152
Value of status would have helped.
On Sun, May 12, 2013 at 5:23 PM, Saikumar Gandapodi <sai...@gm...>wrote:
> No clue what that resource would mean.
> But if you notice the readv succeeds after that.
> >>> readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4N\0\0\1
> 7\17SERVER"..., 16384}], 1) = 16384
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Best regards,
Shiv Shankar Dayal
|
|
From: Shiv S. D. <shi...@gm...> - 2013-05-12 12:02:01
|
If I look closely near following there are differences. readv is not
happening but shutdown comes.
epoll_wait(8, {}, 128, 0) = 0
shutdown(11, 2 /* send and receive */) = 0
On Sun, May 12, 2013 at 5:29 PM, Shiv Shankar Dayal <
shi...@gm...> wrote:
> I will have to create a test situation to actually simulate that.
>
>
> writev(11, [{"\1\6\0\1\0\212\6\0", 8}, {"Content-Type:
> text/html\r\nStatus:"..
> ., 138}, {"\0\0\0\0\0\0", 6}], 3) = 152
>
> Value of status would have helped.
>
>
> On Sun, May 12, 2013 at 5:23 PM, Saikumar Gandapodi <sai...@gm...>wrote:
>
>> No clue what that resource would mean.
>> But if you notice the readv succeeds after that.
>> >>> readv(11, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4N\0\0\1
>> 7\17SERVER"..., 16384}], 1) = 16384
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>
>
>
> --
> Best regards,
> Shiv Shankar Dayal
>
--
Best regards,
Shiv Shankar Dayal
|
|
From: Saikumar G. <sai...@gm...> - 2013-05-12 17:43:34
|
>>>It is really strange, does it work for a small files? Yes, less than 20MB is fine. In fact tested multiple file uploads and works beautifully. >>>On what size the failure occurs ? Tried 130MB file and fails consistently. >>>Do you have enough space on the disk (default /tmp)? Yes, /tmp has 30GB free space. >>>Does it work or not with internal web server? I haven't tested with the internal web server. Do want me to test this with internal web server to out rule cppcms issue ? |
|
From: Artyom B. <art...@ya...> - 2013-05-12 18:51:41
|
Check security settings: http://cppcms.com/wikipp/en/page/cppcms_1x_config#security.multipart_form_data_limit I had just uploaded 3.3GB file without problems via CppCMS HTTP server and via fastcgi with lighttpd. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Saikumar Gandapodi <sai...@gm...> >To: cpp...@li... >Sent: Sunday, May 12, 2013 8:43 PM >Subject: Re: [Cppcms-users] Upload large files > > >>>>It is really strange, does it work for a small files? >Yes, less than 20MB is fine. In fact tested multiple file uploads and works >beautifully. > >>>>On what size the failure occurs ? >Tried 130MB file and fails consistently. > >>>>Do you have enough space on the disk (default /tmp)? >Yes, /tmp has 30GB free space. > >>>>Does it work or not with internal web server? >I haven't tested with the internal web server. >Do want me to test this with internal web server to out rule cppcms issue ? > > > > >------------------------------------------------------------------------------ >Learn Graph Databases - Download FREE O'Reilly Book >"Graph Databases" is the definitive new guide to graph databases and >their applications. This 200-page book is written by three acclaimed >leaders in the field. The early access version is available now. >Download your free book today! http://p.sf.net/sfu/neotech_d2d_may >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Saikumar G. <sai...@gm...> - 2013-05-12 19:48:06
|
The .js file already contains the following.
"security" : {
"multipart_form_data_limit" : "2097152"
},
Which version of lighttpd are you using ? I am on 1.4.32 (ssl).
|
|
From: Saikumar G. <sai...@gm...> - 2013-05-14 22:11:10
|
Any other way we can debug this problem. |
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:36:52
|
Debugger? Have you tried to use HTTP web server? I really don't know what to say. Try to create a simplest program that reproduces it and send me. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Saikumar Gandapodi <sai...@gm...> >To: cpp...@li... >Sent: Wednesday, May 15, 2013 1:10 AM >Subject: Re: [Cppcms-users] Upload large files > > >Any other way we can debug this problem. > > > > > > > > >------------------------------------------------------------------------------ >AlienVault Unified Security Management (USM) platform delivers complete >security visibility with the essential security capabilities. Easily and >efficiently configure, manage, and operate all of your security controls >from a single console and one unified framework. Download a free trial. >http://p.sf.net/sfu/alienvault_d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |