<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WebServer and running code parallel]]></title><description><![CDATA[<p dir="auto">Hi folks</p>
<p dir="auto">I have implemented a tiny WebServer in Python.</p>
<p dir="auto">This code fragment is receiving any request to the m5stack device.</p>
<p dir="auto">conn, addr = s.accept()<br />
request = conn.recv(1024)<br />
request = str(request)</p>
<p dir="auto">Now I have the problem, that the code "conn.recv()" ist waiting for request, but no other code is executing in the meantime.<br />
Does anyone know a trick to run code in "parallel", while conn.recv() is waiting for any request?</p>
<p dir="auto">Thanks very much for help :-)<br />
Thomas</p>
]]></description><link>https://community.m5stack.com/topic/1704/webserver-and-running-code-parallel</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 17:48:33 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1704.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Feb 2020 14:42:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WebServer and running code parallel on Sun, 23 Feb 2020 08:31:27 GMT]]></title><description><![CDATA[<p dir="auto">look also here:</p>
<p dir="auto"><a href="http://community.m5stack.com/topic/1722/tiny-webserver-crashes-after-some-hours" target="_blank" rel="noopener noreferrer nofollow ugc">http://community.m5stack.com/topic/1722/tiny-webserver-crashes-after-some-hours</a></p>
]]></description><link>https://community.m5stack.com/post/7536</link><guid isPermaLink="true">https://community.m5stack.com/post/7536</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sun, 23 Feb 2020 08:31:27 GMT</pubDate></item><item><title><![CDATA[Reply to WebServer and running code parallel on Sun, 16 Feb 2020 17:54:43 GMT]]></title><description><![CDATA[<p dir="auto">I've got it.</p>
<p dir="auto">I can start new threads with:</p>
<p dir="auto">import _thread as th<br />
th.start_new_thread(....)</p>
<p dir="auto">Cool stuff :-)</p>
]]></description><link>https://community.m5stack.com/post/7437</link><guid isPermaLink="true">https://community.m5stack.com/post/7437</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sun, 16 Feb 2020 17:54:43 GMT</pubDate></item></channel></rss>