Re: [Cppcms-users] Upload large files
Brought to you by:
artyom-beilis
|
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
|