Skip to content

Commit b667fbe

Browse files
committed
v0.0.6 Fix ECONNRESET error
1 parent 7b96731 commit b667fbe

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/ProxyServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ProxyServer.prototype.__send = function __send(client, data, hash) {
8787

8888
dest.pipe(ws);
8989
dest.pipe(client);
90-
dest.end(data);
90+
dest.write(data);
9191
});
9292
}
9393
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "node-http-proxy-cache",
33
"description": "Http caching proxy for the development clients to different websites and api",
4-
"version": "0.0.5",
4+
"version": "0.0.6",
55
"author": "Evgeny Reznichenko <[email protected]>",
66
"dependencies": {
77
"async": "0.2.8"

test/proxyServer.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ describe('ProxyServer', function () {
9494

9595
after(function (done) {
9696
proxy.close(function () {
97-
server.close(done);
97+
server.close();
98+
done();
9899
});
99100
});
100101

@@ -192,7 +193,8 @@ describe('ProxyServer', function () {
192193

193194
after(function (done) {
194195
proxy.close(function () {
195-
server.close(done);
196+
server.close();
197+
done();
196198
});
197199
});;
198200

0 commit comments

Comments
 (0)