Skip to content

How to make asynchronous requests with multiple clients? #7

@mwulftange

Description

@mwulftange

I want to be able to send certain requests asynchronously to multiple Nessus servers using one nessus.rb client for each server. Currently I’m doing something like this:

clients = [
    Nessus::Client.new('https://host-a:8834/', '…', '…'),
    Nessus::Client.new('https://host-b:8834/', '…', '…'),
    # …
]
clients.each do |client|
    client.get '…'
    # process response
end

I have experience that sometimes it takes quite a while for Nessus to respond, which will block all following requests.

Now my goal is to send these requests to all servers in asynchronously while being able to process each responses individually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions