<?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>DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115149/dtls-coap-client-not-receiving-close-notify-alert</link><description>I am running CoAP client with DTLS enabled on an nRF9161dk. 
 I poll socket using this code: 
 
 I am able to receive data (POLLIN), but when server closes session and sends close_notify, I am not able to receive POLLHUP. 
 
 I&amp;#39;ve tried nRF SDK 2.6.1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2024 10:26:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115149/dtls-coap-client-not-receiving-close-notify-alert" /><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/505698?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 10:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6ec5c41-a0e0-4425-9aa6-459c3f5a1b2d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Okay, it&amp;#39;s hard to proceed without having more information. Can you post the application log and a full modem trace (.bin or .mtrace file)? Also, it would be really helpful if you could provide the complete setup to reproduce the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/505688?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 09:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd235a95-774a-4dfb-8945-54bea8019fb7</guid><dc:creator>Povilas S</dc:creator><description>&lt;p&gt;I don&amp;#39;t, and correct me if I am wrong, but the logs you&amp;#39;ve posted are from CoAP sample and lib? How would it help? The code I&amp;#39;ve posted is polling socket directly, it is not using any CoAP abstraction for it, only when there is data received from the socket that it gets then parsed using CoAP lib. Am I missing something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/505681?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 09:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67385e65-c918-450c-9ac6-470794945646</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;That is kinda strange. You don&amp;#39;t get something like this?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1728551150014v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/505615?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 15:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39b1fc9f-20b5-4165-b1ff-dbde4b2ce750</guid><dc:creator>Povilas S</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any new info coming after enabling these.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/505379?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 13:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b361e1-59b8-491e-baf3-29250f0a83e1</guid><dc:creator>Hakon</dc:creator><description>[quote user="Povilas S"]Nothing much to show from log, since data is missing. [/quote]
&lt;p&gt;you can try to enable&lt;/p&gt;
&lt;p&gt;CONFIG_COAP_LOG_LEVEL_DBG=y&lt;br /&gt;CONFIG_NET_LOG=y&lt;/p&gt;
&lt;p&gt;That will provide more detailed log output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/504722?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 14:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4abb746-797c-4c5d-86f9-bcbea84f2372</guid><dc:creator>Povilas S</dc:creator><description>&lt;p&gt;Nothing much to show from log, since data is missing. As I have mentioned, POLLIN arrives and I am able to call recv() after that. But I am not receiving any of the other &amp;quot;events&amp;quot;. Nothing much to add, wireshark shows that close_alert arrives to the device, but it gets lost between that and poll(). &lt;br /&gt;Do you have any DTLS setup where you able to receive POLLHUP?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS (CoAP) Client not receiving Close Notify alert</title><link>https://devzone.nordicsemi.com/thread/504720?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 14:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:533828d3-2631-4990-a488-750d0ab4e0d4</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;do you have an application log from this? Can you also describe in detail what you are doing on the client side and also describe your setup in detail?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>