[GLASSFISH-19320] javax.servlet.ReadListener#onDataAvailable is never called Created: 12/Nov/12 Updated: 08/Jan/13 Resolved: 08/Jan/13
|Reporter:||Pavel Bucek||Assignee:||Amy Roh|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
I'm working on Websocket spec implementation and I need to integrate with servlet (3.1). I'm registering my own ProtocolHandler which registers new ReadListener to ServletInputStream and I would expect that onDataAvailable method will be called when entity arrives.
Testcase attached; deploy war file and run org.glassfish.bugs.Test (it creates Jersey client and sends POST request to created filter). I can see "##### data.read: 109|#]" in the log file, but "##### OnDataAvailable" is not there and onDataAvailable(), thus onDataAvailable is not called (verified in debugging session).
|Comment by Amy Roh [ 12/Nov/12 ]|
FYI, we have a testcase using a ReadListener where onDataAvailable is called in http://java.net/projects/glassfish/sources/svn/show/trunk/v2/appserv-tests/devtests/web/servlet-3.1/upgradeEcho. See upgradeEcho/servlet/test/EchoProtocolHandler.java. I will investigate why this isn't working for your testcase.