I am a beginner for nginx development and nginx is really tough for me. Now I'm developing a distributed mp4 system getting used of the mp4_module in nginx. What I need to do is to whenever a client ask for an mp4 file, the server will download the file from other servers to local and then process the file. The question is how to download files in nginx. The protocol can http. I've try using libcurl. However, whenever I called the functions in libcurl, some errors occur. Here's the error.log.
2012/06/28 23:35:04 [debug] 25029#0: *1 http cl:-1 max:1048576
2012/06/28 23:35:04 [debug] 25029#0: *1 rewrite phase: 2
2012/06/28 23:35:04 [debug] 25029#0: *1 post rewrite phase: 3
2012/06/28 23:35:04 [debug] 25029#0: *1 generic phase: 4
2012/06/28 23:35:04 [debug] 25029#0: *1 generic phase: 5
2012/06/28 23:35:04 [debug] 25029#0: *1 access phase: 6
2012/06/28 23:35:04 [debug] 25029#0: *1 access phase: 7
2012/06/28 23:35:04 [debug] 25029#0: *1 post access phase: 8
2012/06/28 23:35:04 [debug] 25029#0: *1 http set discard body
2012/06/28 23:35:04 [debug] 25029#0: *1 http mp4 filename: "/usr/local/nginx/html/test.mp4"
2012/06/28 23:35:04 [debug] 25029#0: *1 ngx_open_cached_file. filename: "/usr/local/nginx/html/test.mp4"
2012/06/28 23:35:04 [debug] 25029#0: *1 add cleanup: 08BE8AB4
2012/06/28 23:35:04 [debug] 25029#0: *1 Can't find the mp4 filename: "ET /test.mp4?start=13 HTTP/1.1"
2012/06/28 23:35:04 [debug] 25029#0: *1 Start to test_db(): "ET /test.mp4?start=13 HTTP/1.1"
2012/06/28 23:35:04 [debug] 25029#0: *1 End test_db(): "ET /test.mp4?start=13 HTTP/1.1"
2012/06/28 23:35:04 [debug] 25029#0: *1 Start to test_curl(): "ET /test.mp4?start=13 HTTP/1.1"
2012/06/28 23:35:04 [alert] 25028#0: worker process 25029 exited on signal 11 (core dumped)
I wonder what the last message means and I am looking for any other better way to do it. Thank you very much.