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

Proxy not working from version v6.0.0-beta.20 to v6.0.8 #662

Closed
dhilip89 opened this issue Oct 14, 2024 · 3 comments · Fixed by #665
Closed

Proxy not working from version v6.0.0-beta.20 to v6.0.8 #662

dhilip89 opened this issue Oct 14, 2024 · 3 comments · Fixed by #665

Comments

@dhilip89
Copy link

dhilip89 commented Oct 14, 2024

Describe the bug
Proxy is throwing different error on different environment with the version (from v6.0.0-beta.20 to v6.0.8), it was working fine in v6.0.0-beta.19.

On Windows machine:

Waiting for the debugger to disconnect...
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: Unknown error] { errno: 10045, code: '' }

On Ubuntu machine:

Debugger attached.
Waiting for the debugger to disconnect...
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: Operation not supported] { errno: 95, code: 'ENOTSUP' }

Reproducing
Using example from the official documentation:

import { Proxy, Router, Dealer } from "zeromq"

// Proxy between a router/dealer socket for 5 seconds.
const proxy = new Proxy(new Router, new Dealer)
await proxy.frontEnd.bind("tcp://*:3001")
await proxy.backEnd.bind("tcp://*:3002")
setTimeout(() => proxy.terminate(), 5000)
await proxy.run() // <-- This line throws unknown error on Windows, ENOTSUP on Linux

Downgrade zeromq.js to v6.0.0-beta.19 then the code will not throw error.

Expected behavior
Proxy should be working correctly without throwing error like with previous version.

Tested on

  • OS: Windows Server 2022, Ubuntu 24.10
  • ZeroMQ.js versions: 6.0.0-beta.19, 6.0.0-beta.20, 6.0.0 - 6.0.8
  • Node,js version: 20.11.1, 20.16.0
@dhilip89 dhilip89 added the bug label Oct 14, 2024
@dhilip89 dhilip89 changed the title Proxy not working since v6.0.0 Proxy not working from version v6.0.0-beta.20 to v6.0.8 Oct 15, 2024
@aminya aminya reopened this Oct 28, 2024
@aminya
Copy link
Member

aminya commented Oct 28, 2024

@dhilip89 Could you confirm that the latest release fixed this or not?

@dhilip89
Copy link
Author

@dhilip89 Could you confirm that the latest release fixed this or not?

Just upgraded to latest version (6.1.1), everything seems working as expected on both Windows and Linux machines.

@aminya
Copy link
Member

aminya commented Oct 29, 2024

Awesome! Thanks for confirming

@aminya aminya closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants