|
From: Dean M. B. <mik...@gm...> - 2010-11-16 08:19:12
|
On Sun, Nov 14, 2010 at 2:50 PM, Dean Michael Berris
<mik...@gm...> wrote:
> On Sat, Nov 13, 2010 at 4:42 PM, qjmann <sou...@gm...> wrote:
>>
>> So, next trouble is how to check if client[i] has received the whole
>> response and disconnected from server ("Connection: close" request
>> header was used) or not. How to check this?
>
> You cannot do that yet now.
>
And with 0.8-beta, you can do this now. :)
I just implemented a wrapper/checker for checking whether a response
object is ready for processing. You can then loop through each
response object with the 'ready' wrapper:
if (ready(response)) { /* the response is ready here */ }
else { /* the response is not ready yet */ }
>
> These are not possible yet. As I've said earlier, this will be made
> possible in a later release, potentially 0.9, which will come after
> 0.8 (scheduled for release next week).
>
I thought it wasn't easy to do, and found myself wanting something
like this too, so I just did it. 0.8 should have it now, as much as
0.8-beta already has it now.
--
Dean Michael Berris
deanberris.com
|