]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-be: ->connect() protocol callback adaptations
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 5 Jan 2024 15:23:33 +0000 (16:23 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 16:37:34 +0000 (18:37 +0200)
commit9831f596ea976fbfbf3fe56235cf9a526f46db4d
tree360d98f248ff7de499ce02192e3493d21f02e62a
parent52ec3430f226a1fbf98d9608b1d78198fac9d0ef
MINOR: quic-be: ->connect() protocol callback adaptations

Modify quic_connect_server() which is the ->connect() callback for QUIC protocol:
    - add a BUG_ON() run when entering this funtion: the <fd> socket must equal -1
    - conn->handle is a union. conn->handle.qc is use for QUIC connection,
      conn->handle.fd must not be used to store the fd.
    - code alignment fix for setsockopt(fd, SOL_SOCKET, (SO_SNDBUF|SO_RCVBUF))
  statements
    - remove the section of code which was duplicated from ->connect() TCP callback
    - fd_insert() the new socket file decriptor created to connect to the QUIC
      server with quic_conn_sock_fd_iocb() as callback for read event.
src/proto_quic.c