Skip to content

Commit

Permalink
* new version of our tcp proxy (now called vnc proxy) solves our "idl…
Browse files Browse the repository at this point in the history
…e websocket never close" problem
  • Loading branch information
dudemeister committed Oct 19, 2012
1 parent 2c64c9c commit dba4a54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions apache2.rb
Expand Up @@ -271,7 +271,7 @@ def disable_mod(mod)
dep 'websocket_proxy.apache2' do
requires 'apache2-prefork-dev.managed'
met? {
["websocket_tcp_proxy", "websocket", "websocket_draft76"].all? {|name| sudo("a2enmod #{name}") }
["websocket_vnc_proxy", "websocket", "websocket_draft76"].all? {|name| sudo("a2enmod #{name}") }
}
meet {
cd "/tmp" do
Expand All @@ -281,8 +281,8 @@ def disable_mod(mod)
["mod_websocket_draft76.c", "mod_websocket.c"].each do |c_file|
log_shell "installing ", "sudo apxs2 -cia #{c_file}"
end
cd "examples" do
log_shell "installing ", "sudo apxs2 -cia -I.. mod_websocket_tcp_proxy.c"
cd "vncproxy" do
log_shell "installing ", "sudo apxs2 -cia -I.. mod_websocket_vnc_proxy.c"
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions apache2/passenger_vhost.conf.erb
Expand Up @@ -63,10 +63,10 @@ PassengerUseGlobalQueue on
RailsBaseURI /home/protonet/dashboard/current
RailsBaseURI /home/protonet/dashboard/current/mobile

<IfModule mod_websocket_tcp_proxy.c>
<IfModule mod_websocket_vnc_proxy.c>
<Location /websocket>
SetHandler websocket-handler
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_tcp_proxy.so tcp_proxy_init
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_vnc_proxy.so vnc_proxy_init
WebSocketTcpProxyHost localhost
WebSocketTcpProxyPort 5000
SupportDraft75 On
Expand Down Expand Up @@ -183,10 +183,10 @@ Listen *:8080
RailsBaseURI /home/protonet/dashboard/current
RailsBaseURI /home/protonet/dashboard/current/mobile

<IfModule mod_websocket_tcp_proxy.c>
<IfModule mod_websocket_vnc_proxy.c>
<Location /websocket>
SetHandler websocket-handler
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_tcp_proxy.so tcp_proxy_init
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_vnc_proxy.so vnc_proxy_init
WebSocketTcpProxyHost localhost
WebSocketTcpProxyPort 5000
SupportDraft75 On
Expand Down

0 comments on commit dba4a54

Please sign in to comment.