httpsys icon indicating copy to clipboard operation
httpsys copied to clipboard

Implement Socket.setTimeout

Open tjanczuk opened this issue 12 years ago • 0 comments

+Socket.prototype.setTimeout = function (timeout, callback) {
+    // TODO: implement full Socket.setTimeout semantics 
+    // http://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback
+
+    if (timeout !== 0) {
+        throw new Error('Not implemented. Only timeout value of 0 is currently accepted.')
+    }
+};

tjanczuk avatar Jul 15 '13 18:07 tjanczuk