directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Closed: (DIR-18) Prevent phantom connections
Date Fri, 20 Feb 2004 08:21:52 GMT

   The following issue has been closed.

   Resolver: Alex Karasulu
       Date: Fri, 20 Feb 2004 12:21 AM

Found a workaround for this nasty behavior - simply blow away keys that were not selected
but came up in the selection list.  Basically select() returned 0 but a bunch of selection
keys are in the selected set.  These keys are most likely phantoms.  Here are the diffs in
cvs for this change:

View the issue:

Here is an overview of the issue:
        Key: DIR-18
    Summary: Prevent phantom connections
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Directory

   Assignee: Alex Karasulu
   Reporter: Alex Karasulu

    Created: Thu, 19 Feb 2004 11:28 PM
    Updated: Fri, 20 Feb 2004 12:21 AM

Some clients will never propery cleanup after themselves.  This can under heavy load create
problems.  The server's input selector seems to think these phantom channels are ready all
the time and returns immediately from all select calls.  So a single phantom client will leave
you chewing up the CPU.  The client channel often does not exhibit proper behavoir where the should return -1 for and EOF.  This may actually take some time for the timeout
to take effect.

The key here is to find selector keys that keep triggering select to return immediately. 
Check the channels of the selectors to see if they are writable to for example and cancel
them if they are not.  This is a really bad work around but for now that's one option.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message