net: return this from setNoDelay and setKeepAlive
authorRoman Reiss <me@silverwind.io>
Sat, 23 May 2015 05:48:13 +0000 (07:48 +0200)
committerRoman Reiss <me@silverwind.io>
Sat, 23 May 2015 16:10:32 +0000 (18:10 +0200)
commitcb381fe3e08e8a249738f791a984f452ff70c68d
tree12d8f03ffba5a2680a025478381faa51a3fe2e01
parent39dde3222e4733fc1b59c45e392d9ff1a88ae4cc
net: return this from setNoDelay and setKeepAlive

Modifies the Socket.setNoDelay and Socket.setKeepAlive methods to return
the socket instance instead of undefined, to allow for chaining.

PR-URL: https://github.com/nodejs/io.js/pull/1779
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
doc/api/net.markdown
lib/net.js
test/parallel/test-net-persistent-keepalive.js
test/parallel/test-net-persistent-nodelay.js