mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
c51ce3387f
- [API Change] Sendfile-like functionality is gone. The stream no longer opens files and deals with file descriptors. (Among other things, this makes the code more portable.) Three writing functions are provided: lsquic_stream_write lsquic_stream_writev lsquic_stream_writef (NEW) lsquic_stream_writef() is given an abstract reader that has function pointers for size() and read() functions which the user can implement. This is the most flexible way. lsquic_stream_write() and lsquic_stream_writev() are now both implemented as wrappers around lsquic_stream_writef(). - [OPTIMIZATION] When writing to stream, be it within or without the on_write() callback, place data directly into packet buffer, bypassing auxiliary data structures. This reduces amount of memory required, for the amount of data that can be written is limited by the congestion window. To support writes outside the on_write() callback, we keep N outgoing packet buffers per connection which can be written to by any stream. One half of these are reserved for the highest priority stream(s), the other half for all other streams. This way, low-priority streams cannot write instead of high-priority streams and, on the other hand, low-priority streams get a chance to send their packets out. The algorithm is as follows: - When user writes to stream outside of the callback: - If this is the highest priority stream, place it onto the reserved N/2 queue or fail. (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- rather than N/2, allowing high-priority streams to write as much as can be sent.) - If the stream is not the highest priority, try to place the data onto the reserved N/2 queue or fail. - When tick occurs *and* more packets can be scheduled: - Transfer packets from the high N/2 queue to the scheduled queue. - If more scheduling is allowed: - Call on_write callbacks for highest-priority streams, placing resulting packets directly onto the scheduled queue. - If more scheduling is allowed: - Transfer packets from the low N/2 queue to the scheduled queue. - If more scheduling is allowed: - Call on_write callbacks for non-highest-priority streams, placing resulting packets directly onto the scheduled queue The number N is currently 20, but it could be varied based on resource usage. - If stream is created due to incoming headers, make headers readable from on_new. - Outgoing packets are no longer marked non-writeable to prevent placing more than one STREAM frame from the same stream into a single packet. This property is maintained via code flow and an explicit check. Packets for stream data are allocated using a special function. - STREAM frame elision is cheaper, as we only perform it if a reset stream has outgoing packets referencing it. - lsquic_packet_out_t is smaller, as stream_rec elements are now inside a union.
178 lines
7.5 KiB
HTML
178 lines
7.5 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>LiteSpeed QUIC Library: Data Fields</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">LiteSpeed QUIC Library
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
|
|
<li class="current"><a href="functions.html"><span>Data Fields</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow3" class="tabs2">
|
|
<ul class="tablist">
|
|
<li class="current"><a href="functions.html"><span>All</span></a></li>
|
|
<li><a href="functions_vars.html"><span>Variables</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="contents">
|
|
<div class="textblock">Here is a list of all documented struct and union fields with links to the struct/union documentation for each field:</div><ul>
|
|
<li>ea_pmi
|
|
: <a class="el" href="structlsquic__engine__api.html#ab1c6af0c63f81cfa0c9ed6d6952b5482">lsquic_engine_api</a>
|
|
</li>
|
|
<li>es_cfcw
|
|
: <a class="el" href="structlsquic__engine__settings.html#a2931ff6b1bc06429379debcc2c5cc5fa">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_handshake_to
|
|
: <a class="el" href="structlsquic__engine__settings.html#aeaef9bb4ecadb340cd05cfb85a6901a5">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_honor_prst
|
|
: <a class="el" href="structlsquic__engine__settings.html#ac5a3d759dcdf8915a98cbc3dd56d5f22">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_idle_conn_to
|
|
: <a class="el" href="structlsquic__engine__settings.html#a4ba2bd3e85b8b4d0d929e31d675554e2">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_max_cfcw
|
|
: <a class="el" href="structlsquic__engine__settings.html#a7297980e558cd2deafb955534520934b">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_max_header_list_size
|
|
: <a class="el" href="structlsquic__engine__settings.html#ab7b7eb8ab17eb47b8ea69d8ee8ef4a5b">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_max_streams_in
|
|
: <a class="el" href="structlsquic__engine__settings.html#ab6848de0e8025b08398ba43445de7405">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_pace_packets
|
|
: <a class="el" href="structlsquic__engine__settings.html#a90403ce7cbb10f9ddf438cfc1bd62530">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_pendrw_check
|
|
: <a class="el" href="structlsquic__engine__settings.html#a9baca38fb49c0028941a54de17a3580a">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_proc_time_thresh
|
|
: <a class="el" href="structlsquic__engine__settings.html#aaa9758b94c763b457c4a6ccc4f1e8100">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_progress_check
|
|
: <a class="el" href="structlsquic__engine__settings.html#a85a83ab74a018c293f83d9b78a797d8e">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_rw_once
|
|
: <a class="el" href="structlsquic__engine__settings.html#a59907a4c1080bd6eb5c5c7776b968af4">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_sfcw
|
|
: <a class="el" href="structlsquic__engine__settings.html#ac88c5a68eac5f324a1b1524a962be26d">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_silent_close
|
|
: <a class="el" href="structlsquic__engine__settings.html#aebf95d077a1a0de005b2ddac5afdfdc4">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_support_nstp
|
|
: <a class="el" href="structlsquic__engine__settings.html#addfa7e19884a81f50ca4d573b9aa16a3">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_support_push
|
|
: <a class="el" href="structlsquic__engine__settings.html#a8b68eb068b40eb24e5e08cab097f077a">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_support_srej
|
|
: <a class="el" href="structlsquic__engine__settings.html#adfd0c61d3243d85d3676876ca67e6466">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_support_tcid0
|
|
: <a class="el" href="structlsquic__engine__settings.html#a1570dc65c3b4d097987f08ade3cfd993">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_ua
|
|
: <a class="el" href="structlsquic__engine__settings.html#a578718dc886cffa23e97fa11fb26138b">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>es_versions
|
|
: <a class="el" href="structlsquic__engine__settings.html#a9dca1ee29ab43ca9454b6b0a8d5e2799">lsquic_engine_settings</a>
|
|
</li>
|
|
<li>lsqr_read
|
|
: <a class="el" href="structlsquic__reader.html#ae6a68ebf2a1fb77160b0bac599d42790">lsquic_reader</a>
|
|
</li>
|
|
<li>lsqr_size
|
|
: <a class="el" href="structlsquic__reader.html#aaf6c91ecaf35ca6faa39dde9ea401f17">lsquic_reader</a>
|
|
</li>
|
|
<li>on_goaway_received
|
|
: <a class="el" href="structlsquic__stream__if.html#afdab3bce65931517452d2ddd979596d7">lsquic_stream_if</a>
|
|
</li>
|
|
<li>on_new_conn
|
|
: <a class="el" href="structlsquic__stream__if.html#a1eb8c7575d67c7b1c75c472288751adb">lsquic_stream_if</a>
|
|
</li>
|
|
<li>on_new_stream
|
|
: <a class="el" href="structlsquic__stream__if.html#aa9c28eae8f3bd33d028578e0aef24402">lsquic_stream_if</a>
|
|
</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.11
|
|
</small></address>
|
|
</body>
|
|
</html>
|