Skip to content

Commit

Permalink
Add max_header_size
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Jul 13, 2016
1 parent e5cd3ca commit a49f1e1
Show file tree
Hide file tree
Showing 8 changed files with 876 additions and 766 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ grunt lint

- `{Integer} [max_open]` Maximum number of multiplexed streams that can be open at a time. Defaults to 0 (no maximum).

- `{Integer} [max_header_size]` `BPMux` adds a control header to each message it sends, which the receiver reads into memory. The header is of variable length — for example, handshake messages contain handshake data which can be supplied by the application. `max_header_size` is the maximum number of header bytes to read into memory. If a larger header is received, `BPMux` emits an `error` event. Defaults to 0 (no limit).

<sub>Go: [TOC](#tableofcontents)</sub>

<a name="bpmuxprototype"></a>
Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions coverage/lcov-report/bpmux/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ <h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>319/319</span>
<span class='fraction'>323/323</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>150/150</span>
<span class='fraction'>160/160</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
Expand All @@ -37,7 +37,7 @@ <h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>311/311</span>
<span class='fraction'>315/315</span>
</div>
</div>
</div>
Expand All @@ -62,13 +62,13 @@ <h1>
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="319" class="abs high">319/319</td>
<td data-value="323" class="abs high">323/323</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="150" class="abs high">150/150</td>
<td data-value="160" class="abs high">160/160</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="34" class="abs high">34/34</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="311" class="abs high">311/311</td>
<td data-value="315" class="abs high">315/315</td>
</tr>

</tbody>
Expand All @@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Jul 13 2016 07:52:44 GMT+0100 (BST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Jul 13 2016 09:25:22 GMT+0100 (BST)
</div>
</div>
<script src="../prettify.js"></script>
Expand Down
535 changes: 293 additions & 242 deletions coverage/lcov-report/bpmux/index.js.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ <h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>319/319</span>
<span class='fraction'>323/323</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>150/150</span>
<span class='fraction'>160/160</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
Expand All @@ -37,7 +37,7 @@ <h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>311/311</span>
<span class='fraction'>315/315</span>
</div>
</div>
</div>
Expand All @@ -62,13 +62,13 @@ <h1>
<td class="file high" data-value="bpmux/"><a href="bpmux/index.html">bpmux/</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="319" class="abs high">319/319</td>
<td data-value="323" class="abs high">323/323</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="150" class="abs high">150/150</td>
<td data-value="160" class="abs high">160/160</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="34" class="abs high">34/34</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="311" class="abs high">311/311</td>
<td data-value="315" class="abs high">315/315</td>
</tr>

</tbody>
Expand All @@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Jul 13 2016 07:52:44 GMT+0100 (BST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Jul 13 2016 09:25:22 GMT+0100 (BST)
</div>
</div>
<script src="prettify.js"></script>
Expand Down

0 comments on commit a49f1e1

Please sign in to comment.