handling multiple requests using same connection

Started by jimyoo, May 30, 2012, 02:15:14 AM

Previous topic - Next topic

jimyoo

I try to write an apache module (in C) which handlers 1000s of clients uploading files periodically (say every 10 sec) through https.

Because of the ssl handshak for each request, the CPU usage is huge in the server side.
I wonder if there is a way to keep the http connection (per client) so the next requests may use the previous connection unless there is timeout. What API/logic should I use to solve this problem?

I am new to this apache stuff so any comment will be helpful.

Thanks in advance,

Gregg


mario

Using the KeepAlive feature plus the session cache should save CPU time. But might reduce the number of simultan requests, depending on the config and available RAM.

jimyoo

Thanks for the comments.
For now, it seems I'd better study more on apache before asking to many basic stuffs.

jimyoo

It is simpler than I thought. As mario said, having KeepAliveTimeout long enough solves the issue.