Code Monkey home page Code Monkey logo

Comments (10)

glassfishrobot avatar glassfishrobot commented on July 4, 2024

from grizzly.

glassfishrobot avatar glassfishrobot commented on July 4, 2024

@glassfishrobot Commented
Reported by [email protected]

from grizzly.

glassfishrobot avatar glassfishrobot commented on July 4, 2024

@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 avatar glassfishrobot commented on July 4, 2024

@glassfishrobot Commented
[email protected] said:
Certainly this is a nice addition for 1.8.0

from grizzly.

glassfishrobot avatar glassfishrobot commented on July 4, 2024

@glassfishrobot Commented
[email protected] said:
Target fix for 1.7.3

from grizzly.

glassfishrobot avatar glassfishrobot commented on July 4, 2024

@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 avatar glassfishrobot commented on July 4, 2024

@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 avatar glassfishrobot commented on July 4, 2024

@glassfishrobot Commented
Was assigned to [email protected]

from grizzly.

glassfishrobot avatar glassfishrobot commented on July 4, 2024

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

from grizzly.

glassfishrobot avatar glassfishrobot commented on July 4, 2024

@glassfishrobot Commented
Marked as fixed on Wednesday, December 16th 2009, 6:14:11 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.