<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Non-blocking client with blocking server error -223]]></title>
		<link>https://www.wolfssl.com/forums/topic465-nonblocking-client-with-blocking-server-error-223.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic465.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Non-blocking client with blocking server error -223.]]></description>
		<lastBuildDate>Thu, 05 Dec 2013 17:39:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Non-blocking client with blocking server error -223]]></title>
			<link>https://www.wolfssl.com/forums/post1468.html#p1468</link>
			<description><![CDATA[<p>Hi Raphael,</p><p>What you&#039;re seeing using nonblocking I/O is expected behavior when the underlying I/O would block.&nbsp; From the API document for wolfSSL_accept(), found here: <a href="http://www.yassl.com/yaSSL/Docs-cyassl-manual-17-8-cyassl-api-connection-session-io.html">http://www.yassl.com/yaSSL/Docs-cyassl- … on-io.html</a>:</p><div class="quotebox"><blockquote><p>wolfSSL_accept() works with both blocking and non-blocking I/O.&nbsp; When the underlying I/O is non-blocking, wolfSSL_accept() will return when the underlying I/O could not satisfy the needs of of wolfSSL_accept to continue the handshake.&nbsp; In this case, a call to wolfSSL_get_error() will yield either SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE.&nbsp; The calling process must then repeat the call to wolfSSL_accept when data is available to read and wolfSSL will pick up where it left off.</p></blockquote></div><p>As an example, you can look at how ./examples/server/server.c handles non-blocking I/O with NonBlockingSSL_Accept() using wolfSSL embedded SSL.</p><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Thu, 05 Dec 2013 17:39:45 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1468.html#p1468</guid>
		</item>
		<item>
			<title><![CDATA[Non-blocking client with blocking server error -223]]></title>
			<link>https://www.wolfssl.com/forums/post1467.html#p1467</link>
			<description><![CDATA[<p>Hi~</p><p>Previous, I used wolfssl-2.2.2 for supporting TLS with blocking IO. But exceptionally Infinite loop occurs in trying to <br />wolfssl_connect()</p><p>#0 0x1007e454 in DoApplicationData ()<br />No symbol table info available.<br />0000001 0x1007faac in ProcessReply ()<br />No symbol table info available.<br />0000002 0x10069ba4 in WolfSSL_connect ()<br />No symbol table info available.</p><p>Not to escape wolfssl_connect(). I don&#039;t know why it occurs and method for resolving it.</p><p>I upgraded lib to latest release version(2.8.0) also used nonblocking IO only to client-side based on example/client/client.c for handling problem but I see an error (-223 which means WANT_READ) in ssl_accept() after swching to nonblocking IO.</p><p>I attached snapshot to both client and server-side when wolfssl-debugging-on.</p><p>Please let me know method for solving it. </p><p>Thank you for reading it.</p><br /><p>Thanks, <br />Raphael</p>]]></description>
			<author><![CDATA[null@example.com (raphaell)]]></author>
			<pubDate>Thu, 05 Dec 2013 14:24:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1467.html#p1467</guid>
		</item>
	</channel>
</rss>
