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 CHANGED
@@ -62,6 +62,10 @@ where App is your Rack application.
62
62
 
63
63
  == Changes
64
64
 
65
+ === 0.2.5
66
+
67
+ * Delete temp file after request is processed
68
+
65
69
  === 0.2.4
66
70
 
67
71
  * Rename module from WildSoNet to Wildsonet and update documentation
Binary file
@@ -1,5 +1,5 @@
1
1
  module Wildsonet
2
2
  module Server
3
- VERSION = "0.2.4" unless defined?(::Wildsonet::Server::VERSION)
3
+ VERSION = "0.2.5" unless defined?(::Wildsonet::Server::VERSION)
4
4
  end
5
5
  end
@@ -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
- # WildSoNet namespace
10
+ # Wildsonet namespace
11
11
  module Wildsonet
12
12
 
13
- # Rack extensions from WildSoNet
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 Jetty web server. Works with nginx as frontend server to proxy the requests.
26
- # Jetty handles only dynamic requests. Static requests are handled by nginx proxy.
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
- - 4
9
- version: 0.2.4
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 00:00:00 +01:00
17
+ date: 2011-01-19 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency