[SCM] lwIP - A Lightweight TCPIP stack branch, master, updated. master_at_STABLE-2_0_0-1387-g71c13c6

[email protected] (Simon Goldschmidt)
Newsgroups gmane.network.lwip.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "lwIP - A Lightweight TCPIP stack".

The branch, master has been updated
       via  71c13c60791a3bc69a3211ba9f991a65e56b5049 (commit)
       via  3abc8ae1612878ea35b3c0a50ced55d867528dfc (commit)
       via  41fea4ad7dc68c844083883aac229576f46f3106 (commit)
       via  1090e9cdecd7ccf033293ec60212f3b1713d0b59 (commit)
      from  b1fe8cf4b8bf0bb1f9f978ff58a50568b95138a1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 71c13c60791a3bc69a3211ba9f991a65e56b5049
Author: goldsimon <[email protected]>
Date:   Wed Apr 18 22:03:11 2018 +0200

    Improve the socket stress test to better test fullduplex

commit 3abc8ae1612878ea35b3c0a50ced55d867528dfc
Author: goldsimon <[email protected]>
Date:   Wed Apr 18 21:51:34 2018 +0200

    LWIP_NETCONN_FULLDUPLEX: unblock rx threads on close
    
    Threads blocked on the rx mbox are counted and on close,
    one "netconn closed" message per thread is posted to the mbox
    to ensure all threads are woken.
    
    The netconn can then be safely deleted. In socket API, "fd_used"
    and "fd_free_pending" help with auto-deleting the netconn.
    
    Signed-off-by: goldsimon <[email protected]>

commit 41fea4ad7dc68c844083883aac229576f46f3106
Author: goldsimon <[email protected]>
Date:   Thu Apr 12 17:19:30 2018 +0200

    sockets: change closing: netconn is freed when socket is closed, not before
    
    This is necessary to implement fullduplex sockets that are closed asynchronously:
    the netconn in the socket must not be freed before all threads have given up
    using it.
    
    We now call the first part of 'netconn_delete()' (moved to 'netconn_prepare_delete()')
    from lwip_close() and only actually end up calling 'netconn_free()' from
    'free_socket()', which might be called later if LWIP_NETCONN_FULLDUPLEX is enabled.
    
    Signed-off-by: goldsimon <[email protected]>

commit 1090e9cdecd7ccf033293ec60212f3b1713d0b59
Author: goldsimon <[email protected]>
Date:   Thu Apr 12 17:14:35 2018 +0200

    LWIP_NETCONN_FULLDUPLEX: prevent taking recursive sys arch lock
    
    Calling SYS_ARCH_PROTECT() could happen twice in 'free_socket()' if
    that free was executed delayed (e.g. in 'done_socket_locked()').
    
    Signed-off-by: goldsimon <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 src/api/api_lib.c                 |  90 +++++++++++++++++---
 src/api/api_msg.c                 | 128 ++++++++++++++++++++++-------
 src/api/sockets.c                 | 152 +++++++++++++++++++++++-----------
 src/include/lwip/api.h            |  10 +++
 src/include/lwip/priv/api_msg.h   |   3 +
 test/sockets/sockets_stresstest.c | 169 +++++++++++++++++++++++++++++++-------
 6 files changed, 436 insertions(+), 116 deletions(-)


hooks/post-receive
-- 
lwIP - A Lightweight TCPIP stack
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.