()
| 101 | |
| 102 | // Simulate renegotiation attack |
| 103 | function spam() { |
| 104 | client.renegotiate({}, common.mustCallAtLeast((err) => { |
| 105 | assert.ifError(err); |
| 106 | assert.ok(renegs <= tls.CLIENT_RENEG_LIMIT); |
| 107 | setImmediate(spam); |
| 108 | }, 0)); |
| 109 | renegs++; |
| 110 | } |
| 111 | })); |
| 112 | |
| 113 | })); |