No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Gemfile
Gemfile.lock
README.md
mysql2_streaming.rb

README.md

mysql2 streaming vs net_write_timeout

Demonstrates an issue where streaming silently abandons records behind.

Checkout the repo and adjust your mysql credentials in mysql2_streaming.rb.

The first command-line argument is used to set the session 'net_write_timeout'. This value could be set to a low value in your global mysql.conf, causing the issue to manifest unexpectedly in your code.

bundle install
ruby mysql2_streaming.rb 10 # Works
ruby mysql2_streaming.rb 1  # Fails