Skip to content

Calls via express are not queued #2

@somebee

Description

@somebee

It seems to me that there must be something wrong with the node-epp-server. When you send a request to it while another request is being handled, the server will immediately return with status 400, "Unknown registry". Is it intentional that you cannot send in another request until you know that the registry worker is available?

Or is it a bug? If it is a bug, I guess it's the fact that you don't clone the object of registries in https://github.com/heytrav/nodepp/blob/master/lib/listener.js#L7. This means that the worker is removed from availableProcesses when busy, resulting in the immediate return for requests https://github.com/heytrav/nodepp/blob/master/lib/node-epp-server.js#L67-L72.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions