Comments (13)
- Issue Imported From: javaee/grizzly#23
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
- Original Issue Closed By:@glassfishrobot
from grizzly.
@glassfishrobot Commented
Reported by [email protected]
from grizzly.
@glassfishrobot Commented
[email protected] said:
Created an attachment (id=3)
patch for this issue
from grizzly.
@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 Commented
[email protected] said:
Thanks! It was fixed in 1.0, but I forgot to port the fix.
from grizzly.
@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 Commented
[email protected] said:
+1
from grizzly.
@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 Commented
[email protected] said:
Fix milestones
from grizzly.
@glassfishrobot Commented
File: ias-2007-09-17.patch
Attached By: [email protected]
from grizzly.
@glassfishrobot Commented
Was assigned to grizzly-issues
from grizzly.
@glassfishrobot Commented
This issue was imported from java.net JIRA GRIZZLY-23
from grizzly.
@glassfishrobot Commented
Marked as fixed on Wednesday, December 16th 2009, 6:14:16 pm
from grizzly.
Related Issues (20)
- Grizzly 2.3.36-MULE-023 - HeapBuffer throwing IndexOutOfBoundsException HOT 1
- Grizzly is not compatible with Servlet 6 HOT 10
- jakarta.servlet:jakarta.servlet-api:6.0.0 is not available in maven central HOT 6
- Threads are not closed once Grizzly's HttpServer shuts down HOT 3
- SingleEndpointPool.cleanupIdleConnections() infinity loop HOT 4
- Release Grizzly to Maven central HOT 10
- No HTTP 100 intermediate response for POST with chunked transfer encoding
- Session timeout does not tolerate system time changes HOT 1
- Out of memory caused by TrimmableHeapBuffer HOT 1
- DefaultSessionManager uses predictable java.util.Random instead of java.security.SecureRandom HOT 1
- SpotBugs analysis: Questionable use of non-short-circuit logic HOT 1
- SpotBugs analysis: Holder.toString() may return null HOT 3
- Grizzly 2.4.4/4.0.0 missing Content-Type in response HOT 7
- 4.0.1 Deprecated `AttributeBuilder.createAttribute` with no replacement
- Adjust module-info
- Release Grizzly with fixed module.info HOT 1
- (Possibly) Incorrect initial max memory size when building a direct memory buffer pool
- Grizzly does not build against Servlet 6.1.0-M1 HOT 8
- Avoid using ThreadLocals for caching expensive resources HOT 1
- Warnings printed out for HTTP/2 Settings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grizzly.