<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61156/poll-with-pollin-not-set-still-getting-hit</link><description>I&amp;#39;m trying to wait on a single POLLIN event on a net socket, but I&amp;#39;m finding that poll() will still return immediately with the POLLIN event even if it&amp;#39;s not set in the struct pollfd.event bitfield. It&amp;#39;ll keep doing this, too, until someone uses recv</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 May 2020 08:18:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61156/poll-with-pollin-not-set-still-getting-hit" /><item><title>RE: poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/thread/249851?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 08:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7e441bd-b2e3-4738-b342-7f28c8b6b263</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I tried with the serial modem sample and ran the same at command sequence as you, and the modem seemed to be unresponsive after. I also found out that this could be related to a bug that has already been reported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/thread/249574?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 19:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb7dbf4d-7474-4125-a06e-d2658f23fb3c</guid><dc:creator>erik.johnson</dc:creator><description>&lt;p&gt;*sigh* It looks like it&amp;#39;s probably because of a dumb mistake I made in my code. I think can probably be closed (which I&amp;#39;ll do when I confirm this is the case).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/thread/249523?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 14:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf829bf-b486-4ebb-9eec-571c00a9ef19</guid><dc:creator>erik.johnson</dc:creator><description>&lt;p&gt;Our code isn&amp;#39;t really in a form where I can give you a simple snippet to run on your own, but I guess I could try putting together an example. It should be pretty straightforward to do yourself, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/thread/249505?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 13:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2b31cb-9128-43e6-9da0-799fa7c7164a</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;do you have any code so I can reproduce the issue? It could be a bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/thread/248817?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 20:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfbf2da7-acbe-4800-9854-8fd1f69816b2</guid><dc:creator>erik.johnson</dc:creator><description>&lt;p&gt;Actually, I take part of that back: the POLLIN bit appears to remain active even after reading in all of the data (allowed 576 bytes, read 368). It looks like revents isn&amp;#39;t cleared by the poll() call, which is why it looked like the bit was continuing to be set. When I manually clear it between each poll() call, the bit doesn&amp;#39;t show up the next time poll() exits, but poll() does still exit each time, which to me implies *something* is getting permanently stuck somewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: poll() with POLLIN not set still getting hit</title><link>https://devzone.nordicsemi.com/thread/248808?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 18:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd659ce-4459-4d47-810f-ca057b6b1025</guid><dc:creator>erik.johnson</dc:creator><description>&lt;p&gt;Sorry, didn&amp;#39;t include that we&amp;#39;re using version 1.1.1 of the firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>