Apache Directory Project - [jira] Updated: (DIRMINA-123) Race condition in AbstractIoFilterChain

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > December 2005 > [jira] Updated: (DIRMINA-123) Race condition in AbstractIoFilterChain





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] Updated: (DIRMINA-123) Race condition in AbstractIoFilterChain
Trustin Lee (JIRA)

2005-12-01, 2:45 am

[ http://issues.apache.org/jira/brows...NA-123?page=all ]

Trustin Lee updated DIRMINA-123:
--------------------------------

Version: (was: 0.9)

> Race condition in AbstractIoFilterChain
> ---------------------------------------
>
> Key: DIRMINA-123
> URL: http://issues.apache.org/jira/browse/DIRMINA-123
> Project: Directory MINA
> Type: Bug
> Reporter: Vinod Panicker
> Assignee: Trustin Lee
> Fix For: 0.9


>
> There is a race condition that occurs due to filter handling in AbstractIoFilterChain. The bug manifested itself when using the client side of the SSLFilter impl. In the register method below -
> private void register( Entry prevEntry, String name, IoFilter filter ) throws Exception
> {
> Entry newEntry = new Entry( prevEntry, prevEntry.nextEntry, name, filter );
> filter.init( this, newEntry.nextFilter );
>
> prevEntry.nextEntry.prevEntry = newEntry;
> prevEntry.nextEntry = newEntry;
> name2entry.put( name, newEntry );
> filter2entry.put( filter, newEntry );
> }
> filter.init causes the ssl client HELLO to be sent to the server. If the client and server are on a fast network, the server response comes before the filter has been "put", causing it to be handed to the IoHandler.
> Solution is to init the filter after putting it on the session.


--
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