9160 http nonblocking mode
Opened this issue · 2 comments
faithlm commented
Hi,
I have seen your htttp samples, as I see it is working with blocking mode,and I try to find the nrf91_sockets.c to find a non blockling mode api but failed.
Could you please give some advise for non blocking http api ?
Thank you .
Rallare commented
The timeout / blocking mode on socket calls depend on the function bsd_os.c::bsd_os_timedwait(), and it has recently been properly implemented (see https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/bsdlib/bsd_os.c#L172). I'll keep my homebrew functions for backwards compatibility, but you should be able to run them non-blocking with a timeout now (I haven't tested yet myself), or setup your application using poll().