Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 12 lines (9 sloc) 0.269 kB
3fde5e0 @rphillips timer improvements
rphillips authored
1 require("helper")
2 local net = require('net')
3
e886d09 tests: test-socket-timeout: use luvit.io
Brandon Philips authored
4 local client = net.create(4343, 'luvit.io')
3fde5e0 @rphillips timer improvements
rphillips authored
5 client:setTimeout(250)
6 client:on('timeout', function()
f0baa30 lib: net: make streams use destroy() instead of close()
Brandon Philips authored
7 client:destroy()
3fde5e0 @rphillips timer improvements
rphillips authored
8 end)
1c1f2bd @rphillips fix windows
rphillips authored
9
10 -- windows emits an error because of a interrupted system call
11 process:on('error', function() end)
Something went wrong with that request. Please try again.