Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
f8bff4c6
Commit
f8bff4c6
authored
Sep 10, 2010
by
indexzero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[minor] Listen to error events re-emitted by pool into the ClientRequest
parent
6d47d98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/node-http-proxy.js
lib/node-http-proxy.js
+2
-2
No files found.
lib/node-http-proxy.js
View file @
f8bff4c6
...
@@ -137,7 +137,7 @@ HttpProxy.prototype = {
...
@@ -137,7 +137,7 @@ HttpProxy.prototype = {
};
};
// Add a listener for the connection timeout event
// Add a listener for the connection timeout event
reverse_proxy
.
connection
.
addListener
(
'
error
'
,
error
);
reverse_proxy
.
addListener
(
'
error
'
,
error
);
// Add a listener for the reverse_proxy response event
// Add a listener for the reverse_proxy response event
reverse_proxy
.
addListener
(
'
response
'
,
function
(
response
)
{
reverse_proxy
.
addListener
(
'
response
'
,
function
(
response
)
{
...
@@ -173,7 +173,7 @@ HttpProxy.prototype = {
...
@@ -173,7 +173,7 @@ HttpProxy.prototype = {
// At the end of the client request, we are going to stop the proxied request
// At the end of the client request, we are going to stop the proxied request
req
.
addListener
(
'
end
'
,
function
()
{
req
.
addListener
(
'
end
'
,
function
()
{
reverse_proxy
.
end
();
reverse_proxy
.
end
();
reverse_proxy
.
connection
.
removeListener
(
'
error
'
,
error
);
reverse_proxy
.
removeListener
(
'
error
'
,
error
);
});
});
self
.
unwatch
(
req
);
self
.
unwatch
(
req
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment