javaee / grizzly

Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
https://javaee.github.io/grizzly/
Other
221 stars 60 forks source link

Grizzly returns a 200 OK message despite error #243

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 16 years ago

During the porting of Jetty Java Bayeux client this error was encountered. Jetty client sends messages of content type text/json by default. Grizzly doesn't like this but still it responds with a 200 OK message with no body! An error message would be much better.

Here are packages captured with Wireshark:

                        1. REQUEST ###############

POST /index.html/cometd/handshake HTTP/1.1 Content-Type: text/json;charset=utf-8 Host: lappinn2:8080 Content-Length: 70

[

{"channel":"/meta/handshake","version":"0.9","minimumVersion":"0.9"}

]

                            1. RESPONSE ###############

HTTP/1.1 200 OK Content-Type: text/plain; charset=iso-8859-1 Content-Length: 0 Date: Thu, 04 Sep 2008 20:16:48 GMT

Environment

Operating System: Windows XP Platform: PC

Affected Versions

[1.8.5]

glassfishrobot commented 16 years ago

Reported by amplus@java.net

glassfishrobot commented 16 years ago

jfarcand@java.net said: Started...

glassfishrobot commented 16 years ago

jfarcand@java.net said: First pass.

Sending cometd/src/main/java/com/sun/grizzly/cometd/EventRouterImpl.java Sending cometd/src/main/java/com/sun/grizzly/cometd/standalone/CometdAdapter.java Transmitting file data .. Committed revision 1503.

glassfishrobot commented 16 years ago

jfarcand@java.net said: Fixed. Added a unit test under cometd/

glassfishrobot commented 16 years ago

Was assigned to grizzly-issues

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA GRIZZLY-243

glassfishrobot commented 14 years ago

Marked as fixed on Wednesday, December 16th 2009, 6:13:23 pm