Gitiles
Code Review
Sign In
git01.mediatek.com
/
haproxy
/
ac556082e7771d61cad0907ad6b14d056b282671
/
src
/
fd.c
922a907
MINOR: fd: add a new function to only raise RLIMIT_NOFILE
by Willy Tarreau
· Thu Sep 22 16:08:47 2022 +0200
85af760
BUILD: fd: fix a build warning on the DWCAS
by Willy Tarreau
· Sat Sep 17 11:15:29 2022 +0200
e6ca435
BUG/MEDIUM: poller: use fd_delete() to release the poller pipes
by Willy Tarreau
· Wed Aug 10 17:08:17 2022 +0200
b983145
BUG/MINOR: fd: always remove late updates when freeing fd_updt[]
by Willy Tarreau
· Tue Jul 26 19:06:17 2022 +0200
c1640f7
BUG/MEDIUM: fd/threads: fix incorrect thread selection in wakeup broadcast
by Willy Tarreau
· Tue Jul 19 15:58:00 2022 +0200
cfdd20a
MEDIUM: fd: support broadcasting updates for foreign groups in updt_fd_polling
by Willy Tarreau
· Fri Jul 15 20:12:31 2022 +0200
9baff4f
MEDIUM: fd: support stopping FDs during starting
by Willy Tarreau
· Fri Jul 15 18:56:48 2022 +0200
88c4c14
MINOR: fd: add fd_reregister_all() to deal with boot-time FDs
by Willy Tarreau
· Sat Jul 09 23:19:19 2022 +0200
0b51eab
MEDIUM: fd: quit fd_update_events() when FD is closed
by Willy Tarreau
· Fri Jul 08 15:36:14 2022 +0200
ddedc16
MEDIUM: fd: make fd_insert/fd_delete atomically update fd.tgid
by Willy Tarreau
· Thu Jul 07 15:05:55 2022 +0200
27a3245
MEDIUM: fd: make fd_insert() take local thread masks
by Willy Tarreau
· Thu Jul 07 08:29:00 2022 +0200
3638d17
MEDIUM: fd: make thread_mask now represent group-local IDs
by Willy Tarreau
· Thu Jul 07 08:23:03 2022 +0200
d6e1987
MINOR: fd: make fd_clr_running() return the previous value instead
by Willy Tarreau
· Sat Jul 09 15:57:17 2022 +0200
a707d02
MEDIUM: fd/poller: turn running_mask to group-local IDs
by Willy Tarreau
· Thu Jul 07 08:16:08 2022 +0200
6d3c501
MEDIUM: fd/poller: turn update_mask to group-local IDs
by Willy Tarreau
· Tue Jul 05 19:21:06 2022 +0200
0dc1cc9
MAJOR: fd: grab the tgid before manipulating running
by Willy Tarreau
· Wed Jul 06 18:47:38 2022 +0200
9464bb1
MEDIUM: fd: add the tgid to the fd and pass it to fd_insert()
by Willy Tarreau
· Tue Jul 05 05:16:13 2022 +0200
8e2c0fa
MINOR: fd: delete unused updates on close()
by Willy Tarreau
· Wed Jul 06 16:20:11 2022 +0200
35ee710
MEDIUM: fd/poller: make the update-list per-group
by Willy Tarreau
· Fri Jul 08 11:33:43 2022 +0200
2f36d90
MAJOR: fd: remove pending updates upon real close
by Willy Tarreau
· Wed Jul 06 16:23:41 2022 +0200
b1093c6
MEDIUM: poller: program the update in fd_update_events() for a migrated FD
by Willy Tarreau
· Sat Jul 09 18:55:37 2022 +0200
4d9888c
CLEANUP: fd: get rid of the __GET_{NEXT,PREV} macros
by Willy Tarreau
· Wed Jul 06 14:43:51 2022 +0200
e7475c8
MEDIUM: tasks/fd: replace sleeping_thread_mask with a TH_FL_SLEEPING flag
by Willy Tarreau
· Mon Jun 20 09:23:24 2022 +0200
555c192
MINOR: poller: update_fd_polling: wake a random other thread
by Willy Tarreau
· Thu Jun 23 18:31:08 2022 +0200
962e5ba
MEDIUM: polling: make update_fd_polling() not care about sleeping threads
by Willy Tarreau
· Thu Jun 23 18:38:06 2022 +0200
058b2c1
MINOR: poller: centralize poll return handling
by Willy Tarreau
· Wed Jun 22 15:21:34 2022 +0200
bdcd325
MINOR: thread: only use atomic ops to touch the flags
by Willy Tarreau
· Wed Jun 22 09:19:46 2022 +0200
f3efef4
MINOR: thread: make wake_thread() take care of the sleeping threads mask
by Willy Tarreau
· Mon Jun 20 09:14:40 2022 +0200
f41a3f6
MINOR: fd: add a new FD_DISOWN flag to prevent from closing a deleted FD
by Emeric Brun
· Fri Jul 01 17:31:25 2022 +0200
9743589
BUILD: fd: disguise the fd_set_nonblock/cloexec result
by Willy Tarreau
· Wed Apr 27 10:50:00 2022 +0200
3824743
CLEANUP: tree-wide: use fd_set_nonblock() and fd_set_cloexec()
by Willy Tarreau
· Tue Apr 26 10:24:14 2022 +0200
a80e4a3
MINOR: fd: add functions to set O_NONBLOCK and FD_CLOEXEC
by Willy Tarreau
· Tue Apr 26 10:18:07 2022 +0200
acef5e2
MINOR: tree-wide: always consider EWOULDBLOCK in addition to EAGAIN
by Willy Tarreau
· Mon Apr 25 20:32:15 2022 +0200
9aa324d
DEBUG: fd: make sure we never try to insert/delete an impossible FD number
by Willy Tarreau
· Mon Jan 31 20:05:02 2022 +0100
97ea9c4
BUG/MEDIUM: fd: always align fdtab[] to 64 bytes
by Willy Tarreau
· Thu Jan 27 16:10:48 2022 +0100
3a6af1e
MINOR: fd: register the write side of the poller pipe as well
by Willy Tarreau
· Mon Jan 24 20:33:09 2022 +0100
a0b9953
REORG: thread/sched: move the thread_info flags to the thread_ctx
by Willy Tarreau
· Thu Sep 30 18:48:37 2021 +0200
b63888c
REORG: fd: uninline compute_poll_timeout()
by Willy Tarreau
· Wed Oct 06 19:55:29 2021 +0200
5d9ddc5
BUILD: tree-wide: add several missing activity.h
by Willy Tarreau
· Wed Oct 06 19:54:09 2021 +0200
87063a7
BUILD: fd: remove unused variable totlen in fd_write_frag_line()
by Willy Tarreau
· Fri Sep 17 12:00:27 2021 +0200
7b2ac29
CLEANUP: fd: remove the now unneeded fd_mig_lock
by Willy Tarreau
· Tue Aug 03 09:24:41 2021 +0200
f69fea6
MAJOR: fd: get rid of the DWCAS when setting the running_mask
by Willy Tarreau
· Tue Aug 03 09:04:32 2021 +0200
b1f29bc
MINOR: activity/fd: remove the dead_fd counter
by Willy Tarreau
· Tue Aug 03 10:59:50 2021 +0200
200bd50
MEDIUM: fd: rely more on fd_update_events() to detect changes
by Willy Tarreau
· Thu Jul 29 16:57:19 2021 +0200
84c7922
REORG: fd: uninline fd_update_events()
by Willy Tarreau
· Thu Jul 29 16:53:46 2021 +0200
c28aab0
BUILD: fd: include log.h from fd.c
by Willy Tarreau
· Sat May 08 20:35:03 2021 +0200
9eec7e2
MINOR: config: mark tune.fd.edge-triggered as experimental
by Willy Tarreau
· Sat May 08 11:06:32 2021 +0200
b2be9a1
CLEANUP: assorted typo fixes in the code and comments
by Ilya Shipitsin
· Sat Apr 24 13:25:42 2021 +0500
a1090a5
MINOR: fd: move a few read-mostly variables to their own section
by Willy Tarreau
· Sat Apr 10 16:58:13 2021 +0200
4781b15
CLEANUP: atomic/tree-wide: replace single increments/decrements with inc/dec
by Willy Tarreau
· Tue Apr 06 13:53:36 2021 +0200
1db4273
CLEANUP: atomic: add an explicit _FETCH variant for add/sub/and/or
by Willy Tarreau
· Tue Apr 06 11:44:07 2021 +0200
1673c4a
MINOR: fd: implement an exclusive syscall bit to remove the ugly "log" lock
by Willy Tarreau
· Wed Apr 07 17:36:57 2021 +0200
9063a66
MINOR: fd: move .exported into fdtab[].state
by Willy Tarreau
· Tue Apr 06 18:09:06 2021 +0200
0cc6128
MINOR: fd: move .initialized into fdtab[].state
by Willy Tarreau
· Tue Apr 06 17:57:12 2021 +0200
030dae1
MINOR: fd: move .cloned into fdtab[].state
by Willy Tarreau
· Tue Apr 06 17:53:33 2021 +0200
b41a6e9
MINOR: fd: move .linger_risk into fdtab[].state
by Willy Tarreau
· Tue Apr 06 17:49:19 2021 +0200
c23b337
BUG/MEDIUM: fd: Take the fd_mig_lock when closing if no DWCAS is available.
by Olivier Houchard
· Thu Mar 25 01:38:54 2021 +0100
2d42329
CLEANUP: fd: slightly simplify up _fd_delete_orphan()
by Willy Tarreau
· Wed Mar 24 15:34:25 2021 +0100
2c3f981
BUG/MEDIUM: fd: do not wait on FD removal in fd_delete()
by Willy Tarreau
· Wed Mar 24 10:51:32 2021 +0100
0182516
CLEANUP: config: make the cfg_keyword parsers take a const for the defproxy
by Willy Tarreau
· Tue Mar 09 09:53:46 2021 +0100
61cfdf4
CLEANUP: tree-wide: replace free(x);x=NULL with ha_free(&x)
by Willy Tarreau
· Sat Feb 20 10:46:51 2021 +0100
8f0cc5c
CLEANUP: Fix spelling errors in comments
by Thayne McCombs
· Thu Jan 07 21:35:52 2021 -0700
b8888ab
CLEANUP: assorted typo fixes in the code and comments
by Ilya Shipitsin
· Wed Jan 06 21:20:16 2021 +0500
5a7d6eb
MINOR: fd/threads: silence a build warning with threads disabled
by Willy Tarreau
· Thu Nov 26 22:25:10 2020 +0100
7c9f756
MINOR: fd: report an error message when failing initial allocations
by Willy Tarreau
· Tue Oct 13 15:45:07 2020 +0200
f015887
MEDIUM: fd: always wake up one thread when enabling a foreing FD
by Willy Tarreau
· Fri Sep 25 12:18:53 2020 +0200
e52b6e5
CLEANUP: Do not use a fixed type for 'sizeof' in 'calloc'
by Tim Duesterhus
· Sat Sep 12 20:26:43 2020 +0200
bb1caff
MINOR: fd: add a new "exported" flag and use it for all regular listeners
by Willy Tarreau
· Wed Aug 19 10:00:57 2020 +0200
63d8b60
CLEANUP: fd: remove fd_remove() and rename fd_dodelete() to fd_delete()
by Willy Tarreau
· Wed Aug 26 11:54:06 2020 +0200
38e8a1c
MINOR: debug: add a new DEBUG_FD build option
by Willy Tarreau
· Tue Jun 23 10:04:54 2020 +0200
bc52bec
MEDIUM: fd: add experimental support for edge-triggered polling
by Willy Tarreau
· Thu Jun 18 08:58:47 2020 +0200
f1cad38
MINOR: fd: factorize the fd_takeover() exit path to make it safer
by Willy Tarreau
· Thu Jun 18 08:14:59 2020 +0200
4297363
MINOR: fd: slightly optimize the fd_takeover double-CAS loop
by Willy Tarreau
· Thu Jun 18 08:05:15 2020 +0200
c460c91
MEDIUM: fd: refine the fd_takeover() migration lock
by Willy Tarreau
· Thu Jun 18 07:28:09 2020 +0200
ddc874c
BUG/MEDIUM: fd: Call fd_stop_recv() when we just got a fd.
by Olivier Houchard
· Wed Jun 17 20:34:05 2020 +0200
8d7b517
BUG/MEDIUM: fd: Don't fd_stop_recv() a fd we don't own.
by Olivier Houchard
· Wed Jun 17 20:32:34 2020 +0200
f86a106
MINOR: fd: Fix a typo in a coment.
by Olivier Houchard
· Wed Jun 17 20:28:27 2020 +0200
df18787
BUG/MEDIUM: log: don't hold the log lock during writev() on a file descriptor
by Willy Tarreau
· Thu Jun 11 14:25:47 2020 +0200
b255105
CLEANUP: include: tree-wide alphabetical sort of include files
by Willy Tarreau
· Tue Jun 09 09:07:15 2020 +0200
aeed4a8
REORG: include: move log.h to haproxy/log{,-t}.h
by Willy Tarreau
· Thu Jun 04 22:01:04 2020 +0200
f268ee8
REORG: include: split global.h into haproxy/global{,-t}.h
by Willy Tarreau
· Thu Jun 04 17:05:57 2020 +0200
0f6ffd6
REORG: include: move fd.h to haproxy/fd{,-t}.h
by Willy Tarreau
· Wed Jun 03 19:33:00 2020 +0200
fc8f6a8
REORG: include: move port_range.h to haproxy/port_range{,-t}.h
by Willy Tarreau
· Wed Jun 03 19:20:59 2020 +0200
af613e8
CLEANUP: thread: rename __decl_hathreads() to __decl_thread()
by Willy Tarreau
· Fri Jun 05 08:40:51 2020 +0200
4c7e4b7
REORG: include: update all files to use haproxy/api.h or api-t.h if needed
by Willy Tarreau
· Wed May 27 12:58:42 2020 +0200
b7e43f0
CLEANUP: src/fd.c: mask setsockopt with DISGUISE
by Ilya Shipitsin
· Thu Apr 02 15:02:08 2020 +0500
e4ba0d4
BUG/MEDIUM: build: Fix compilation by spelling decl correctly.
by Olivier Houchard
· Fri Mar 20 11:03:38 2020 +0100
8851664
MINOR: fd: Implement fd_takeover().
by Olivier Houchard
· Thu Mar 05 18:10:51 2020 +0100
a7bf573
MEDIUM: fd: Introduce a running mask, and use it instead of the spinlock.
by Olivier Houchard
· Thu Feb 27 17:26:13 2020 +0100
7fa5562
MINOR: fd: Use a separate lock for logs instead of abusing the fd lock.
by Olivier Houchard
· Thu Feb 27 17:25:43 2020 +0100
2b9f066
CLEANUP: fd: use a union in fd_rm_from_fd_list() to shut aliasing warnings
by Willy Tarreau
· Tue Feb 25 09:25:53 2020 +0100
fc51f0f5
BUG/MEDIUM: fd/threads: fix a concurrency issue between add and rm on the same fd
by Olivier Houchard
· Thu Dec 19 18:33:08 2019 +0100
337fb71
MINOR: fd/threads: make _GET_NEXT()/_GET_PREV() use the volatile attribute
by Willy Tarreau
· Fri Dec 20 07:20:00 2019 +0100
dbe3060
MINOR: fd: make updt_fd_polling() a normal function
by Willy Tarreau
· Wed Sep 04 13:25:41 2019 +0200
5bee3e2
MEDIUM: fd: remove the FD_EV_POLLED status bit
by Willy Tarreau
· Wed Sep 04 09:52:57 2019 +0200
7e9776a
MINOR: fd/log/sink: make the non-blocking initialization depend on the initialized bit
by Willy Tarreau
· Fri Aug 30 14:41:47 2019 +0200
76913d3
CLEANUP: fd: remove leftovers of the fdcache
by Willy Tarreau
· Fri Aug 30 14:33:11 2019 +0200
931d8b7
MINOR: fd: add fd_write_frag_line() to send a fragmented line to an fd
by Willy Tarreau
· Tue Aug 27 11:08:17 2019 +0200
c22580c
BUG/MEDIUM: fd: Always reset the polled_mask bits in fd_dodelete().
by Olivier Houchard
· Mon Aug 05 18:51:52 2019 +0200
5305505
MEDIUM: pollers: Remember the state for read and write for each threads.
by Olivier Houchard
· Thu Jul 25 14:00:18 2019 +0000
Next »