mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
libpq: Move pg_cancel to fe-cancel.c
No other files need to access this struct, so there is no need to have its definition in a header file. Author: Jelte Fennema-Nio <postgres@jeltef.nl> Discussion: https://postgr.es/m/202403061822.spfzqbf7dsgg@alvherre.pgsql
This commit is contained in:
@@ -21,6 +21,26 @@
|
||||
#include "libpq-int.h"
|
||||
#include "port/pg_bswap.h"
|
||||
|
||||
|
||||
/*
|
||||
* pg_cancel (backing struct for PGcancel) stores all data necessary to send a
|
||||
* cancel request.
|
||||
*/
|
||||
struct pg_cancel
|
||||
{
|
||||
SockAddr raddr; /* Remote address */
|
||||
int be_pid; /* PID of to-be-canceled backend */
|
||||
int be_key; /* cancel key of to-be-canceled backend */
|
||||
int pgtcp_user_timeout; /* tcp user timeout */
|
||||
int keepalives; /* use TCP keepalives? */
|
||||
int keepalives_idle; /* time between TCP keepalives */
|
||||
int keepalives_interval; /* time between TCP keepalive
|
||||
* retransmits */
|
||||
int keepalives_count; /* maximum number of TCP keepalive
|
||||
* retransmits */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* PQgetCancel: get a PGcancel structure corresponding to a connection.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user