Skip to content

[Canary] lib: monkey: Import afunix patched bundled canary commit of libevent - #11829

Closed
cosmo0920 wants to merge 2 commits into
masterfrom
cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows
Closed

[Canary] lib: monkey: Import afunix patched bundled canary commit of libevent#11829
cosmo0920 wants to merge 2 commits into
masterfrom
cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows

Conversation

@cosmo0920

@cosmo0920 cosmo0920 commented May 20, 2026

Copy link
Copy Markdown
Contributor

THIS IS CANARY PR. DO NOT MERGE.

With this importing AF_UNIX patch on libevent, we can completely eliminate the usages of tcp lookbacked socketpair in libevent's event system in Windows.
monkey/monkey#439

The previous canary still has some of the usages of local loopbacks but in this PR, there's no listeners of local loopback except for explicitly listening addresses.

Internal and Runtime test result

> ctest -j20 . --output-on-failure
Test project C:/Users/cosmo/Documents/GitHub/fluent-bit/build
        Start  71: flb-rt-out_stackdriver
        Start  19: flb-rt-in_tail
        Start  33: flb-rt-filter_throttle_size
        Start  76: flb-rt-out_s3
        Start  65: flb-rt-out_loki
        Start  38: flb-rt-filter_modify
        Start  69: flb-rt-out_syslog
        Start  12: flb-rt-in_http
        Start  11: flb-rt-in_dummy
        Start  73: flb-rt-out_firehose
        Start  74: flb-rt-out_kinesis
        Start  42: flb-rt-filter_multiline
        Start  58: flb-rt-out_opensearch
        Start  17: flb-rt-in_splunk
        Start  83: flb-rt-processor_content_modifier
        Start  39: flb-rt-filter_lua
        Start  72: flb-rt-out_cloudwatch
        Start  13: flb-rt-in_elasticsearch
        Start   2: flb-rt-custom_calyptia_registration_retry_test
        Start  61: flb-rt-out_http
  1/170 Test  #61: flb-rt-out_http ..................................   Passed   38.74 sec
        Start  27: flb-rt-filter_aws
  2/170 Test  #13: flb-rt-in_elasticsearch ..........................   Passed   43.51 sec
        Start  37: flb-rt-filter_parser
  3/170 Test   #2: flb-rt-custom_calyptia_registration_retry_test ...   Passed   43.50 sec
        Start  59: flb-rt-out_exit
  4/170 Test  #76: flb-rt-out_s3 ....................................   Passed   51.71 sec
        Start  46: flb-rt-filter_log_to_metrics
  5/170 Test  #72: flb-rt-out_cloudwatch ............................   Passed   45.51 sec
        Start  21: flb-rt-in_tcp
  6/170 Test  #39: flb-rt-filter_lua ................................   Passed   46.59 sec
        Start  22: flb-rt-in_forward
  7/170 Test  #83: flb-rt-processor_content_modifier ................   Passed   49.85 sec
        Start  64: flb-rt-out_logdna
  8/170 Test  #17: flb-rt-in_splunk .................................   Passed   50.88 sec
        Start  18: flb-rt-in_syslog
  9/170 Test  #58: flb-rt-out_opensearch ............................   Passed   52.40 sec
        Start  35: flb-rt-filter_rewrite_tag
 10/170 Test  #42: flb-rt-filter_multiline ..........................   Passed   53.49 sec
        Start  31: flb-rt-filter_grep
 11/170 Test  #73: flb-rt-out_firehose ..............................   Passed   55.03 sec
        Start  14: flb-rt-in_opentelemetry
 12/170 Test  #74: flb-rt-out_kinesis ...............................   Passed   55.04 sec
        Start 159: flb-it-stream_processor
 13/170 Test  #11: flb-rt-in_dummy ..................................   Passed   62.03 sec
        Start  25: flb-rt-in_kubernetes_events
 14/170 Test  #12: flb-rt-in_http ...................................   Passed   65.03 sec
        Start  20: flb-rt-in_udp
 15/170 Test  #69: flb-rt-out_syslog ................................   Passed   68.18 sec
        Start  78: flb-rt-out_s3_otlp_json
 16/170 Test #159: flb-it-stream_processor ..........................   Passed   18.48 sec
        Start  79: flb-rt-out_influxdb
 17/170 Test  #38: flb-rt-filter_modify .............................   Passed   77.40 sec
        Start  49: flb-rt-core_engine
 18/170 Test  #65: flb-rt-out_loki ..................................   Passed   83.12 sec
        Start  45: flb-rt-filter_ecs
 19/170 Test  #21: flb-rt-in_tcp ....................................   Passed   32.07 sec
        Start 134: flb-it-log
 20/170 Test  #35: flb-rt-filter_rewrite_tag ........................   Passed   27.93 sec
        Start  81: flb-rt-processor_metrics_selector
 21/170 Test  #22: flb-rt-in_forward ................................   Passed   32.55 sec
 22/170 Test  #59: flb-rt-out_exit ..................................   Passed   34.03 sec
 23/170 Test  #46: flb-rt-filter_log_to_metrics .....................   Passed   33.55 sec
        Start  28: flb-rt-filter_checklist
        Start  16: flb-rt-in_statsd
        Start  75: flb-rt-group_counter_semantics
 24/170 Test  #14: flb-rt-in_opentelemetry ..........................   Passed   28.86 sec
 25/170 Test  #18: flb-rt-in_syslog .................................   Passed   30.93 sec
 26/170 Test  #27: flb-rt-filter_aws ................................   Passed   39.83 sec
 27/170 Test  #31: flb-rt-filter_grep ...............................   Passed   29.42 sec
        Start  80: flb-rt-out_chronicle
        Start  41: flb-rt-filter_record_modifier
        Start  29: flb-rt-filter_expect
        Start  60: flb-rt-out_flowcounter
 28/170 Test  #64: flb-rt-out_logdna ................................   Passed   33.33 sec
        Start  40: flb-rt-filter_type_converter
 29/170 Test  #37: flb-rt-filter_parser .............................   Passed   38.58 sec
 30/170 Test  #25: flb-rt-in_kubernetes_events ......................   Passed   24.73 sec
        Start  63: flb-rt-out_lib
        Start  70: flb-rt-out_tcp
 31/170 Test  #20: flb-rt-in_udp ....................................   Passed   23.35 sec
        Start  44: flb-rt-filter_wasm
 32/170 Test  #78: flb-rt-out_s3_otlp_json ..........................   Passed   22.72 sec
        Start  48: flb-rt-counter_parity_e2e
 33/170 Test  #79: flb-rt-out_influxdb ..............................   Passed   21.84 sec
        Start  82: flb-rt-processor_labels
 34/170 Test  #49: flb-rt-core_engine ...............................   Passed   22.32 sec
        Start   9: flb-rt-core_chunk_trace
 35/170 Test  #44: flb-rt-filter_wasm ...............................   Passed   13.13 sec
        Start  93: processor_conditional.ps1
 36/170 Test  #63: flb-rt-out_lib ...................................   Passed   14.30 sec
        Start  10: flb-rt-in_event_test
 37/170 Test  #41: flb-rt-filter_record_modifier ....................   Passed   16.75 sec
 38/170 Test  #40: flb-rt-filter_type_converter .....................   Passed   15.28 sec
 39/170 Test  #80: flb-rt-out_chronicle .............................   Passed   17.21 sec
 40/170 Test  #29: flb-rt-filter_expect .............................   Passed   16.29 sec
        Start   5: flb-rt-core-timeout
        Start  34: flb-rt-filter_nest
        Start  84: flb-rt-processor_cumulative_to_delta
        Start  36: flb-rt-filter_kubernetes
 41/170 Test  #60: flb-rt-out_flowcounter ...........................   Passed   17.79 sec
 42/170 Test  #16: flb-rt-in_statsd .................................   Passed   20.24 sec
 43/170 Test  #45: flb-rt-filter_ecs ................................   Passed   22.48 sec
 44/170 Test  #81: flb-rt-processor_metrics_selector ................   Passed   21.26 sec
 45/170 Test  #75: flb-rt-group_counter_semantics ...................   Passed   19.71 sec
 46/170 Test #134: flb-it-log .......................................   Passed   21.81 sec
 47/170 Test  #28: flb-rt-filter_checklist ..........................   Passed   20.81 sec
 48/170 Test  #33: flb-rt-filter_throttle_size ......................   Passed  106.54 sec
 49/170 Test  #48: flb-rt-counter_parity_e2e ........................   Passed   13.71 sec
        Start  50: flb-rt-core_log
        Start  62: flb-rt-out_kafka
        Start  68: flb-rt-out_stdout
        Start  55: flb-rt-out_azure_kusto
        Start  43: flb-rt-filter_sysinfo
        Start  32: flb-rt-filter_throttle
        Start  53: flb-rt-out_counter
        Start 148: flb-it-opentelemetry
        Start  66: flb-rt-out_null
 50/170 Test #148: flb-it-opentelemetry .............................   Passed    1.05 sec
        Start  89: in_http_tls_expect.ps1
 51/170 Test  #82: flb-rt-processor_labels ..........................   Passed   13.25 sec
        Start  90: in_syslog_tcp_tls_expect.ps1
 52/170 Test   #9: flb-rt-core_chunk_trace ..........................   Passed   12.61 sec
        Start  30: flb-rt-filter_stdout
 53/170 Test  #68: flb-rt-out_stdout ................................   Passed    6.89 sec
        Start  57: flb-rt-out_skywalking
 54/170 Test  #55: flb-rt-out_azure_kusto ...........................   Passed    6.86 sec
        Start  87: in_syslog_tcp_plaintext_expect.ps1
 55/170 Test  #84: flb-rt-processor_cumulative_to_delta .............   Passed    9.47 sec
        Start  26: flb-rt-in_opentelemetry_routing
 56/170 Test  #53: flb-rt-out_counter ...............................   Passed    5.95 sec
 57/170 Test  #43: flb-rt-filter_sysinfo ............................   Passed    6.98 sec
        Start  56: flb-rt-out_datadog
        Start 120: flb-it-multiline
 58/170 Test  #50: flb-rt-core_log ..................................   Passed    9.67 sec
        Start  15: flb-rt-in_random
 59/170 Test  #62: flb-rt-out_kafka .................................   Passed    9.65 sec
 60/170 Test  #32: flb-rt-filter_throttle ...........................   Passed    7.75 sec
 61/170 Test  #34: flb-rt-filter_nest ...............................   Passed   11.71 sec
 62/170 Test  #10: flb-rt-in_event_test .............................   Passed   12.61 sec
 63/170 Test  #66: flb-rt-out_null ..................................   Passed    6.36 sec
 64/170 Test   #5: flb-rt-core-timeout ..............................   Passed   12.15 sec
        Start 154: flb-it-oauth2
        Start  23: flb-rt-in_fluentbit_metrics
        Start  85: in_dummy_expect.ps1
        Start  47: flb-rt-filter_counter_semantics
        Start 164: flb-it-cumulative_to_delta
        Start  24: flb-rt-in_prometheus_textfile
 65/170 Test  #93: processor_conditional.ps1 ........................   Passed   15.15 sec
 66/170 Test  #30: flb-rt-filter_stdout .............................   Passed    5.32 sec
 67/170 Test  #89: in_http_tls_expect.ps1 ...........................   Passed    8.24 sec
 68/170 Test  #90: in_syslog_tcp_tls_expect.ps1 .....................   Passed    6.59 sec
        Start 133: flb-it-env
        Start  86: in_tail_expect.ps1
        Start  51: flb-rt-core_routes
        Start  88: in_syslog_udp_plaintext_expect.ps1
 69/170 Test  #57: flb-rt-out_skywalking ............................   Passed    5.79 sec
        Start   4: flb-rt-in_calyptia_fleet_test
 70/170 Test  #56: flb-rt-out_datadog ...............................   Passed    5.23 sec
        Start 147: flb-it-unicode
 71/170 Test  #26: flb-rt-in_opentelemetry_routing ..................   Passed    6.18 sec
 72/170 Test  #87: in_syslog_tcp_plaintext_expect.ps1 ...............   Passed    6.33 sec
        Start   6: flb-rt-core_internal_logger
        Start 141: flb-it-conditionals
 73/170 Test   #4: flb-rt-in_calyptia_fleet_test ....................   Passed    1.90 sec
 74/170 Test #120: flb-it-multiline .................................   Passed    6.25 sec
 75/170 Test  #15: flb-rt-in_random .................................   Passed    5.79 sec
 76/170 Test  #47: flb-rt-filter_counter_semantics ..................   Passed    4.29 sec
 77/170 Test #154: flb-it-oauth2 ....................................   Passed    5.35 sec
 78/170 Test #164: flb-it-cumulative_to_delta .......................   Passed    3.83 sec
        Start 138: flb-it-processor_conditional
        Start 153: flb-it-oauth2_jwt
        Start 165: flb-it-http_server
        Start 139: flb-it-uri
        Start 103: flb-it-slist
        Start 110: flb-it-zstd
 79/170 Test  #23: flb-rt-in_fluentbit_metrics ......................   Passed    8.02 sec
 80/170 Test #147: flb-it-unicode ...................................   Passed    4.65 sec
 81/170 Test  #24: flb-rt-in_prometheus_textfile ....................   Passed    6.59 sec
 82/170 Test #133: flb-it-env .......................................   Passed    6.07 sec
 83/170 Test  #85: in_dummy_expect.ps1 ..............................   Passed    7.50 sec
 84/170 Test  #88: in_syslog_udp_plaintext_expect.ps1 ...............   Passed    5.11 sec
        Start 161: flb-it-cfl_record_accessor
        Start   8: flb-rt-http_client_chunked
        Start 107: flb-it-http_client
        Start 119: flb-it-csv
        Start 109: flb-it-gzip
        Start 123: flb-it-bucket_queue
 85/170 Test #141: flb-it-conditionals ..............................   Passed    6.86 sec
 86/170 Test  #86: in_tail_expect.ps1 ...............................   Passed    8.74 sec
 87/170 Test  #51: flb-rt-core_routes ...............................   Passed    8.73 sec
 88/170 Test #138: flb-it-processor_conditional .....................   Passed    6.38 sec
 89/170 Test   #6: flb-rt-core_internal_logger ......................   Passed    7.31 sec
 90/170 Test #153: flb-it-oauth2_jwt ................................   Passed    5.91 sec
 91/170 Test #165: flb-it-http_server ...............................   Passed    5.36 sec
 92/170 Test #139: flb-it-uri .......................................   Passed    4.83 sec
 93/170 Test #103: flb-it-slist .....................................   Passed    4.28 sec
        Start 158: flb-it-parser
        Start 160: flb-it-record_accessor
        Start   3: flb-rt-custom_calyptia_input_test
        Start  97: flb-it-sds_list
        Start 106: flb-it-hashtable
        Start 144: flb-it-strptime
        Start 105: flb-it-router_config
        Start 121: flb-it-typecast
        Start 143: flb-it-task_map
 94/170 Test #110: flb-it-zstd ......................................   Passed    8.57 sec
 95/170 Test #161: flb-it-cfl_record_accessor .......................   Passed    8.02 sec
 96/170 Test   #8: flb-rt-http_client_chunked .......................   Passed    7.56 sec
 97/170 Test #107: flb-it-http_client ...............................   Passed    7.09 sec
 98/170 Test #119: flb-it-csv .......................................   Passed    6.62 sec
 99/170 Test #109: flb-it-gzip ......................................   Passed    5.99 sec
        Start 111: flb-it-random
        Start  52: flb-rt-config_map_opts
        Start  54: flb-rt-out_azure_blob_compression
        Start 122: flb-it-base64
        Start 102: flb-it-kv
        Start 104: flb-it-router
100/170 Test #123: flb-it-bucket_queue ..............................   Passed    8.63 sec
101/170 Test #158: flb-it-parser ....................................   Passed    8.06 sec
102/170 Test #160: flb-it-record_accessor ...........................   Passed    7.50 sec
103/170 Test   #3: flb-rt-custom_calyptia_input_test ................   Passed    7.02 sec
104/170 Test  #97: flb-it-sds_list ..................................   Passed    6.57 sec
105/170 Test #106: flb-it-hashtable .................................   Passed    6.01 sec
106/170 Test #144: flb-it-strptime ..................................   Passed    5.54 sec
107/170 Test  #70: flb-rt-out_tcp ...................................   Passed   46.15 sec
108/170 Test #105: flb-it-router_config .............................   Passed    4.99 sec
109/170 Test #121: flb-it-typecast ..................................   Passed    4.48 sec
        Start  95: flb-it-pipe
        Start   7: flb-rt-core_accept_timeout
        Start 116: flb-it-input_chunk_routes
        Start 127: flb-it-regex
        Start 114: flb-it-mp
        Start 108: flb-it-utils
        Start 140: flb-it-msgpack_append_message
        Start  96: flb-it-sds
        Start 146: flb-it-storage_inherit
        Start   1: flb-rt-custom_calyptia_test
