Skip to content

Run Concurrently (using different ports?) #81

Description

@Lordnibbler

First off, thanks for the awesome gem.

I want to use headless to run concurrent selenium builds using this gem, and I see that xvfb should allow being passed an --auto-servernum flag at runtime. This will presumably prevent the following collision error I'm seeing currently when running concurrent builds:

Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:7057 (Connection refused - connect(2) for "127.0.0.1" port 7057)

I've tried invoking headless using a random display each time inside a sidekiq worker with concurrency of 3, but I get similar errors

headless = Headless.new(display: rand(100))
headless.start

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions