falcon 0.46.0 → 0.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/falcon/command/supervisor.rb +7 -9
- data/lib/falcon/environment/proxy.rb +1 -1
- data/lib/falcon/environment/rack.rb +1 -1
- data/lib/falcon/environment/rackup.rb +1 -1
- data/lib/falcon/environment/server.rb +1 -1
- data/lib/falcon/service/server.rb +2 -2
- data/lib/falcon/service/virtual.rb +1 -1
- data/lib/falcon/version.rb +1 -1
- data/readme.md +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -18
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4de3889828b00322d6938e22c925e82d2ec87756cde0f090be0a442e619667a4
|
4
|
+
data.tar.gz: 2f466c4e81bce9f734521b61e05979244364135e8c87c48e26c247eec49f0496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68983263b21dbea0f99120c438d384c9fb0a35507fd33e75bb621d6263a3e472b19cf2122ac6c54974d787d6d7251b96c6b13985d7b466dc6804adde8a077e01
|
7
|
+
data.tar.gz: a6e3bb1e74c4cf43929f102e4742d7004b1c668710cf40d818b9455f01ac3514288d691b0d39dea53e1c91705f567060de2b85832dc536950a5fbb040a1cf303
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2019-
|
4
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
5
5
|
|
6
6
|
require 'samovar'
|
7
7
|
require 'async'
|
8
8
|
require 'json'
|
9
9
|
|
10
|
-
require '
|
11
|
-
require '
|
10
|
+
require 'io/endpoint/unix_endpoint'
|
11
|
+
require 'io/stream'
|
12
12
|
|
13
13
|
module Falcon
|
14
14
|
module Command
|
@@ -43,7 +43,7 @@ module Falcon
|
|
43
43
|
stream.puts({please: 'metrics'}.to_json, separator: "\0")
|
44
44
|
response = JSON.parse(stream.gets("\0"), symbolize_names: true)
|
45
45
|
|
46
|
-
|
46
|
+
$stdout.puts response
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -57,16 +57,14 @@ module Falcon
|
|
57
57
|
|
58
58
|
# The endpoint the supervisor is bound to.
|
59
59
|
def endpoint
|
60
|
-
|
60
|
+
::IO::Endpoint.unix(@options[:path])
|
61
61
|
end
|
62
62
|
|
63
63
|
# Connect to the supervisor and execute the requested command.
|
64
64
|
def call
|
65
|
-
|
65
|
+
Sync do
|
66
66
|
endpoint.connect do |socket|
|
67
|
-
|
68
|
-
|
69
|
-
@command.call(stream)
|
67
|
+
@command.call(IO::Stream(socket))
|
70
68
|
end
|
71
69
|
end
|
72
70
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright,
|
5
|
-
# Copyright, 2020, by
|
4
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
5
|
+
# Copyright, 2020, by Daniel Evans.
|
6
6
|
|
7
7
|
require 'async/service/generic'
|
8
8
|
require 'async/http/endpoint'
|
data/lib/falcon/version.rb
CHANGED
data/readme.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ![Falcon](logo.svg)
|
2
2
|
|
3
|
-
Falcon is a multi-process, multi-fiber rack-compatible HTTP server built on top of [async](https://github.com/socketry/async), [async-
|
3
|
+
Falcon is a multi-process, multi-fiber rack-compatible HTTP server built on top of [async](https://github.com/socketry/async), [async-container](https://github.com/socketry/async-container) and [async-http](https://github.com/socketry/async-http). Each request is executed within a lightweight fiber and can block on up-stream requests without stalling the entire server process. Falcon supports HTTP/1 and HTTP/2 natively.
|
4
4
|
|
5
5
|
[![Development Status](https://github.com/socketry/falcon/workflows/Test/badge.svg)](https://github.com/socketry/falcon/actions?workflow=Test)
|
6
6
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.47.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
- Janko Marohnić
|
9
9
|
- Bryan Powell
|
10
|
+
- Trevor Turk
|
10
11
|
- Claudiu Garba
|
11
12
|
- Kyle Tam
|
12
13
|
- Mitsutaka Mimura
|
13
14
|
- Sho Ito
|
14
|
-
- Trevor Turk
|
15
15
|
- Colby Swandale
|
16
16
|
- Daniel Evans
|
17
17
|
- Kent Gruber
|
@@ -57,7 +57,7 @@ cert_chain:
|
|
57
57
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
58
58
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
59
59
|
-----END CERTIFICATE-----
|
60
|
-
date: 2024-04-
|
60
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
61
61
|
dependencies:
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: async
|
@@ -115,20 +115,6 @@ dependencies:
|
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 0.4.0
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: async-io
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.22'
|
125
|
-
type: :runtime
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.22'
|
132
118
|
- !ruby/object:Gem::Dependency
|
133
119
|
name: async-service
|
134
120
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,6 +268,7 @@ licenses:
|
|
282
268
|
- MIT
|
283
269
|
metadata:
|
284
270
|
documentation_uri: https://socketry.github.io/falcon/
|
271
|
+
source_code_uri: https://github.com/socketry/falcon.git
|
285
272
|
post_install_message:
|
286
273
|
rdoc_options: []
|
287
274
|
require_paths:
|
@@ -290,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
290
277
|
requirements:
|
291
278
|
- - ">="
|
292
279
|
- !ruby/object:Gem::Version
|
293
|
-
version: '3.
|
280
|
+
version: '3.1'
|
294
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
295
282
|
requirements:
|
296
283
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|