Last active
December 14, 2015 21:28
-
-
Save Nopik/5150927 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This program (using restler 2.0.1): | |
restler = require( 'restler' ); | |
r1 = restler.get( 'http://localhost:90/undefined-1', {} ) | |
r1.on( 'error', function(){ console.log( "R1 Error" ); } ) | |
r1.on( 'complete', function(){ console.log( "R1 Complete" ); } ) | |
r2 = restler.get( 'http://localhost:90/undefined-2', {} ) | |
r2.on( 'error', function(){ console.log( "R2 Error" ); } ) | |
r2.on( 'complete', function(){ console.log( "R2 Complete" ); } ) | |
r3 = restler.get( 'http://localhost:90/undefined-3', {} ) | |
r3.on( 'error', function(){ console.log( "R3 Error" ); } ) | |
r3.on( 'complete', function(){ console.log( "R3 Complete" ); } ) | |
on Node.js v0.8.8 gives such output: | |
R3 Error | |
R3 Complete | |
R2 Error | |
R2 Complete | |
R1 Error | |
R1 Complete | |
while on Node.js v0.10.0 gives such output: | |
R1 Error | |
R2 Error | |
R3 Error | |
R1 Complete | |
R2 Complete | |
R3 Complete | |
R1 Error | |
R2 Error | |
R3 Error | |
R1 Complete | |
R2 Complete | |
R3 Complete | |
R1 Error | |
R2 Error | |
R3 Error | |
R1 Complete | |
R2 Complete | |
R3 Complete | |
This is probably related to this line: https://github.com/danwrong/restler/blob/master/lib/restler.js#L91 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
restler = require( 'restler' ); | |
r1 = restler.get( 'http://localhost:90/undefined-1', {} ) | |
r1.on( 'error', function(){ console.log( "R1 Error" ); } ) | |
r1.on( 'complete', function(){ console.log( "R1 Complete" ); } ) | |
r2 = restler.get( 'http://localhost:90/undefined-2', {} ) | |
r2.on( 'error', function(){ console.log( "R2 Error" ); } ) | |
r2.on( 'complete', function(){ console.log( "R2 Complete" ); } ) | |
r3 = restler.get( 'http://localhost:90/undefined-3', {} ) | |
r3.on( 'error', function(){ console.log( "R3 Error" ); } ) | |
r3.on( 'complete', function(){ console.log( "R3 Complete" ); } ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment