Re: [Libevent-users] Handling concurent evhttp connections with evhttp_send_reply_chunk.

2009-11-16 Thread Patrick C
Agreed. The most optimal way of doing this would be to use your operating system's sendfile() routine, where available, in the evhttp_write_cb routine. -Patrick 2009/11/16 Tero Marttila > Krzysztof Adamski wrote: > >> Hi, >> i would like to build simple HTTPD server using libevent2. It is going

Re: [Libevent-users] Handling concurent evhttp connections with evhttp_send_reply_chunk.

2009-11-16 Thread Tero Marttila
Krzysztof Adamski wrote: Hi, i would like to build simple HTTPD server using libevent2. It is going to send some quite big files but i would like it to handle couple concurrent connections. The files can be sent in chunks so I'm using evhttp_send_reply_chunk for this. The problem is, how can I se

[Libevent-users] Handling concurent evhttp connections with evhttp_send_reply_chunk.

2009-11-16 Thread Krzysztof Adamski
Hi, i would like to build simple HTTPD server using libevent2. It is going to send some quite big files but i would like it to handle couple concurrent connections. The files can be sent in chunks so I'm using evhttp_send_reply_chunk for this. The problem is, how can I send big files while still be