This repository has been archived by the owner on Mar 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Patch for OutputWriter.write() #20
Labels
Comments
Reported by huntch@java.net |
Was assigned to jfarcand@java.net |
File: OutputWriter.java.patch |
huntch@java.net said: |
jfarcand@java.net said: Thanks! |
jfarcand@java.net said: |
Marked as fixed on Wednesday, December 16th 2009, 6:14:11 pm |
This issue was imported from java.net JIRA GRIZZLY-20 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From the community, fyaoxy "at" gmail.com, a patch contribution for
com.sun.grizzly.util.OutputWriter.java
Index:
F:/svn/grizzly/modules/grizzly/src/main/java/com/sun/grizzly/util/OutputWriter.java
===================================================================
—
F:/svn/grizzly/modules/grizzly/src/main/java/com/sun/grizzly/util/OutputWriter.java
(revision 394)
+++
F:/svn/grizzly/modules/grizzly/src/main/java/com/sun/grizzly/util/OutputWriter.java
(working copy)
@@ -86,14 +86,13 @@
try {
while ( bb.hasRemaining() ) {
int len = socketChannel.write(bb);
attempts++;
if (len < 0) { - throw new EOFException(); - }
bytesProduced += len;
if (len == 0) {
else {
exist.
if ( writeSelector == null ){
writeSelector = SelectorFactory.getSelector();
if ( writeSelector == null)
{ @@ -111,8 +110,7 @@ }
else
{ attempts--; }
} else { - attempts = 0; + //handle write count = 0 end; }
}
} finally {
Environment
Operating System: All
Platform: All
Affected Versions
[1.9.22]
The text was updated successfully, but these errors were encountered: