开发者

Large file uploading to a libevent-based HTTP server

I'm trying to write a HTTP to ZeroMQ proxy with libevent (2.0.4) which should be able to handle very large (up to 4GB) file upload. The problem is I don't know how large post requests (larger than memory) are han开发者_如何学Godled by libevent so if you have hints on how to implement large file uploading, please led me on the right path.


have you read the libevent source code? it's very readable.

If you're using it's HTTP code, i think it uses the 'bufferedevent' (or is it evented buffers?) feature. You can simply set callbacks when the input buffer reaches the highwater mark.


Maybe you will find some info in http://mongrel2.org/home since this is HTTP server and proxy that uses ZeroMQ for processing (backend handlers).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