Apache Directory Project - [jira] Resolved: (DIRMINA-83) SocketIoProcessor halts if channel is closed while flush

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > August 2005 > [jira] Resolved: (DIRMINA-83) SocketIoProcessor halts if channel is closed while flush





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Resolved: (DIRMINA-83) SocketIoProcessor halts if channel is closed while flush
Trustin Lee (JIRA)

2005-08-28, 7:45 am

[ http://issues.apache.org/jira/brows...A-83?page=3Dall ]
=20
Trustin Lee resolved DIRMINA-83:
--------------------------------

Resolution: Fixed

I checked in the fix. I'll close this issue if there's no more report on t=
his bug.

> SocketIoProcessor halts if channel is closed while flushing.
> ------------------------------------------------------------
>
> Key: DIRMINA-83
> URL: http://issues.apache.org/jira/browse/DIRMINA-83
> Project: Directory MINA
> Type: Bug
> Versions: 0.7.3
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Fix For: 0.7.4


>
> From Rodrigo Kumpera's report:
> Great work with mina, it do makes writting nio servers easy. I=C2=B4m
> writing a filtering server and have the following scenario:
> 1-incoming connections, using ServiceRegistry with IoHandler.
> 2-filtering is done in a separate pool (using doug lea's
> util.concurrent package)
> 3-fowarding the result to another server, using SocketIoProcessor and
> IoThreadPoolFilter.
> So fair I=C2=B4ve been able to fine tune the thread pool used by the
> ServiceRegistry (1).
> My problem is with (2) and (3), I want to have a single thread pool to
> be shared by the 3 stages of the server.
> With the filtering stage I=C2=B4m thinking about playing with
> IoThreadPoolFilter implementation to use util.concurrent and expose
> it's interface.
> My problem when using a thread pool with the last stage, when
> connecting to foreign hosts, is that it throws the following exception
> under moderate load:
> java.nio.channels.CancelledKeyException
> at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:5=

5)
> at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:5=

9)
> at org.apache.mina.io.socket.SocketIoProcessor.flush(SocketIoProce=

ssor.j
> ava:511)
> at org.apache.mina.io.socket.SocketIoProcessor.flushSessions(Socke=

tIoPro
> cessor.java:422)
> at org.apache.mina.io.socket.SocketIoProcessor.access$300(SocketIo=

Proces
> sor.java:41)
> at org.apache.mina.io.socket.SocketIoProcessor$Worker.run(SocketIo=

Proces
> sor.java:546)
> I tried to use the same IoThreadPoolFilter with an instance of
> SocketIoProcessor and ServiceRegistry, but it doesn=C2=B4t seen to work,
> the server halts and don't make any progress.


--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com