]> git.ozlabs.org Git - ccan/commit
io: add new io_sock_shutdown helper.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Jan 2022 02:36:34 +0000 (13:06 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Jan 2022 05:53:12 +0000 (16:23 +1030)
commit609670cc6a5fc9ba819cacca251cde1709c053d6
tree457ed7191d077fe485a1d7e6b169a2495b461570
parentb15b3673bf0fbbff48b87bddcf402b8bcdf41c59
io: add new io_sock_shutdown helper.

Turns out that there's no good way to flush a socket:

https://blog.netherlabs.nl/articles/2009/01/18/the-ultimate-so_linger-page-or-why-is-my-tcp-not-reliable

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/io.c
ccan/io/io.h