wildsonet-server 0.2.4-java → 0.2.5-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/jars/wildsonet_server.jar +0 -0
- data/lib/wildsonet-server-version.rb +1 -1
- data/lib/wildsonet-server.rb +7 -4
- metadata +3 -3
data/README.rdoc
CHANGED
data/jars/wildsonet_server.jar
CHANGED
Binary file
|
data/lib/wildsonet-server.rb
CHANGED
@@ -7,10 +7,10 @@ require File.join(File.dirname(__FILE__), "..", "jars", "wildsonet_server.jar")
|
|
7
7
|
|
8
8
|
require "wildsonet-server-version"
|
9
9
|
|
10
|
-
#
|
10
|
+
# Wildsonet namespace
|
11
11
|
module Wildsonet
|
12
12
|
|
13
|
-
# Rack extensions from
|
13
|
+
# Rack extensions from Wildsonet
|
14
14
|
module Server
|
15
15
|
|
16
16
|
java_import "cz.wildsonet.server.RackProxy"
|
@@ -22,8 +22,8 @@ module Wildsonet
|
|
22
22
|
java_import "org.jboss.netty.handler.codec.http.HttpVersion"
|
23
23
|
java_import "org.jboss.netty.channel.ChannelFutureListener"
|
24
24
|
|
25
|
-
# Rack handler utilizing
|
26
|
-
#
|
25
|
+
# Rack handler utilizing Netty library. Works with nginx as frontend server to proxy the requests.
|
26
|
+
# Netty handles only dynamic requests. Static requests are handled by nginx proxy.
|
27
27
|
|
28
28
|
class Handler
|
29
29
|
|
@@ -94,6 +94,9 @@ module Wildsonet
|
|
94
94
|
future = env["wsn.context"].channel.write(response)
|
95
95
|
|
96
96
|
future.addListener(ChannelFutureListener::CLOSE)
|
97
|
+
|
98
|
+
env["rack.input"].close
|
99
|
+
File.delete(env["wsn.tempfile"])
|
97
100
|
|
98
101
|
end
|
99
102
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 5
|
9
|
+
version: 0.2.5
|
10
10
|
platform: java
|
11
11
|
authors:
|
12
12
|
- Marek Jelen
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-19 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|