Just wanted to give some update.
It looks strange but I've just changed loop pointer in socket and it 
started working from another thread.

I'm doing in this way

   1. Running 4 loops for reading data and 1 loop for accepting connection
   2. Accepting connection, authenticating, stopping read process and 
   changing loop pointer to one of the 4 other loops
   3. Starting read process

I've surprised but it works very well, even on data load.
Am I doing wrong, by changing loop pointer manually ?


On Friday, August 26, 2016 at 6:48:08 PM UTC+4, Tigran Bayburtsyan wrote:
>
> It's sad, I tried to get example out of that file few days ago, but it's 
> not related to what I'm trying to do.
> Anyway thanks, will try to hack something :)
>
> On Friday, August 26, 2016 at 6:17:32 PM UTC+4, Saúl Ibarra Corretgé wrote:
>>
>> On 26/08/16 15:13, Tigran Bayburtsyan wrote: 
>> > Thanks for replay, almost same thing is written in documentation and 
>> > couple of multiprocess examples. 
>> > Can you share with me super super super super simple example of code ? 
>> > Thanks 
>> > 
>>
>> I don't have an example handy, but here is a test which does exactly 
>> that: 
>> https://github.com/libuv/libuv/blob/v1.x/test/test-ipc-send-recv.c#L265 
>>
>>
>> Cheers, 
>>
>> -- 
>> Saúl Ibarra Corretgé 
>> http://bettercallsaghul.com 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to