raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 4/4] test_linux_reuseport_tcp_listen_stats: skip w/o unicorn
  2023-06-11 21:33  5% [PATCH 0/4] minor modernizations and cleanups Eric Wong
@ 2023-06-11 21:33  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-06-11 21:33 UTC (permalink / raw)
  To: raindrops-public

We don't list `unicorn' as a development dependency since
unicorn currently depends on this project.  While unicorn might
drop us as a dependency, don't waste disk space and bandwidth
of potential raindrops hackers who don't have unicorn.
---
 test/test_linux_reuseport_tcp_listen_stats.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_linux_reuseport_tcp_listen_stats.rb b/test/test_linux_reuseport_tcp_listen_stats.rb
index 73995ea..4fda218 100644
--- a/test/test_linux_reuseport_tcp_listen_stats.rb
+++ b/test/test_linux_reuseport_tcp_listen_stats.rb
@@ -48,4 +48,4 @@ def test_reuseport_queue_stats
       assert_equal [0, i+1], all[addr].to_a
     end
   end
-end if RUBY_PLATFORM =~ /linux/
+end if RUBY_PLATFORM =~ /linux/ && Object.const_defined?(:Unicorn)

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/4] minor modernizations and cleanups
@ 2023-06-11 21:33  5% Eric Wong
  2023-06-11 21:33  7% ` [PATCH 4/4] test_linux_reuseport_tcp_listen_stats: skip w/o unicorn Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-06-11 21:33 UTC (permalink / raw)
  To: raindrops-public

alloca use was dangerous for architectures with >4K pages,
and we can avoid some Ruby #to_io dispatches in some places.

Eric Wong (4):
  avoid unnecessary #to_io calls
  my_fileno: use rb_io_check_closed for Ruby <3.1
  linux_inet_diag: get rid of alloca usage
  test_linux_reuseport_tcp_listen_stats: skip w/o unicorn

 ext/raindrops/linux_inet_diag.c               | 23 +++++++++++--------
 ext/raindrops/my_fileno.h                     | 16 ++++---------
 ext/raindrops/tcp_info.c                      |  2 +-
 test/test_linux_reuseport_tcp_listen_stats.rb |  2 +-
 4 files changed, 20 insertions(+), 23 deletions(-)

^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-06-11 21:33  5% [PATCH 0/4] minor modernizations and cleanups Eric Wong
2023-06-11 21:33  7% ` [PATCH 4/4] test_linux_reuseport_tcp_listen_stats: skip w/o unicorn Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).