<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Francis, I forgot to mention that timing is critical so if possible, I'd like to hire you as soon as you would be available.  Even if you only have an hour, I'd take it!</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Bill Goetz <bgoetz@store-intelligence.com><br>
<b>Sent:</b> Friday, September 18, 2020 5:50 PM<br>
<b>To:</b> francis.brosnan@aspl.es <francis.brosnan@aspl.es><br>
<b>Cc:</b> nopoll@lists.aspl.es <nopoll@lists.aspl.es>; David Wetle <dwetle@store-intelligence.com><br>
<b>Subject:</b> Re: [noPoll] nopoll_conn_read_pending doesn't seem to be working</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello Francis,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I was wondering if we could possibly hire you for just an hour or two to do essentially a code review of how I'm using your library.  We are trying to get out this big release but the only thing that is holding us back right now is an issue I'm having with
 a continual crash in the nopoll library.  I think that if I could just explain to you how I'm using your library you could provide me with some good pointers.  </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
We're in a huge bind with this, so any help would be greatly appreciated.  Any help would be greatly appreciated.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
You can check out our website <a href="http://www.store-intelligence.com" id="LPlnk281992">
www.store-intelligence.com</a> to see what we do.  I use your library to connect to network software running in the cloud.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Much thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bill Goetz</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Bill Goetz <bgoetz@store-intelligence.com><br>
<b>Sent:</b> Monday, September 14, 2020 8:30 PM<br>
<b>To:</b> francis.brosnan@aspl.es <francis.brosnan@aspl.es><br>
<b>Cc:</b> nopoll@lists.aspl.es <nopoll@lists.aspl.es><br>
<b>Subject:</b> Re: [noPoll] nopoll_conn_read_pending doesn't seem to be working</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello Francis,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have a hopefully quick question for you (or anyone else on this email thread if anyone is interested in replying).  I have an application running on an embedded Linux Access Point that is crashing inside of nopoll_read().  Once thing I found was that it is
 always crashing at the SAME TIME that another Access Point has just SCP'ed a file to THIS Access Point using Dropbear.  Both this application as well as Dropbear are using OpenSSL library version 1.1.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Even though Dropbear and the AP's firmware are using completely different sockets and shouldn't interfere with one another, it seems that's what is happening.  BTW, the scp from the other AP DOES go through and Dropbear finishes completely.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">ANY suggestions on how I should go about figuring out what's going on?</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Sep 14 22:32:30 aap001067 authpriv.info dropbear[4802]: Child connection from 172.20.40.62:38430
