On Fri, Aug 30, 2013 at 2:39 PM, Rajiv Kurian <
geet...@gmail.com> wrote:
> My motivation is to use a single go routine and lock it to a thread and save
> memory compared to the go routine per connection model.
> On Friday, August 30, 2013 2:34:30 PM UTC-7, Ian Lance Taylor wrote:
>>
>> On Fri, Aug 30, 2013 at 2:01 PM, Rajiv Kurian <
geet...@gmail.com> wrote:
>> > Is it possible to have a single go routine handle multiple connections
>> > similar to how an epoll run loop would work.
>>
>> You could have a small goroutine for each connection feeding the data
>> into a channel, and then have one main goroutine that uses a loop
>> around a select statement. I don't know why you would want to do it
>> that way, but it should work.
>>
>> Ian
>