Code Monkey home page Code Monkey logo

Comments (13)

glassfishrobot avatar glassfishrobot commented on June 25, 2024

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
Reported by [email protected]

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
Created an attachment (id=3)
patch for this issue

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
Oops, sorry. The original code is
public void realWriteBytes(byte cbuf[], int off, int len)
throws IOException {
if (len > 0) {
if (len > outputByteBuffer.remaining())

{ ByteBuffer tmp = ByteBuffer.allocate( outputByteBuffer.capacity() * 2); outputByteBuffer.flip(); tmp.put(outputByteBuffer); outputByteBuffer = tmp; }

outputByteBuffer.put(cbuf, off, len);
}
}

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
Thanks! It was fixed in 1.0, but I forgot to port the fix.

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
What about the fix from 1.0:

public void realWriteBytes(byte cbuf[], int off, int len)
throws IOException {
if (len > 0) {
if (len > outputByteBuffer.remaining())

{ int size = Math.max(outputByteBuffer.capacity() * 2, len + outputByteBuffer.position()); ByteBuffer tmp = ByteBuffer.allocate(size); outputByteBuffer.flip(); tmp.put(outputByteBuffer); outputByteBuffer = tmp; }

outputByteBuffer.put(cbuf, off, len);
}
}

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
+1

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
Fixed. Thanks!!

[ja120114@localhost trunk]$ svn commit
Sending
trunk/modules/http/src/main/java/com/sun/grizzly/http/SocketChannelOutputBuffer.java
Transmitting file data .
Committed revision 510.

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
[email protected] said:
Fix milestones

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
File: ias-2007-09-17.patch
Attached By: [email protected]

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
Was assigned to grizzly-issues

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
This issue was imported from java.net JIRA GRIZZLY-23

from grizzly.

glassfishrobot avatar glassfishrobot commented on June 25, 2024

@glassfishrobot Commented
Marked as fixed on Wednesday, December 16th 2009, 6:14:16 pm

from grizzly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.