mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 09:44:08 +00:00

The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
33 lines
676 B
JavaScript
33 lines
676 B
JavaScript
// Failing test for https
|
|
|
|
// Will fail with "socket hang up" for 4 out of 10 requests
|
|
// Tested on node 0.5.0-pre commit 9851574
|
|
|
|
|
|
var common = require('../common');
|
|
var https = require('https');
|
|
|
|
for (var i = 0; i < 10; ++i)
|
|
{
|
|
https.get(
|
|
{
|
|
host: 'www.google.com',
|
|
path: '/accounts/o8/id',
|
|
port: 443
|
|
}, function(res)
|
|
{
|
|
var data = '';
|
|
res.on('data', function(chunk)
|
|
{
|
|
data += chunk;
|
|
});
|
|
res.on('end', function()
|
|
{
|
|
console.log(res.statusCode);
|
|
});
|
|
}).on('error', function(error)
|
|
{
|
|
console.log(error);
|
|
});
|
|
}
|