Skip to content

Broken examples #117

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

Closed
jfhbrook opened this issue Sep 29, 2011 · 2 comments
Closed

Broken examples #117

jfhbrook opened this issue Sep 29, 2011 · 2 comments

Comments

@jfhbrook
Copy link
Contributor

A few of the examples are broken due to changes in the routing table api:

  • [fixed] /examples/http/standalone-proxy.js
  • [fixed] /examples/websocket/latent-websocket-proxy.js
  • [fixed] /examples/websocket/standalone-websocket-proxy.js

Also, the last example from the readme quietly terminates immediately.

[fixed] Many of the examples also have broken require paths, but I should have a fix for those bugs in a few minutes.

Edit: Refer to pull request #118 .

Edit2: While the require-based and api-related issues have been resolved, there are still a few breaking examples for me:

  • Everything in /examples/websocket/ crashes for me with the following output:
    josh@pidgey:~/proxy/examples$ node websocket/websocket-proxy.js 
    29 Sep 14:50:03 - Your node instance does not have root privileges. This means that the flash XML policy file will be served inline instead of on port 843. This will slow down initial connections slightly.
    29 Sep 14:50:03 - socket.io ready - accepting connections

    node.js:134
            throw e; // process.nextTick error, or 'error' event on first tick
            ^
    Error: ECONNREFUSED, Connection refused
        at Socket._onConnect (net.js:595:18)
        at IOWatcher.onWritable [as callback] (net.js:186:12)
indexzero added a commit that referenced this issue Sep 29, 2011
[fix] Examples have working require paths now.
@indexzero
Copy link
Member

Fixed in 6c6fec0

@jfhbrook
Copy link
Contributor Author

I don't believe all of the broken examples have been fixed by that commit! I'm going to make sure the problems I'm having aren't because of my machine before reopening, though.

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

2 participants