Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis bnoordhuis/patsje.patch Secret
Created Oct 6, 2011

Embed
What would you like to do?
--- a/test/pummel/test-net-write-callbacks.js
+++ b/test/pummel/test-net-write-callbacks.js
@@ -41,9 +41,10 @@ var server = net.Server(function(socket) {
server.listen(common.PORT, function() {
var client = net.createConnection(common.PORT);
+ var b = Buffer('hello world');
client.on('connect', function() {
for (var i = 0; i < N; i++) {
- client.write('hello world', function() {
+ client.write(b, function() {
cbcount++;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.