Skip to content

Commit

Permalink
Bump MaxClients in WEBrick
Browse files Browse the repository at this point in the history
  • Loading branch information
driv3r committed Oct 10, 2023
1 parent 6d41d77 commit 8159121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions test/helpers/ghostferry_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def start_server
BindAddress: "127.0.0.1",
Port: @server_port,
Logger: @logger,
MaxClients: 1024,
AccessLog: [],
)

Expand Down
10 changes: 1 addition & 9 deletions test/integration/interrupt_resume_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,10 @@ def test_interrupt_and_resume_without_last_known_schema_cache
def test_interrupt_resume_with_writes_to_source
# Start a ghostferry run expecting it to be interrupted.
datawriter = new_source_datawriter
ghostferry = new_ghostferry(MINIMAL_GHOSTFERRY)
ghostferry = new_ghostferry_with_interrupt_after_row_copy(MINIMAL_GHOSTFERRY, after_batches_written: 2)

start_datawriter_with_ghostferry(datawriter, ghostferry)

batches_written = 0
ghostferry.on_status(Ghostferry::Status::AFTER_ROW_COPY) do
batches_written += 1
if batches_written >= 2
ghostferry.send_signal("TERM")
end
end

dumped_state = ghostferry.run_expecting_interrupt
assert_basic_fields_exist_in_dumped_state(dumped_state)

Expand Down

0 comments on commit 8159121

Please sign in to comment.