tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: svn commit: r1650535 - /tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
Date Fri, 09 Jan 2015 14:15:07 GMT
On 09/01/2015 14:04, remm@apache.org wrote:
> Author: remm
> Date: Fri Jan  9 14:04:43 2015
> New Revision: 1650535
> 
> URL: http://svn.apache.org/r1650535
> Log:
> Fix NPE that was swallowed.

Thanks. That would certainly explain running out of connections.

Mark


> 
> Modified:
>     tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
> 
> Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
> URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1650535&r1=1650534&r2=1650535&view=diff
> ==============================================================================
> --- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
> +++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Fri Jan  9 14:04:43
2015
> @@ -911,7 +911,7 @@ public class Nio2Endpoint extends Abstra
>              super.reset(channel, soTimeout);
>              upgradeInit = false;
>              sendfileData = null;
> -            socketWriteBuffer = channel.getBufHandler().getWriteBuffer();
> +            socketWriteBuffer = (channel == null) ? null : channel.getBufHandler().getWriteBuffer();
>          }
>  
>          @Override
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


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


Mime
View raw message