disconnect / apache-websocket

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

always,Not connected #4

Open didiao opened 12 years ago

didiao commented 12 years ago

I want to transplant this apache-websocket module into an embedded device. This device is not popular as ARM. So, it take a lot of time to complete the transplant. Now, I have finished it, and my apache works well in this embedded device. But I use the echo example to test the websocket, and it does not work. Whether the apache-websocket does not fix my device very well ,or my setting is going wrong? I've no idea about that. Please give me some help.

I used Mozilla Firefox 4.0 as browser, and there is no error log in the apache when I visit the client.html. By the way, my httpd.conf is changed like this: LoadModule websocket_module modules/mod_websocket.so <Location /echo> SetHandler websocket-handler WebSocketHandler modules/mod_websocket_echo.so echo_init

Is there some problems happened to that?

I am rookie, and my English is horrible. I'm so sorry about that.

didiao commented 12 years ago

I just found that firefox4.0 only support websocket-version-76(refer to https://developer.mozilla.org/en/WebSockets#AutoCompatibilityTable). So I changed the httpd.conf like this:

LoadModule websocket_module modules/mod_websocket.so LoadModule websocket_draft76_module modules/mod_websocket_draft76.so <Location /echo> SetHandler websocket-handler WebSocketHandler modules/mod_websocket_echo.so echo_init SupportDraft75 On

But it still does not work. What should I do? Thank you.

didiao commented 12 years ago

It seems that this websocket_module can not work well on my Linux system(CentOS 5.5). Yesterday I install it into Ubuntu 9.10, in the same step and the same configuration, and it works very well.