Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Readme.md

  • Loading branch information...
commit 52ffb24b38c2fb305743007090021a68a336376c 1 parent 3d77c94
@tj tj authored
Showing with 1 addition and 35 deletions.
  1. +1 −35 Readme.md
View
36 Readme.md
@@ -1,36 +1,2 @@
-# Connect-timeout middleware
-Connect timeout sets a global timeout for responses.
-
-## Usage
-
- connect.createServer(
- require('./path/to/connect-timeout')({options})
- )
-
-### Options
-
-#### Code
-
-Error code to respond with in case of timeout (500)
-
-#### Time
-
-Number of ms after which the timeout is triggered (8000)
-
-## What about long-running requests?
-
-When the timeout is enabled, a `clearTimeout` method is attached to the request.
-
- function(req, res, next){
- req.clearTimeout();
- setTimeout(function(){
- res.writeHead(200);
- res.end();
- // this will work
- }, 20000);
- }
-
-## Author
-
-Guillermo Rauch <guillermo@learnboost.com>
+ Use connect's bundled `connect.timeout(ms)`
Please sign in to comment.
Something went wrong with that request. Please try again.