Comments (7)
Thanks, I'll investigate.
from falcon.
Hi again! I've found the problem in my project Gemfile.
The problem was that gem pry-rails
was defined in :default
Rails.group and required on application launch.
I've placed it to :test
group and now falcon starts correct and respond to routes.
When I tried your repository seems there was an issue with recursive Gemfile load (I've placed your repository inside mine project) that's why simple application did't boot correct (with pry-rails on start).
Thank you so much for you time and sorry for disturb!
I believe that it's not a socketry infrastructure problem. So you can close this issue 🙏
from falcon.
@skirushkin thanks for updating the issue. If you are using io-event
1.3 in production, do you mind reporting back if you notice any other issues? Thanks.
from falcon.
I have not updated the falcon test suite or tested it on the latest version of io-event
so I've done that here: 9170a2a which is running all the tests on ruby 3.2.2 and the latest version of io-event
. It appears to be passing, so I'll continue to investigate.
from falcon.
I could not reproduce your issue on my Linux dev machine.
Do you mind telling me the version of the Linux kernel you are using?
Also, I tried to make sure we have a consistent reproduction, can you confirm https://github.com/socketry/falcon-my_api is capable of reproducing the issue?
Thanks!
from falcon.
Hi, thank you for reply!
Linux kernel version is
backend-falcon-686c874c68-6xql8:/app$ uname -a
Linux backend-falcon-686c874c68-7r9hz 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64 Linux
backend-falcon-686c874c68-6xql8:/app$ cat /proc/version
Linux version 5.4.0-148-generic (buildd@lcy02-amd64-112) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023
backend-falcon-686c874c68-6xql8:/app$ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.3
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
It's ruby:3.2.2-alpine docker image.
I've tested your repository and I can confirm that it's consistent reproduction. Falcon starts but doesn't respond to basic curl. Also I can see a warning message on start
backend-falcon-688d5957bc-6xql8:/app/falcon-my_api$ bundle exec falcon host
/app/vendor/bundle/ruby/3.2.0/gems/io-event-1.3.2/lib/io/event/support.rb:24: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
0.0s info: Falcon::Command::Host [oid=0x1824] [ec=0x1838] [pid=26] [2023-08-27 13:57:47 +0000]
| Falcon Host v0.42.3 taking flight!
| - Configuration: falcon.rb
| - To terminate: Ctrl-C or kill 26
| - To reload: kill -HUP 26
0.04s info: Falcon::Service::Application [oid=0x184c] [ec=0x1838] [pid=26] [2023-08-27 13:57:47 +0000]
| Binding to #<Async::HTTP::Endpoint http://0.0.0.0:3000/ {}>...
0.05s info: Falcon::Service::Application [oid=0x184c] [ec=0x1874] [pid=27] [2023-08-27 13:57:47 +0000]
| Starting application server for /app/falcon-my_api...
In parallel shell curl
with forever await and it fails once I stop falcon.
backend-falcon-688d5957bc-6xql8:/app$ curl http://0.0.0.0:3000/
curl: (56) Recv failure: Connection reset by peer
from falcon.
FYI, we running 150k+ lines of code RoR project with falcon. With high rps.
It's part of microservice infrastructure (so any request to project produce several http or grpc request inside our infrastructure).
It uses Redis (redis-rb) and Postgres (sequel).
Also we implemented your idea about FiberedConnectionPool from async-sequel repository. Code is here https://github.com/umbrellio/umbrellio-sequel-plugins/blob/master/lib/sequel/extensions/fibered_connection_pool.rb
We got blue-green deployment system with k8s. So for us it will be a pleasure to test any new falcon feature for you.
And of course I'll let you know if something goes wrong, thank you for such opportunity!
from falcon.
Related Issues (20)
- upstream hijacking, streamed uploads HOT 2
- Expect continue HOT 10
- crashes on launch with ruby 3.2 HOT 8
- Limiting incoming requests queue HOT 3
- Sinatra - cannot load such file -- sinatra/base HOT 2
- Concurrent Database Transaction worries HOT 2
- Getting a Errno::EPIPE: Broken pipe warning HOT 11
- Socket::ResolutionError: getnameinfo: Temporary failure in name resolution HOT 10
- Should the 'virtual' command be changing the Console.logger log level? HOT 4
- Plugin `:tmp_restart` HOT 2
- Falcon not working properly locally on MacOS (m1) in forked mode HOT 17
- Production ready? HOT 1
- How to install? HOT 4
- Falcon 0.44 broken when used with Rack 2 HOT 7
- Falcon no longer respects count, new likely increases memory usage on shared hosts HOT 8
- Core methods doesn't work in configuration block after upgrading Falcon to 0.44 HOT 1
- async-io still in use HOT 3
- `falcon proxy` prints an exception if no `paths` are given
- Sure! Here's what we're trying to do. This is a bit simplified, but the issue with Rack vs. Rails responses still applies.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falcon.