[riot-commits] [RIOT-OS/RIOT] c78763: posix: sockets: Implement SO_RCVTIMEO option in se...

Martine Lenders authmillenon at gmail.com
Tue Mar 28 21:19:40 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c787638696202173de5f46f841c8f3046172a84b
      https://github.com/RIOT-OS/RIOT/commit/c787638696202173de5f46f841c8f3046172a84b
  Author: Francois Berder <francois.berder at imgtec.com>
  Date:   2017-03-23 (Thu, 23 Mar 2017)

  Changed paths:
    M sys/posix/include/sys/socket.h
    M sys/posix/sockets/posix_sockets.c

  Log Message:
  -----------
  posix: sockets: Implement SO_RCVTIMEO option in setsockopt

AwaLWM2M needs to be polled regularly to check for incoming data.
Since RIOT only supports timeout at the GNRC sock layer while
the network abstraction for RIOT in AwaLWM2M uses the posix layer,
this causes RIOT to be blocked waiting for data that never arrive.

This commit implements only the SO_RCVTIMEO option in setsockopt to
allow users to set a receive timeout for a socket at the posix layer.

Signed-off-by: Francois Berder <francois.berder at imgtec.com>


  Commit: dc28e265cd79ea23bc1eeae97e7f73ca22dfba5a
      https://github.com/RIOT-OS/RIOT/commit/dc28e265cd79ea23bc1eeae97e7f73ca22dfba5a
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2017-03-28 (Tue, 28 Mar 2017)

  Changed paths:
    M sys/posix/include/sys/socket.h
    M sys/posix/sockets/posix_sockets.c

  Log Message:
  -----------
  Merge pull request #6771 from francois-berder-imgtec/rcv-timeout

posix: sockets: Implement SO_RCVTIMEO option in setsockopt


Compare: https://github.com/RIOT-OS/RIOT/compare/cc151522eb42...dc28e265cd79


More information about the commits mailing list