You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Vivek Goel <go...@gmail.com> on 2013/06/04 20:57:11 UTC
Change backlog connection count
Hi
I am using c++ lib. Is there way to change backlog connection count in
threaded server ?
Re: Change backlog connection count
Posted by Randy Abernethy <Ra...@rx-m.com>.
Hello Vivek,
At the moment the acceptBacklog_ is hard coded to 1024.THRIFT-1997
<https://issues.apache.org/jira/browse/THRIFT-1997> addresses this.
If you apply the 1997 patch you can invoke setAcceptBacklog( myBLValue
); on the TServerSocket
that you pass to TThreadedServer. You must set the new backlog before
calling listen().
Hope this helps.
Best,
Randy
On 6/4/2013 11:57 AM, Vivek Goel wrote:
> Hi
> I am using c++ lib. Is there way to change backlog connection count in
> threaded server ?
>
--
Randy Abernethy
Managing Partner, RX-M, LLC
randy.abernethy@rx-m.com
Cell: +1-415-624-6447
San Francisco: +1-415-800-2922
Tokyo: +81-50-5532-8040
www.rx-m.com
@rxmllc
Re: Change backlog connection count
Posted by Jake Farrell <jf...@apache.org>.
Hey Vivek
Thrift-1997 was committed yesterday to trunk
-Jake
Vivek Goel wrote:
>
> OK, thanks.
>
> regards
> Vivek Goel
>
>
> On Wed, Jun 5, 2013 at 5:51 AM, Randy Abernethy
> <ra...@gmail.com>wrote:
>
>>
>> Hello Vivek,
>>
>> At the moment the acceptBacklog_ is hard coded to 1024.
>> THRIFT-1997<https://issues.apache.org/jira/browse/THRIFT-1997>
>> addresses
>> this.
>> If you apply the 1997 patch you can invoke setAcceptBacklog( myBLValue );
>> on the TServerSocket
>> that you pass to TThreadedServer. You must set the new backlog before
>> calling listen().
>>
>> Hope this helps.
>>
>> Best,
>> Randy
>>
>>
>> On Tue, Jun 4, 2013 at 11:57 AM, Vivek Goel<go...@gmail.com>
>> wrote:
>>
>>>
>>> Hi
>>> I am using c++ lib. Is there way to change backlog connection count in
>>> threaded server ?
>>>
>>
>
Re: Change backlog connection count
Posted by Vivek Goel <go...@gmail.com>.
OK, thanks.
regards
Vivek Goel
On Wed, Jun 5, 2013 at 5:51 AM, Randy Abernethy
<ra...@gmail.com>wrote:
> Hello Vivek,
>
> At the moment the acceptBacklog_ is hard coded to 1024.
> THRIFT-1997<https://issues.apache.org/jira/browse/THRIFT-1997>
> addresses
> this.
> If you apply the 1997 patch you can invoke setAcceptBacklog( myBLValue );
> on the TServerSocket
> that you pass to TThreadedServer. You must set the new backlog before
> calling listen().
>
> Hope this helps.
>
> Best,
> Randy
>
>
> On Tue, Jun 4, 2013 at 11:57 AM, Vivek Goel <go...@gmail.com>
> wrote:
>
> > Hi
> > I am using c++ lib. Is there way to change backlog connection count in
> > threaded server ?
> >
>
Re: Change backlog connection count
Posted by Randy Abernethy <ra...@gmail.com>.
Hello Vivek,
At the moment the acceptBacklog_ is hard coded to 1024.
THRIFT-1997<https://issues.apache.org/jira/browse/THRIFT-1997>
addresses
this.
If you apply the 1997 patch you can invoke setAcceptBacklog( myBLValue );
on the TServerSocket
that you pass to TThreadedServer. You must set the new backlog before
calling listen().
Hope this helps.
Best,
Randy
On Tue, Jun 4, 2013 at 11:57 AM, Vivek Goel <go...@gmail.com> wrote:
> Hi
> I am using c++ lib. Is there way to change backlog connection count in
> threaded server ?
>