Compare commits

...

6 Commits

Author SHA1 Message Date
John Hiesey cd697901d1 3.2.0 2021-04-14 12:39:41 -07:00
John Hiesey 934f110003 Re-enable Safari 11 tests 2021-04-14 12:06:02 -07:00
John Hiesey 9e359bbc00 Fix sauce matrix 2021-04-14 11:52:46 -07:00
John Hiesey ca7bd49cd6 Disable tests on Safari 11 2021-04-14 11:49:56 -07:00
John Hiesey 8998953efd Reset timers on abort as well 2021-04-14 11:08:39 -07:00
John Hiesey e53322af5a Merge pull request #121 from jhiesey/socket-timeout
Socket timeout
2021-04-13 22:30:11 -07:00
4 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -6,7 +6,10 @@ browsers:
- name: firefox - name: firefox
version: -2..latest version: -2..latest
- name: safari - name: safari
version: 8..latest version: [8..10, 12..latest]
- name: safari
version: 11
platform: Mac 10.13 # Configure separately due to https://github.com/airtap/sauce-browsers/issues/3
- name: MicrosoftEdge - name: MicrosoftEdge
version: -2..latest version: -2..latest
- name: ie - name: ie
+1 -1
View File
@@ -1,6 +1,6 @@
# stream-http [![Build Status](https://travis-ci.org/jhiesey/stream-http.svg?branch=master)](https://travis-ci.org/jhiesey/stream-http) # stream-http [![Build Status](https://travis-ci.org/jhiesey/stream-http.svg?branch=master)](https://travis-ci.org/jhiesey/stream-http)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/stream-http.svg)](https://saucelabs.com/u/stream-http) [![Sauce Test Status](https://app.saucelabs.com/browser-matrix/stream-http.svg)](https://app.saucelabs.com/u/stream-http)
This module is an implementation of Node's native `http` module for the browser. This module is an implementation of Node's native `http` module for the browser.
It tries to match Node's API and behavior as closely as possible, but some features It tries to match Node's API and behavior as closely as possible, but some features
+1
View File
@@ -60,6 +60,7 @@ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, r
self.push(null) self.push(null)
}, },
abort: function (err) { abort: function (err) {
resetTimers(true)
if (!self._destroyed) if (!self._destroyed)
self.emit('error', err) self.emit('error', err)
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "stream-http", "name": "stream-http",
"version": "3.1.1", "version": "3.2.0",
"description": "Streaming http in the browser", "description": "Streaming http in the browser",
"main": "index.js", "main": "index.js",
"repository": { "repository": {