110/170 Test #143: flb-it-task_map ..................................   Passed    9.56 sec
111/170 Test #111: flb-it-random ....................................   Passed    8.87 sec
112/170 Test  #52: flb-rt-config_map_opts ...........................   Passed    8.34 sec
113/170 Test  #54: flb-rt-out_azure_blob_compression ................   Passed    7.81 sec
114/170 Test #122: flb-it-base64 ....................................   Passed    7.33 sec
115/170 Test #102: flb-it-kv ........................................   Passed    6.75 sec
        Start 163: flb-it-metrics
        Start  92: dry_run_invalid_property.ps1
        Start 130: flb-it-parser_ltsv
        Start 131: flb-it-parser_regex
        Start 149: flb-it-storage_dlq
        Start 142: flb-it-endianness
116/170 Test #104: flb-it-router ....................................   Passed    9.41 sec
117/170 Test  #19: flb-rt-in_tail ...................................   Passed  145.85 sec
118/170 Test  #95: flb-it-pipe ......................................   Passed    8.84 sec
119/170 Test   #7: flb-rt-core_accept_timeout .......................   Passed    8.27 sec
120/170 Test #116: flb-it-input_chunk_routes ........................   Passed    7.73 sec
121/170 Test #127: flb-it-regex .....................................   Passed    7.14 sec
122/170 Test #114: flb-it-mp ........................................   Passed    6.58 sec
123/170 Test #108: flb-it-utils .....................................   Passed    6.01 sec
124/170 Test #140: flb-it-msgpack_append_message ....................   Passed    5.48 sec
125/170 Test  #96: flb-it-sds .......................................   Passed    4.90 sec
126/170 Test #146: flb-it-storage_inherit ...........................   Passed    4.32 sec
        Start 166: flb-it-aws_compress
        Start 168: flb-it-lua
        Start 118: flb-it-file
        Start 167: flb-it-aws_aggregation
        Start  94: processor_invalid.ps1
        Start 126: flb-it-ring_buffer
        Start 115: flb-it-mp_chunk_cobj
        Start 129: flb-it-parser_json
        Start 132: flb-it-parser_logfmt
        Start 112: flb-it-thread_storage
        Start  77: flb-rt-out_gcs
127/170 Test   #1: flb-rt-custom_calyptia_test ......................   Passed    9.44 sec
128/170 Test #163: flb-it-metrics ...................................   Passed    8.97 sec
129/170 Test  #92: dry_run_invalid_property.ps1 .....................   Passed    8.44 sec
130/170 Test #130: flb-it-parser_ltsv ...............................   Passed    8.43 sec
131/170 Test #131: flb-it-parser_regex ..............................   Passed    7.75 sec
132/170 Test #149: flb-it-storage_dlq ...............................   Passed    7.05 sec
        Start 169: flb-it-ripser
        Start 137: flb-it-processor
        Start 128: flb-it-scheduler
        Start 124: flb-it-downstream_worker
        Start 113: flb-it-config_map
        Start 152: flb-it-upstream_tls
133/170 Test #142: flb-it-endianness ................................   Passed   10.12 sec
134/170 Test  #71: flb-rt-out_stackdriver ...........................   Passed  155.97 sec
135/170 Test #166: flb-it-aws_compress ..............................   Passed    9.57 sec
136/170 Test #168: flb-it-lua .......................................   Passed    8.97 sec
137/170 Test #118: flb-it-file ......................................   Passed    8.39 sec
138/170 Test #167: flb-it-aws_aggregation ...........................   Passed    7.82 sec
139/170 Test  #94: processor_invalid.ps1 ............................   Passed    7.37 sec
140/170 Test #126: flb-it-ring_buffer ...............................   Passed    7.36 sec
141/170 Test #115: flb-it-mp_chunk_cobj .............................   Passed    6.77 sec
142/170 Test #129: flb-it-parser_json ...............................   Passed    6.17 sec
143/170 Test #132: flb-it-parser_logfmt .............................   Passed    5.50 sec
144/170 Test #112: flb-it-thread_storage ............................   Passed    4.83 sec
        Start 125: flb-it-flb_event_loop
        Start 117: flb-it-flb_time
        Start  91: custom_calyptia.ps1
        Start 136: flb-it-log_event_encoder
        Start 135: flb-it-log_event_decoder
        Start  67: flb-rt-out_splunk
        Start 100: flb-it-hash
        Start  98: flb-it-hmac
        Start 157: flb-it-config_format_yaml
        Start 151: flb-it-azure_blob_path
        Start 156: flb-it-config_format_fluentbit
        Start  99: flb-it-crypto
145/170 Test #169: flb-it-ripser ....................................   Passed   10.37 sec
146/170 Test #137: flb-it-processor .................................   Passed    9.74 sec
147/170 Test #128: flb-it-scheduler .................................   Passed    8.99 sec
148/170 Test #124: flb-it-downstream_worker .........................   Passed    8.35 sec
149/170 Test #113: flb-it-config_map ................................   Passed    7.77 sec
        Start 155: flb-it-config_format
        Start 170: flb-it-fips-unavailable
        Start 101: flb-it-fips
        Start 145: flb-it-plugin_alias
        Start 150: flb-it-engine_adaptive_flush
150/170 Test #152: flb-it-upstream_tls ..............................   Passed    9.53 sec
151/170 Test #117: flb-it-flb_time ..................................   Passed    8.32 sec
152/170 Test  #91: custom_calyptia.ps1 ..............................   Passed    7.72 sec
153/170 Test #136: flb-it-log_event_encoder .........................   Passed    7.72 sec
154/170 Test #135: flb-it-log_event_decoder .........................   Passed    7.15 sec
155/170 Test #100: flb-it-hash ......................................   Passed    6.09 sec
156/170 Test  #98: flb-it-hmac ......................................   Passed    5.37 sec
157/170 Test #151: flb-it-azure_blob_path ...........................   Passed    4.19 sec
        Start 162: flb-it-input_rate_gate
158/170 Test #157: flb-it-config_format_yaml ........................   Passed    5.22 sec
159/170 Test #156: flb-it-config_format_fluentbit ...................   Passed    4.19 sec
160/170 Test  #99: flb-it-crypto ....................................   Passed    3.65 sec
161/170 Test #155: flb-it-config_format .............................   Passed    2.96 sec
162/170 Test #170: flb-it-fips-unavailable ..........................   Passed    2.43 sec
163/170 Test #101: flb-it-fips ......................................   Passed    1.78 sec
164/170 Test #145: flb-it-plugin_alias ..............................   Passed    1.78 sec
165/170 Test #150: flb-it-engine_adaptive_flush .....................   Passed    1.22 sec
166/170 Test  #67: flb-rt-out_splunk ................................   Passed    7.17 sec
167/170 Test #125: flb-it-flb_event_loop ............................   Passed    9.54 sec
168/170 Test #162: flb-it-input_rate_gate ...........................   Passed    0.83 sec
169/170 Test  #77: flb-rt-out_gcs ...................................   Passed   17.91 sec
170/170 Test  #36: flb-rt-filter_kubernetes .........................   Passed  120.61 sec

100% tests passed, 0 tests failed out of 170

Label Time Summary:
internal         = 517.00 sec*proc (76 tests)
runtime          = 2492.74 sec*proc (84 tests)
runtime_shell    =  81.19 sec*proc (10 tests)

Total Test time (real) = 227.80 sec

Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • Example configuration file for the change
PS>bin/fluent-bit -i dummy -o stdout -H -P 2021 -v
  • Debug log output from testing the change
bin/fluent-bit -i dummy -o stdout -H -P 2021 -v
Fluent Bit v5.1.0
* Copyright (C) 2015-2026 The Fluent Bit Authors
* Fluent Bit is a CNCF graduated project under the Fluent organization
* https://fluentbit.io

______ _                  _    ______ _ _           _____  _____
|  ___| |                | |   | ___ (_) |         |  ___||  _  |
| |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   _|___ \ | |/' |
|  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / /   \ \|  /| |
| |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V //\__/ /\ |_/ /
\_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/ \____(_)\___/


[2026/07/31 15:31:53.824] [ info] Configuration:
[2026/07/31 15:31:53.824] [ info]  flush time     | 1.000000 seconds
[2026/07/31 15:31:53.824] [ info]  grace          | 5 seconds
[2026/07/31 15:31:53.824] [ info]  daemon         | 0
[2026/07/31 15:31:53.824] [ info] ___________
[2026/07/31 15:31:53.824] [ info]  inputs:
[2026/07/31 15:31:53.824] [ info]      dummy
[2026/07/31 15:31:53.824] [ info] ___________
[2026/07/31 15:31:53.824] [ info]  filters:
[2026/07/31 15:31:53.824] [ info] ___________
[2026/07/31 15:31:53.824] [ info]  outputs:
[2026/07/31 15:31:53.825] [ info]      stdout.0
[2026/07/31 15:31:53.825] [ info] ___________
[2026/07/31 15:31:53.825] [ info]  collectors:
[2026/07/31 15:31:53.827] [ info] [fluent bit] version=5.1.0, commit=96787f4459, pid=326280
[2026/07/31 15:31:53.827] [debug] [engine] maxstdio set: 512
[2026/07/31 15:31:53.827] [debug] [engine] coroutine stack size: 98302 bytes (96.0K)
[2026/07/31 15:31:53.829] [ info] [storage] ver=1.5.4, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2026/07/31 15:31:53.829] [ info] [simd    ] SSE2
[2026/07/31 15:31:53.829] [ info] [cmetrics] version=2.2.1
[2026/07/31 15:31:53.829] [ info] [ctraces ] version=0.7.1
[2026/07/31 15:31:53.830] [ info] [input:dummy:dummy.0] initializing
[2026/07/31 15:31:53.830] [ info] [input:dummy:dummy.0] storage_strategy='memory' (memory only)
[2026/07/31 15:31:53.830] [debug] [dummy:dummy.0] created event channels: read=1012 write=588
[2026/07/31 15:31:53.831] [debug] [stdout:stdout.0] created event channels: read=1032 write=1044
[2026/07/31 15:31:53.836] [ info] [output:stdout:stdout.0] worker #0 started
[2026/07/31 15:31:53.838] [ info] [http_server] listen iface=0.0.0.0 tcp_port=2021
[2026/07/31 15:31:53.838] [ info] [sp] stream processor started
[2026/07/31 15:31:53.839] [ info] [engine] Shutdown Grace Period=5, Shutdown Input Grace Period=2
[2026/07/31 15:31:55.833] [debug] [task] created task=000001802719ECF0 id=0 OK
[2026/07/31 15:31:55.833] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
[0] dummy.0: [[1785479514.847594500, {}], {"message"=>"dummy"}]
[2026/07/31 15:31:55.833] [debug] [out flush] cb_destroy coro_id=0
[2026/07/31 15:31:55.833] [debug] [task] destroy task=000001802719ECF0 (task_id=0)
[2026/07/31 15:31:56.841] [debug] [task] created task=000001802719EE30 id=0 OK
[0] dummy.0: [[1785479515.833503600, [2026/07/31 15:31:56.841] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
{}], {"message"=>"dummy"}]
[2026/07/31 15:31:56.842] [debug] [out flush] cb_destroy coro_id=1
[2026/07/31 15:31:56.842] [debug] [task] destroy task=000001802719EE30 (task_id=0)
[2026/07/31 15:31:57.842] [debug] [task] created task=000001802719EE30 id=0 OK
[0] dummy.0: [[[2026/07/31 15:31:57.842] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
1785479516.842162700, {}], {"message"=>"dummy"}]
[2026/07/31 15:31:57.843] [debug] [out flush] cb_destroy coro_id=2
[2026/07/31 15:31:57.843] [debug] [task] destroy task=000001802719EE30 (task_id=0)
[2026/07/31 15:31:58] [engine] caught signal (SIGINT)
[2026/07/31 15:31:58.831] [debug] [task] created task=000001802719EED0 id=0 OK
[0] dummy.0: [[[2026/07/31 15:31:58.831] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
1785479517.842522600, {}], {"message"=>"dummy"}]
[2026/07/31 15:31:58.831] [debug] [out flush] cb_destroy coro_id=3
[2026/07/31 15:31:58.831] [debug] [task] destroy task=000001802719EED0 (task_id=0)
[2026/07/31 15:31:58.861] [debug] [task] created task=000001802719ECF0 id=0 OK
[0] dummy.0: [[1785479518.831804100, {}], {[2026/07/31 15:31:58.861] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
"message"=>[2026/07/31 15:31:58.861] [ warn] [engine] service will shutdown in max 5 seconds
[2026/07/31 15:31:58.861] [debug] [engine] task 0 already scheduled to run, not re-scheduling it.
[2026/07/31 15:31:58.861] [ info] [engine] pausing all inputs..
[2026/07/31 15:31:58.861] [ info] [input] pausing dummy.0
"dummy"}]
[2026/07/31 15:31:58.862] [debug] [out flush] cb_destroy coro_id=4
[2026/07/31 15:31:58.862] [debug] [task] destroy task=000001802719ECF0 (task_id=0)
[2026/07/31 15:31:59.887] [ info] [engine] service has stopped (0 pending tasks)
[2026/07/31 15:31:59.887] [ info] [input] pausing dummy.0
[2026/07/31 15:31:59.887] [ info] [output:stdout:stdout.0] thread worker #0 stopping...
[2026/07/31 15:31:59.887] [ info] [output:stdout:stdout.0] thread worker #0 stopped

Experiment result

Plus, we got with Get-NetTCPConnection Cmdlet:

PS> Get-NetTCPConnection -OwningProcess <modified fluent-bit pid>

LocalAddress                        LocalPort RemoteAddress                       RemotePort State       AppliedSetting
------------                        --------- -------------                       ---------- -----       --------------
0.0.0.0                             2021      0.0.0.0                             0          Listen
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: fa184afd-34b5-4f84-b4ff-d1a176384df2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cosmo0920 cosmo0920 changed the title [Canarylib: monkey: Import afunix patched bundled canary commit of libevent [Canary] lib: monkey: Import afunix patched bundled canary commit of libevent May 20, 2026
@cosmo0920
cosmo0920 force-pushed the cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows branch from da72511 to 8aa1a4a Compare July 14, 2026 06:12
@cosmo0920
cosmo0920 force-pushed the cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows branch from 8aa1a4a to 6080ff2 Compare July 14, 2026 10:19
@cosmo0920
cosmo0920 force-pushed the cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows branch from 1c953bb to 033917b Compare July 15, 2026 04:09
@cosmo0920
cosmo0920 force-pushed the cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows branch from 033917b to 8709429 Compare July 15, 2026 05:37
@cosmo0920
cosmo0920 force-pushed the cosmo0920-canary-libevent-monkey-afunix-socketpair-patch-on-windows branch from 598611a to 09e4e34 Compare July 15, 2026 08:46
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@cosmo0920

Copy link
Copy Markdown
Contributor Author

This was superseded by #12212.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant