fokenrute
fokenrute

Reputation: 739

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 handled by libevent so if you have hints on how to implement large file uploading, please led me on the right path.

Upvotes: 0

Views: 2063

Answers (2)

user603483
user603483

Reputation: 53

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).

Upvotes: 1

Javier
Javier

Reputation: 62613

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.

Upvotes: 1

Related Questions