You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2013/02/02 20:25:49 UTC

svn commit: r1441792 - /tomcat/native/branches/1.1.x/native/src/poll.c

Author: mturk
Date: Sat Feb  2 19:25:49 2013
New Revision: 1441792

URL: http://svn.apache.org/viewvc?rev=1441792&view=rev
Log:
Fix BZ55413 by ensuring the returned value is number of event/sockets pairs

Modified:
    tomcat/native/branches/1.1.x/native/src/poll.c

Modified: tomcat/native/branches/1.1.x/native/src/poll.c
URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/poll.c?rev=1441792&r1=1441791&r2=1441792&view=diff
==============================================================================
--- tomcat/native/branches/1.1.x/native/src/poll.c (original)
+++ tomcat/native/branches/1.1.x/native/src/poll.c Sat Feb  2 19:25:49 2013
@@ -477,5 +477,5 @@ TCN_IMPLEMENT_CALL(jint, Poll, pollset)(
     }
     if (n > 0)
         (*e)->SetLongArrayRegion(e, set, 0, n, p->set);
-    return n;
+    return n / 2;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org