spdy-transport
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -265,3 +265,4 @@ 'use strict'; | ||
Stream.prototype._handleRST = function _handleRST(frame) { | ||
this.emit('error', new Error('Got RST: ' + frame.code)); | ||
if (frame.code !== 'CANCEL') | ||
this.emit('error', new Error('Got RST: ' + frame.code)); | ||
this.abort(); | ||
@@ -268,0 +269,0 @@ }; |
{ | ||
"name": "spdy-transport", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"description": "SPDY v2, v3, v3.1 and HTTP2 transport", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -242,3 +242,3 @@ var assert = require('assert'); | ||
stream.on('error', function(err) { | ||
stream.on('close', function(err) { | ||
assert(err); | ||
@@ -245,0 +245,0 @@ done(); |
@@ -214,3 +214,3 @@ var assert = require('assert'); | ||
assert(!err); | ||
stream.once('error', function(err) { | ||
stream.once('close', function(err) { | ||
assert(err); | ||
@@ -217,0 +217,0 @@ done(); |
@@ -384,3 +384,3 @@ var assert = require('assert'); | ||
stream.on('error', function(err) { | ||
stream.on('close', function(err) { | ||
assert(err); | ||
@@ -406,3 +406,3 @@ done(); | ||
stream.on('error', function(err) { | ||
stream.on('close', function(err) { | ||
assert(err); | ||
@@ -455,3 +455,3 @@ }); | ||
var once = false; | ||
stream.on('error', function(err) { | ||
stream.on('close', function(err) { | ||
assert(!once); | ||
@@ -617,5 +617,2 @@ once = true; | ||
assert(!err); | ||
stream.on('error', function() { | ||
// Server will cancel the stream | ||
}); | ||
stream.end(); | ||
@@ -639,5 +636,2 @@ }); | ||
assert(!err); | ||
stream.on('error', function() { | ||
// Server will cancel the stream | ||
}); | ||
stream.end(); | ||
@@ -644,0 +638,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
234903
7313