Hideki Noma wrote:
While constructing process connection handler employing
bucket-brigade feature of Apache 2, I encountered some
problem.

I am trying to handle protocols other than HTTP and
most of them starts communication from sending server
hello message.
When SSL handshake takes too long, communication fails.

Process flow goes like this

Apache: TCP/IP connection
mod_ssl: SSL handshake starts
Handler: Process handler starts
Handler: Tries to send data to client
         -> send bucket-brigade to output_filters
mod_ssl: SSL handshake done
         -> register input/output_filter

If the handler can detect when the output_filter is ready,
it will be fine, however there seems to be no functions to detect
such events.

Do you know how to detect SSL handshake is complete,
or is there other solution?
If I understand you correctly the problem is not happenning in the mod_perl land but on the mod_ssl land. Isn't the SSL handshake timeout configurable?

The output_filter is ready to accept the data as soon as you put it on the stack or as soon as it has finished processing the brigade it happens to hold and returns to grab the next one.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@;stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to