camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" <>
Subject Re: MinaConsumer timeout?
Date Wed, 26 Nov 2008 11:57:05 GMT
Hi Trev

Do you mind creating a ticket for this and if possible submitting a
patch. Then as with the http heaaders I will be able to commit it in
very short time.

/Claus Ibsen
Apache Camel Committer

On Tue, Nov 25, 2008 at 1:08 PM, Claus Ibsen <> wrote:
> Hi Trew
> Well spotted, there is no timeout in the consumer.
> You are welcome to create a ticket in JIRA and if possible submit a
> patch with unittest (preferred to have test)
> /Claus Ibsen
> Apache Camel Committer
> Blog:
> On Tue, Nov 25, 2008 at 9:37 AM, Trevv <> wrote:
>> I think the normal way to timeout an incoming Mina connection is to
>> implement org.apache.mina.common.IoHandler.sessionIdle.  But I don't see
>> any good way to do this in Camel, because MinaConsumer$ReceiveHandler is
>> final and inherits a no-op implementation of sessionIdle.
>> I don't personally need sessionIdle, because I've decided that for
>> my current project the two-hour timeout provided by SO_KEEPALIVE is
>> good enough, and I found that I could easily enable SO_KEEPALIVE by
>> overriding MinaComponent.configureSocketCodecFactory.
>> I'm just writing to suggest that you might want to add MinaConsumer
>> timeouts to the agenda for Camel 2.0, because timeouts are very useful.
>> Or does Camel already have a way to do MinaConsumer timeouts, and I
>> just didn't notice it?
>> --
>> View this message in context:
>> Sent from the Camel - Users mailing list archive at

View raw message