Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question (bug?): Socket is busy reading #706

Open
pmbanugo opened this issue Mar 4, 2025 · 0 comments
Open

Question (bug?): Socket is busy reading #706

pmbanugo opened this issue Mar 4, 2025 · 0 comments

Comments

@pmbanugo
Copy link

pmbanugo commented Mar 4, 2025

I'm using the current version 6.3.0 of zeromq as at today. I have a push/pull pattern where I push a message so that workers can work on it, and then I pull back a response.

// Push request to workers
  await pusher.send(requestData);

  // Pull response from workers
  const [responseData] = await puller.receive();
  const response = unpack(responseData);

I get the error Error processing request: Error: Socket is busy reading; only one receive operation may be in progress at any time.

I would imagine to get a similar error for write if I'm doing something wrong. But it only happens for read command. Am I doing something wrong or using it the wrong way?

I tried Req/Res but the processing is slow, and that's why I switched to push pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant