Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
remove a change
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Jun 28, 2023
1 parent 33d3ba4 commit e35a62a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ethereum/ethereum/src/forking/handlers/http-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,8 @@ export class HttpHandler extends BaseHandler implements Handler {
});

// after 5 seconds of idle abort the request
req.setTimeout(5000, () => {
console.log("timeout");
req.abort.bind(req, null)();
});
req.on("error", e => {
console.log("error");
deferred.reject(e);
});
req.setTimeout(5000, req.abort.bind(req, null));
req.on("error", deferred.reject);
req.write(postData);
req.end();

Expand Down

0 comments on commit e35a62a

Please sign in to comment.