-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
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.