-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
Description
We currently do not support the connect_timeout
option to TCPSocket#initialize
. This has recently come up as a problem with Dalli 3.2.7, which started using connect_timeout
. This will impact those running Rails with memcache as its cache store.
TypeError: no implicit conversion of {:connect_timeout=>1} into Integer
--
| /usr/local/ruby/lib/truffle/socket/truffle.rb:168:in `coerce_to_string'
| /usr/local/ruby/lib/truffle/socket/tcp_socket.rb:66:in `initialize'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/socket.rb:93:in `open'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/protocol/connection_manager.rb:210:in `memcached_socket'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/protocol/connection_manager.rb:55:in `establish_connection'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/protocol/base.rb:207:in `connect'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/protocol/base.rb:196:in `ensure_connected!'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/protocol/base.rb:58:in `alive?'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/ring.rb:46:in `server_for_key'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/client.rb:425:in `perform'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/client.rb:208:in `set_cas'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/dalli-3.2.7/lib/dalli/client.rb:201:in `set'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache/mem_cache_store.rb:265:in `block (2 levels) in write_serialized_entry'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:110:in `block (2 levels) in with'
| <internal:core> core/thread.rb:94:in `handle_interrupt'
| <internal:core> core/thread.rb:94:in `handle_interrupt'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `block in with'
| <internal:core> core/thread.rb:94:in `handle_interrupt'
| <internal:core> core/thread.rb:94:in `handle_interrupt'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `with'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache/mem_cache_store.rb:265:in `block in write_serialized_entry'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache/mem_cache_store.rb:336:in `rescue_error_with'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache/mem_cache_store.rb:262:in `write_serialized_entry'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache/strategy/local_cache.rb:154:in `write_serialized_entry'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache/mem_cache_store.rb:252:in `write_entry'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache.rb:668:in `block in write'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache.rb:1030:in `block in _instrument'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/notifications.rb:208:in `instrument'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache.rb:1029:in `_instrument'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache.rb:1006:in `instrument'
| /tmp/bundle/truffleruby/3.2.2.23.1.0/gems/activesupport-7.1.3/lib/active_support/cache.rb:666:in `write'