Comments (10)
- Issue Imported From: javaee/grizzly#42
- 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:
Hi Harsha,
(since there is while loop) the event is not OP_READ but it's OP_WRITE.. the
program control goes "happily" to (D) and returns true from there. Which means
to delegate work to workere thread that's line:363(A) Now, Grizzly goes and
invokes the protocol chain and hence the read filter at the WRONG time.
I don't see any problem here. Whatever it is an OP_READ or OP_WRITE, the
ProtocolChain will always invoked. It is your (meaning the implementor) role to
make sure the ProtocolFilter you inject can both handler OP_READ and OP_WRITE.
Based on your description, it seems you inject the ReadFilter for handling
OP_WRITE, which is wrong.
What is needed (missing) is a ProtocolFilter that can handle both read and
write. Changing the bug to an RFE. Feel free to change it back if I didn't
understood the problem correclty.
from grizzly.
@glassfishrobot Commented
[email protected] said:
Certainly this is a nice addition for 1.8.0
from grizzly.
@glassfishrobot Commented
[email protected] said:
Target fix for 1.7.3
from grizzly.
@glassfishrobot Commented
[email protected] said:
Using currentOpType to distinguish whether the filter is being called for OP_WRITE or OP_WRITE would
work. But it would be good, if this is handled by framework itself.
There should be a way to add different Filters exclusively for OP_READ and OP_WRITE. Also current
ReadFilter can be enhanced so that it can be used even when a OP_WRITE is registered on the main
selector.
from grizzly.
@glassfishrobot Commented
[email protected] said:
The ReadFilter will now reject OP_WRITE:
https://grizzly.dev.java.net/issues/show_bug.cgi?id=146
Closing this as fixed.
from grizzly.
@glassfishrobot Commented
Was assigned to [email protected]
from grizzly.
@glassfishrobot Commented
This issue was imported from java.net JIRA GRIZZLY-42
from grizzly.
@glassfishrobot Commented
Marked as fixed on Wednesday, December 16th 2009, 6:14:11 pm
from grizzly.
Related Issues (20)
- 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 7
- Avoid using ThreadLocals for caching expensive resources HOT 1
- Warnings printed out for HTTP/2 Settings HOT 1
- Move Grizzly to the GlassFish project? HOT 3
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.