Results 1 to 2 of 2
  1. #1

    Node.js client failing to connect in HTTP-STREAMING transport

    In HTTP-STREAMING mode only I get:
    bottom
    status: CONNECTING
    status: CONNECTED:STREAM-SENSING
    status: CONNECTED:HTTP-STREAMING
    status: STALLED
    status: DISCONNECTED:WILL-RETRY
    status: CONNECTING
    status: CONNECTED:STREAM-SENSING
    status: CONNECTED:HTTP-STREAMING
    status: STALLED
    ...


    Why?
    Attached Files Attached Files

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi David,


    Looks like it is an issue with the xmlhttprequest module we leverage to do HTTP-STREAMING on node: https://github.com/driverdan/node-XMLHttpRequest


    I fixed the issue in the module and I filled a pull request: https://github.com/driverdan/node-XM...equest/pull/59

    If and when the pull request is accepted the original owner has to push the fixed library to npm so that it may take a while before the fix is available through npm install

    In the meantime you may clone my branch of the library ( https://github.com/mone/node-XMLHttpRequest ) on a folder on your pc, then go there and run
    Code:
    npm link
    After that go into the folder where your node application is and call
    Code:
    npm link xmlhttprequest
    At this point your client should be able to connect in HTTP-STREAMING mode.

    HTH

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:11 AM.