JETTY-1068 better warning for buffer overflow

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@568 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-07-21 01:26:02 +00:00
parent 60cc0db395
commit c6a5ddd20e
1 changed files with 2 additions and 0 deletions

View File

@ -563,6 +563,8 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
switch(_result.getStatus())
{
case BUFFER_OVERFLOW:
throw new IllegalStateException(_result.toString());
case BUFFER_UNDERFLOW:
if (Log.isDebugEnabled()) Log.debug("unwrap {}",_result);
return (total_filled > 0);