spider-gazelle 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28f3637b040f52d538f4942d376815529477d5d9
4
- data.tar.gz: 95d63eaff020210ad28c115e06abb79210d4e97d
3
+ metadata.gz: 79738b050fb90a8bb950a269f6b5e73b4b4361b9
4
+ data.tar.gz: 0c8658ee11829adfd2cb08b4903334e10930dab4
5
5
  SHA512:
6
- metadata.gz: f8ae718a0342a38d538f0d59f9105feee70c90bfe520ed96f393fd17b0567efbe7f02b1f545bd4edc3f2b630cb389273bff56d66911f272bc752d5d97a3cf927
7
- data.tar.gz: 51b4a7944ae9298269e6a042b819f8e50d024daaec02b7a9108cb16aa49be4442732eae3c59b936fbbdc5306ddaae31e5d7f24edb947d980f4e72f38ffdf16c1
6
+ metadata.gz: a7aecd49cd24a1929d6edd7ec652965dc666252ed1ebd225434f18bf2d3c86b17cf7af5970084f88abf05795f3ee1afbc476acf70d6c8cc9c7b613b3013fdb28
7
+ data.tar.gz: 67bd17a7bf6397bc5b94b0e353395457e2ea0b50c8b38e2525ad747e718b9ce44faee61bfffac8a813611613e161962745962960d9ad90d39c2cad6df506dafe
@@ -27,7 +27,7 @@ module SpiderGazelle
27
27
  # REMOTE_USER, or REMOTE_HOST parameters since those are either a security problem or
28
28
  # too taxing on performance.
29
29
  module Const
30
- SPIDER_GAZELLE_VERSION = VERSION = "0.2.0".freeze
30
+ SPIDER_GAZELLE_VERSION = VERSION = "0.2.1".freeze
31
31
  # CODE_NAME = "Earl of Sandwich Partition"
32
32
  SERVER = "SpiderGazelle".freeze
33
33
 
@@ -122,9 +122,13 @@ module SpiderGazelle
122
122
  @connection.parsing_error if @parser.parse(@connection.state, data)
123
123
  end
124
124
 
125
- def new_connection(data, pipe)
126
- socket = @socket_server.check_pending
127
- return if socket.nil?
125
+ def new_connection(data, socket)
126
+ # When in no IPC mode @socket_server is nil and the socket parameter is the socket
127
+ # If socket server exists then we are expecting sockets over the pipe
128
+ if @socket_server
129
+ socket = @socket_server.check_pending
130
+ return if socket.nil?
131
+ end
128
132
 
129
133
  # Data == "TLS_indicator Port APP_ID"
130
134
  tls, port, app_id = data.split(' ', 3)
@@ -134,6 +138,7 @@ module SpiderGazelle
134
138
  # process any data coming from the socket
135
139
  socket.progress @on_progress
136
140
  # TODO:: Allow some globals for supplying the certs
141
+ # --> We could store these in the AppStore
137
142
  socket.start_tls(:server => true) if tls == 'T'
138
143
 
139
144
  # Keep track of the connection
@@ -269,7 +269,7 @@ module SpiderGazelle
269
269
  File.unlink DELEGATE_PIPE
270
270
  rescue
271
271
  end
272
- @delegator = @web.pipe true
272
+ @delegator = @web.pipe :with_socket_support
273
273
  @delegator.bind(DELEGATE_PIPE) { @delegator.accept @accept_handler }
274
274
  @delegator.listen INTERNAL_PIPE_BACKLOG
275
275
 
@@ -278,7 +278,7 @@ module SpiderGazelle
278
278
  File.unlink SIGNAL_PIPE
279
279
  rescue
280
280
  end
281
- @signaller = @web.pipe true
281
+ @signaller = @web.pipe
282
282
  @signaller.bind(SIGNAL_PIPE) { @signaller.accept @accept_gazella }
283
283
  @signaller.listen INTERNAL_PIPE_BACKLOG
284
284
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spider-gazelle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake