Merge pull request #2203 from csnover/patch-1

Fix bad signature of http.ClientRequest#setNoDelay
This commit is contained in:
John Reilly
2014-05-16 20:28:04 +01:00
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -95,3 +95,8 @@ var hmacResult: string = crypto.createHmac('md5', 'hello').update('world').diges
// Make sure .listen() and .close() retuern a Server instance
http.createServer().listen(0).close().address();
net.createServer().listen(0).close().address();
var request = http.request('http://0.0.0.0');
request.once('error', function () {});
request.setNoDelay(true);
request.abort();
+1 -1
View File
@@ -327,7 +327,7 @@ declare module "http" {
write(chunk: any, encoding?: string): void;
abort(): void;
setTimeout(timeout: number, callback?: Function): void;
setNoDelay(noDelay?: Function): void;
setNoDelay(noDelay?: boolean): void;
setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
// Extended base methods