Re: [libuv] uv_accept in one thread and uv_read_start from other thread

2018-02-09 Thread Yuriy Yevtukhov
> > Hi. > I have a similar task - process incoming connections in different thread. > And I don't have fixed set of working threads, they are started on demand > and depending on settings which can, in particular, say to start new thread > for each incoming connection. > Creation and

Re: [libuv] uv_accept in one thread and uv_read_start from other thread

2016-08-29 Thread Saúl Ibarra Corretgé
On 08/26/2016 10:34 PM, Tigran Bayburtsyan wrote: > 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

Re: [libuv] uv_accept in one thread and uv_read_start from other thread

2016-08-26 Thread Tigran Bayburtsyan
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

Re: [libuv] uv_accept in one thread and uv_read_start from other thread

2016-08-26 Thread Tigran Bayburtsyan
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