[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fastcgipp-users] Question about Fastcgi++ mechanism
From: |
Eddie Carle |
Subject: |
Re: [Fastcgipp-users] Question about Fastcgi++ mechanism |
Date: |
Mon, 05 Mar 2012 16:50:27 -0700 |
On Fri, 2012-03-02 at 14:45 +0800, lxs567890 wrote:
> Hi, now I'm making RESTFUL API for my system through Nginx+Fastcgi++.
> But I'm wondering how can I seperate the write and read request in the
> Fastcgi++ agent. If I use one process for Fastcgi++, when the read
> request arrived, it can't response to the other request. I want to
> know whether I can make the read or write operation on the poll loop.
> If the request has been done, I can call the response to return the
> result.
I'm not 100% clear on what you're trying to do, but why not just use the
Request::callback() function to talk between the requests? When one
isn't busy, return false from response() and then wake it up again from
the other request with callback().
--
Eddie Carle