aboutgitcodebugslistschat
path: root/iov.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-02-19 18:56:51 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-02-27 12:53:30 +0100
commite5e6f2945977f551ec6958df7ab1892086551896 (patch)
tree4148843fbcec2ff31bc1afb422f52f86578c7667 /iov.h
parentfe27ebce5c59c7fc684c5affa6ce27fdc32d362d (diff)
downloadpasst-e5e6f2945977f551ec6958df7ab1892086551896.tar
passt-e5e6f2945977f551ec6958df7ab1892086551896.tar.gz
passt-e5e6f2945977f551ec6958df7ab1892086551896.tar.bz2
passt-e5e6f2945977f551ec6958df7ab1892086551896.tar.lz
passt-e5e6f2945977f551ec6958df7ab1892086551896.tar.xz
passt-e5e6f2945977f551ec6958df7ab1892086551896.tar.zst
passt-e5e6f2945977f551ec6958df7ab1892086551896.zip
tcp: Don't store errnos in socket pool
If tcp_sock_refill_pool() gets an error opening new sockets, it stores the negative errno of that error in the socket pool. This isn't especially useful: * It's inconsistent with the initial state of the pool (all -1) * It's inconsistent with the state of an entry that was valid and was then consumed (also -1) * By the time we did anything with this error code, it's now far removed from the situation in which the error occurred, making it difficult to report usefully We now have error reporting closer to when failures happen on the refill paths, so just leave a pool slot we can't fill as -1. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'iov.h')
0 files changed, 0 insertions, 0 deletions