incubator-lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject Re: [lucy-user] Concurrent searching
Date Thu, 24 Nov 2011 10:17:14 GMT
On 24/11/2011 09:50, goran kent wrote:
> On Wed, Nov 23, 2011 at 10:35 PM, Marvin Humphrey
> <marvin@rectangular.com>  wrote:
>> Something like this:
>>
>>     my @responses;
>>     for (my $i = 0; $i<  $num_shards; $i++) {
>>         my $response  = $self->_retrieve_response_from_shard($i);
>>         $responses[$i] = $response->{retval};
>>     }
>
> bloody $sock->write doesn't return number of bytes written (like C), but 1...

$sock->write uses print internally, which should take care of partial 
writes. I think it's safe to assume that all bytes are written to the 
socket.

Nick


Mime
View raw message