mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
sspc: LWSSSPC: track onward request status
This commit is contained in:
parent
9a7ce85001
commit
a6a9f22556
2 changed files with 11 additions and 2 deletions
|
@ -162,7 +162,7 @@ lws_ss_policy_ref_trust_store(struct lws_context *context,
|
||||||
}
|
}
|
||||||
v = lws_get_vhost_by_name(context, pol->trust.store->name);
|
v = lws_get_vhost_by_name(context, pol->trust.store->name);
|
||||||
if (v) {
|
if (v) {
|
||||||
lwsl_notice("%s: vh already exists\n", __func__);
|
lwsl_debug("%s: vh already exists\n", __func__);
|
||||||
goto accepted;
|
goto accepted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,6 +241,14 @@ typedef struct lws_sspc_metadata {
|
||||||
/* the value of length .len is overallocated after this */
|
/* the value of length .len is overallocated after this */
|
||||||
} lws_sspc_metadata_t;
|
} lws_sspc_metadata_t;
|
||||||
|
|
||||||
|
/* state of the upstream proxy onward connection */
|
||||||
|
|
||||||
|
enum {
|
||||||
|
LWSSSPC_ONW_NONE,
|
||||||
|
LWSSSPC_ONW_REQ,
|
||||||
|
LWSSSPC_ONW_ONGOING,
|
||||||
|
LWSSSPC_ONW_CONN,
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct lws_sspc_handle {
|
typedef struct lws_sspc_handle {
|
||||||
char rideshare_list[128];
|
char rideshare_list[128];
|
||||||
|
@ -269,13 +277,14 @@ typedef struct lws_sspc_handle {
|
||||||
int16_t temp16;
|
int16_t temp16;
|
||||||
|
|
||||||
uint8_t rideshare_ofs[4];
|
uint8_t rideshare_ofs[4];
|
||||||
uint8_t conn_req;
|
|
||||||
uint8_t rsidx;
|
uint8_t rsidx;
|
||||||
|
|
||||||
|
uint8_t conn_req_state:2;
|
||||||
uint8_t destroying:1;
|
uint8_t destroying:1;
|
||||||
uint8_t non_wsi:1;
|
uint8_t non_wsi:1;
|
||||||
uint8_t ignore_txc:1;
|
uint8_t ignore_txc:1;
|
||||||
uint8_t pending_timeout_update:1;
|
uint8_t pending_timeout_update:1;
|
||||||
|
uint8_t pending_writeable_len:1;
|
||||||
} lws_sspc_handle_t;
|
} lws_sspc_handle_t;
|
||||||
|
|
||||||
typedef struct backoffs {
|
typedef struct backoffs {
|
||||||
|
|
Loading…
Add table
Reference in a new issue