Skip to content

Commit

Permalink
Fix bug #1156 .
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Oliver Nutter <headius@headius.com>
  • Loading branch information
Xb authored and headius committed Dec 19, 2013
1 parent 959a3c5 commit e4a8933
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -482,6 +482,9 @@ public int write(ByteBuffer src, boolean blocking) throws SSLException, IOExcept
}
netData.clear();
SSLEngineResult res = engine.wrap(src, netData);
if (res.getStatus()==SSLEngineResult.Status.CLOSED) {
throw getRuntime().newIOError("closed SSL engine");
}
netData.flip();
flushData(blocking);
return res.bytesConsumed();
Expand Down

0 comments on commit e4a8933

Please sign in to comment.