<div>Sep 14 22:32:31 aap001067 local5.info aap[989]: Locally roaming tag records: 2</div>
<div>Sep 14 22:32:35 aap001067 local5.info aap[989]: Locally roaming tag records: 2</div>
<div>Sep 14 22:32:35 aap001067 authpriv.notice dropbear[4802]: Pubkey auth succeeded for 'root' with key md5 b4:3b:c2:73:2c:dd:a4:cb:46:36:9c:9b:fc:ae:0f:95 from 172.20.40.62:38430</div>
<div>Sep 14 22:32:36 aap001067 authpriv.info dropbear[4802]: Exit (root): Exited normally</div>
<div>Sep 14 22:32:36 aap001067 user.warn kernel: Alignment trap: aap_bin (1037) PC=0x000446c4 Instr=0xe5823000 Address=0xfffffffe FSR 0x801</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: Got signal 11</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] Execution path:</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] /lib/libc.so.6(__default_sa_restorer_v2+0) [0x40446610]</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] ./aap_bin [0x446c4] - 0x0004457c                __nopoll_conn_receive</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] ./aap_bin [0x46528] - 0x00046104                nopoll_conn_get_msg</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] ./aap_bin [0x47540] - 0x000472cc                nopoll_conn_read</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] ./aap_bin [0x1c3f8] - 0x0001c2c0                ASG::ASGReadThread::ReadAll(unsigned char*, unsigned long, unsigned long*)</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] ./aap_bin [0x1d930] - 0x0001d89c                ASG::ASGReadThread::_threadFunc(void*)</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] /lib/libpthread.so.0 [0x400fe5f4]</div>
<div>Sep 14 22:32:36 aap001067 local5.notice aap[989]: [bt] /lib/libc.so.6(clone+0x88) [0x404de368]</div>
<div>root@aap001067:~#</div>
<br>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Much thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bill</div>
<div>
<div id="x_x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Francis Brosnan Blázquez <francis.brosnan@aspl.es><br>
<b>Sent:</b> Sunday, August 23, 2020 11:34 PM<br>
<b>To:</b> Bill Goetz <bgoetz@store-intelligence.com><br>
<b>Cc:</b> nopoll@lists.aspl.es <nopoll@lists.aspl.es><br>
<b>Subject:</b> Re: [noPoll] nopoll_conn_read_pending doesn't seem to be working</font>
<div> </div>
</div>
<div dir="ltr" style="text-align:left; direction:ltr">
<div>Hello Bill,</div>
<div><br>
</div>
<div>Thanks for using noPoll. It is great to see it is useful.</div>
<div><br>
</div>
<div>About your question, we have to strengthen <b>nopoll_conn_read_pending</b> documentation to reflect</div>
<div>how to use it (expected way of working).</div>
<div><br>
</div>
<div>It is a function designed to be used *after* you call to <b>nopoll_conn_read</b> so you can get quick</div>
<div>indication if there are pending data that can be consumed, especially, when you are doing async I/O,</div>
<div>so you can do another nopoll_conn_read without blocking and getting data.</div>
<div><br>
</div>
<div>Here you have an example of a library using nopoll_conn_read in combination with nopoll_conn_read_pending:</div>
<div><br>
</div>
<div><a href="https://github.com/ASPLes/libvortex-1.1/blob/master/web-socket/vortex_websocket.c#L404">https://github.com/ASPLes/libvortex-1.1/blob/master/web-socket/vortex_websocket.c#L404</a></div>
<div><br>
</div>
<div>Best Regards,</div>
<div><br>
</div>
<div>El vie, 21-08-2020 a las 19:20 +0000, Bill Goetz escribió:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid; padding-left:1ex">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
So I'm using your nopoll WebSocket library, which I think is really solid!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am having a problem though with nopoll_conn_read_pending() not returning anything > 0. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Here's a small code snip-it.  It's never getting to either of the printf's after the nopoll_conn_read_pending() call.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I also know that the server this code is connected to IS writing data on this socket because if I comment out the call to nopoll_conn_read_pending(),  data IS read during the nopoll_conn_read() call.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
ANY help would be greatly appreciated!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
printf("before nopoll_conn_read_pending\n");
<div></div>
<div>while ( 1 ) {</div>
<div>     // printf("inside while before nopoll_conn_read_pending\n");</div>
<div>     retStatus = nopoll_conn_read_pending (g_pWebConn);</div>
<div>     if (retStatus > 0) {</div>
<div>          printf("AHA! retStatus = %d\n", retStatus);</div>
<div>          break;</div>
<div>     }</div>
<div>}</div>
<div><br>
</div>
<div>printf("after nopoll_conn_read_pending retStatus = %d\n", retStatus);</div>
<div><br>
</div>
if ( retStatus > 0 ) {
<div>     n_read_int = nopoll_conn_read (g_pWebConn, (char *)(buf + n_read_sum), n_to_read, nopoll_false, 1000);</div>
<div>} else n_read_int = retStatus;</div>
<br>
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bill Goetz</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<pre>_______________________________________________</pre>
<pre>noPoll mailing list</pre>
<pre><a href="mailto:noPoll@lists.aspl.es">noPoll@lists.aspl.es</a></pre>
<pre><a href="http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll">http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll</a></pre>
<pre><br></pre>
</blockquote>
<div><span>
<pre><pre>-- <br></pre>Francis Brosnan Blázquez  -  ASPL
https://asplhosting.com/
https://myqtthub.com
http://www.aspl.es/
https://twitter.com/aspl_es
https://twitter.com/asplhosting
https://twitter.com/francisbrosnanb
https://es.linkedin.com/in/francis-brosnan-blázquez-1353a218

91 134 14 22 - 91 134 14 45 - 91 116 07 57
Av. Juan Carlos I 13, 2ºC, Torre Garena
28806 - Alcalá de Henares (España)

AVISO LEGAL
 
En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL).
 
ASPL garantiza que los datos serán tratados con la finalidad de mantener
las oportunas relaciones comerciales o promocionales con usted o la
entidad que usted representa. No obstante, usted puede ejercitar sus
derechos de acceso, rectificación, cancelación y oposición dispuestos en
la mencionada Ley Orgánica, notificándolo por escrito a ASPL -
Protección Datos, Av. Juan Carlos I 13, 2ºC, Alcalá de Henares
(Madrid).

</pre>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>