molnarg / node-http2

An HTTP/2 client and server implementation for node.js
MIT License
1.79k stars 185 forks source link

How to set request setTimeout? #242

Open indieyourself opened 7 years ago

indieyourself commented 7 years ago

I use this method to set request timeout, but it doesn't work. Anyone could tell how to setTimeout when using http2 request?

method: request.setTimeout(1000, function () { });

magiclen commented 7 years ago

The same issue here. This function exists, but it doesn't work.