disconnect / apache-websocket

Apache WebSocket module
Apache License 2.0
196 stars 46 forks source link

Not able to work with Apche 2.4 - 400 Bad request for Handshake request #43

Open psaxena opened 4 years ago

psaxena commented 4 years ago

Hi,

We're using this module since long with Apache 2.2 in our application. Now we want to support this with Apache 2.4. But, i get 400 bad request when connecting with Apache 2.4. Here is what my connection request looks like: Apache 2.2

Websockets Event Test
...
GET /testapp/events/jobsfef21e7bef018bae49d50f241794373c7eb HTTP/1.1`
Upgrade: WebSocket
Connection: Upgrade
Host: localhost:
Origin: http://localhost
Sec-WebSocket-Key1: u2zi1r8S27*Rh148S !4d1
Sec-WebSocket-Key2: .24    !04_ 6 x68 q |4r96|

�&�j��8<
[INFO] WEB SOCKET.rb line -> HTTP/1.1 101 WebSocket Protocol Handshake
Events published...

And with Apache 2.4:

GET /testapp2/api/v4/events?receive[]=ones HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: 10.210.166.92:
Origin: http://{IP_ADD}
Sec-WebSocket-Key1: 1@ _  2 3 107  6H 19   8GP
Sec-WebSocket-Key2: m2  O40  4z 455[ YUm4m 8P7d

C¶▼��/◄�
[INFO] WEB SOCKET.rb line -> HTTP/1.1 400 Bad Request
ws_client is NIL...

Handshake request doesn't seem to reach this apache plugin init method.

Want to check

  1. If we do need to compile module with Apache 2.4 to make it work? Or module compiled with Apache 2.2 will work?
  2. Any other config setting required with Apache 2.4?

Thanks, pooja