New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined constant on platforms without tcp_cork support and with closed_socket support #2556
Comments
Thanks. This is a bug, as I added it to #2554, which a a minor refactor of a few files... |
This fixes the issue for me when I run Puma in FreeBSD using Vagrant. Close puma#2556
This fixes the issue for me when I run Puma in FreeBSD using Vagrant. Close #2556
Thank you!! |
It is reproduced for me on FreeBSD 13.0-RELEASE Puma version: 5.2.2 (ruby 3.0.1-p64) ("Fettisdagsbulle") Is there anything I may be doing wrong, or any debug information I can provide? Thank you! |
Bug fixed in master by the above referenced PR / commit. So, next release |
Thank you! Sorry, I assumed it is released from the dates. |
This fixes the issue for me when I run Puma in FreeBSD using Vagrant. Close puma#2556
Missing constant
Read: #<NameError: uninitialized constant Puma::Server::UNPACK_TCP_STATE_FROM_TCP_INFO>
on platforms that have no 'tcp_cork_support?' and do have 'closed_socket_supported?'https://stackoverflow.com/questions/66088219/pumaserverunpack-tcp-state-from-tcp-info/66214024#66214024
In file
lib/puma/server.rb
is the following construct:If tcp_cork_supported? is FALSE and closed_socket_supported? is TRUE, an uninitialized constant Puma::Server::UNPACK_TCP_STATE_FROM_TCP_INFO is used!
Is it a problem to move 'UNPACK_TCP_STATE_FROM_TCP_INFO = "C".freeze' outside the if condition?
The text was updated successfully, but these errors were encountered: