Re: imap, send/recv_io, etc: Working on a problem...
Shugo Maeda <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hello, At Thu, 06 May 2004 14:05:38 -0500, Hal Fulton <[email protected]> wrote: > So I have some questions: > > 1. Is it possible to use the "parent" Apache process to run this code? > If it's possible, is there any reason not to do so? No, the parant process does not have the ruby interpreter instance. > 2. Can I use send_io and recv_io to pass the connection between > processes? Or if the cache is owned by the parent, should I try > some other method? I think you have to use the support process to manage IMAP connections. But I don't know how send_io(sendmsg(2)) cost. It may cost as much as IMAP connections. > 3. Is send_fd relevant here? I don't yet understand how it works. Do you mean Apache::Request#send_fd? It is used to transfer data from IO to the client. So it's not relevant. I think IMAP authentications are not so expensive because parsing of other IMAP responses are expensive enough:) But I may be wrong because I have not profiled. If it is the problem, the solution like WEBrick or FastCGI may be better than mod_ruby. Because they handles all requests in one process. Shugo