You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ubekhet <ub...@goldigolino.com.es> on 2008/05/16 22:37:14 UTC
Refuse connections in the selector
Hi,
I would like to know, how I can refuse the connections when they are in
the selector pool, just for waiting thread to manage connections.
I use Tomcat 6 and also using NIO paradigm! and I dont know how to do that.
Thanks in advance!!!
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Refuse connections in the selector
Posted by ub...@goldigolino.com.es.
Yes, I want to write my own NIO code. But I dont know how to cancel/close
a connection in the selector, because the file NioEndPoint.java es so
confusing and I dont in which of class of that file I have to do that.
Tnaks
> I'm still not sure what you're asking, but if you are writing your own
> NIO code, then you can cancel/close a connection that is in the selector
> pool at any point in time. Just get it out of the selector pool, and
> close it.
>
> Filip
>
> ubekhet wrote:
>> Hi Filip,
>>
>> Is related java nio, and in this case as I use Tomcat with NIO
>> paradigm, is the same.
>>
>> Thanks
>>
>> Filip Hanik - Dev Lists wrote:
>>> is this related to tomcat, or just generic java/nio?
>>>
>>> Filip
>>>
>>> ubekhet wrote:
>>>> Hi,
>>>>
>>>> I would like to know, how I can refuse the connections when they are
>>>> in the selector pool, just for waiting thread to manage connections.
>>>> I use Tomcat 6 and also using NIO paradigm! and I dont know how to
>>>> do that.
>>>>
>>>> Thanks in advance!!!
>>>>
>>>> ---------------------------------------------------------------------
>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Refuse connections in the selector
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
I'm still not sure what you're asking, but if you are writing your own
NIO code, then you can cancel/close a connection that is in the selector
pool at any point in time. Just get it out of the selector pool, and
close it.
Filip
ubekhet wrote:
> Hi Filip,
>
> Is related java nio, and in this case as I use Tomcat with NIO
> paradigm, is the same.
>
> Thanks
>
> Filip Hanik - Dev Lists wrote:
>> is this related to tomcat, or just generic java/nio?
>>
>> Filip
>>
>> ubekhet wrote:
>>> Hi,
>>>
>>> I would like to know, how I can refuse the connections when they are
>>> in the selector pool, just for waiting thread to manage connections.
>>> I use Tomcat 6 and also using NIO paradigm! and I dont know how to
>>> do that.
>>>
>>> Thanks in advance!!!
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Refuse connections in the selector
Posted by ubekhet <ub...@goldigolino.com.es>.
Hi Filip,
Is related java nio, and in this case as I use Tomcat with NIO paradigm,
is the same.
Thanks
Filip Hanik - Dev Lists wrote:
> is this related to tomcat, or just generic java/nio?
>
> Filip
>
> ubekhet wrote:
>> Hi,
>>
>> I would like to know, how I can refuse the connections when they are
>> in the selector pool, just for waiting thread to manage connections.
>> I use Tomcat 6 and also using NIO paradigm! and I dont know how to do
>> that.
>>
>> Thanks in advance!!!
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Refuse connections in the selector
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
is this related to tomcat, or just generic java/nio?
Filip
ubekhet wrote:
> Hi,
>
> I would like to know, how I can refuse the connections when they are
> in the selector pool, just for waiting thread to manage connections.
> I use Tomcat 6 and also using NIO paradigm! and I dont know how to do
> that.
>
> Thanks in advance!!!
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org