Skip to content

Instantly share code, notes, and snippets.

@donaldh
Last active December 22, 2015 00:48
Show Gist options
  • Save donaldh/6391827 to your computer and use it in GitHub Desktop.
Save donaldh/6391827 to your computer and use it in GitHub Desktop.
A very unscientific socket test.
#! nqp
nqp::readlineintfh(nqp::getstdin(), 'ready?> ');
my $i := 0;
while $i < 100 {
my $fd := nqp::socket();
nqp::connect($fd, 'localhost', 8080);
nqp::sayfh($fd, 'GET /CREDITS HTTP/1.1');
nqp::sayfh($fd, '');
nqp::readallfh($fd);
nqp::closefh($fd);
$i := $i + 1;
}
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:55] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [30/Aug/2013 17:31:56] "GET /CREDITS HTTP/1.1" 200 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment