(origins)
| 717 | } |
| 718 | |
| 719 | function onOrigin(origins) { |
| 720 | const session = this[kOwner]; |
| 721 | if (session.destroyed) |
| 722 | return; |
| 723 | debugSessionObj(session, 'origin received: %j', origins); |
| 724 | session[kUpdateTimer](); |
| 725 | if (!session.encrypted || session.destroyed) |
| 726 | return undefined; |
| 727 | const originSet = initOriginSet(session); |
| 728 | for (let n = 0; n < origins.length; n++) { |
| 729 | if (originSet.size >= session[kMaxOriginSetSize]) { |
| 730 | session.destroy(new ERR_HTTP2_TOO_MANY_ORIGINS(session[kMaxOriginSetSize])); |
| 731 | return; |
| 732 | } |
| 733 | originSet.add(origins[n]); |
| 734 | } |
| 735 | session.emit('origin', origins); |
| 736 | } |
| 737 | |
| 738 | // Receiving a GOAWAY frame from the connected peer is a signal that no |
| 739 | // new streams should be created. If the code === NGHTTP2_NO_ERROR, we |
nothing calls this directly
no test coverage detected
searching dependent graphs…