We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef4db2 commit 17c9db8Copy full SHA for 17c9db8
lib/sqlite3/database.rb
@@ -697,13 +697,12 @@ def readonly?
697
# while SQLite sleeps and retries.
698
def busy_handler_timeout=( milliseconds )
699
timeout_seconds = milliseconds.fdiv(1000)
700
- retry_interval = 0.001 # 1 millisecond
701
timeout_deadline = Process.clock_gettime(Process::CLOCK_MONOTONIC) + timeout_seconds
702
703
busy_handler do |count|
704
next false if Process.clock_gettime(Process::CLOCK_MONOTONIC) > timeout_deadline
705
706
- sleep(retry_interval)
+ sleep(0.001)
707
end
708
709
0 commit comments