<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/tatsuhiro-t">Tatsuhiro Tsujikawa</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1239">#1239</a>
</p>
<div></div>
<p dir="auto">Client side early data is fixed by <a href="https://gitlab.com/gnutls/gnutls/-/issues/1216" data-original="#1216" data-link="false" data-link-reference="false" data-project="179611" data-issue="86056649" data-reference-type="issue" data-container="body" data-placement="top" title="Early data issues in QUIC use" class="gfm gfm-issue has-tooltip">#1216</a> and it works great.
For server side, if GnuTLS QUIC server receives early data indication and session ticket, it crashes at:
<a href="https://gitlab.com/gnutls/gnutls/-/blob/e899e3200ffb3d7d8958cfa7685052a66ebfbf80/lib/handshake.c#L799">https://gitlab.com/gnutls/gnutls/-/blob/e899e3200ffb3d7d8958cfa7685052a66ebfbf80/lib/handshake.c#L799</a></p>
<p dir="auto">Reproduction steps:</p>
<ol dir="auto">
<li>Build examples/gtlsserver and examples/gtlsclient from <a href="https://github.com/ngtcp2/ngtcp2/tree/gnutls-exp" rel="nofollow noreferrer noopener" target="_blank">https://github.com/ngtcp2/ngtcp2/tree/gnutls-exp</a> (which requires the latest unreleased GnuTLS).</li>
<li>Run server by <code>examples/gtlsserver 127.0.0.1 4433 /path/to/key /path/to/cert</code>
</li>
<li>Remove session.txt file if it exists.</li>
<li>Run client by <code>examples/gtlsclient 127.0.0.1 4433 https://127.0.0.1:4433 --session-file session.txt --tp-file tp.txt</code> just once.  This writes session parameters in session.txt.</li>
<li>Run client again with the same arguments above.</li>
<li>Observe server crashes.</li>
</ol>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1239">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/cb00f6ea0624687c438d60f7f9d0107b/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1239"}}</script>


</p>
</div>
</body>
</html>