Introducing websocket support in router and libunit.

This commit is contained in:
Max Romanov
2019-08-20 16:31:53 +03:00
parent 9bbf54e23e
commit e501c74ddc
29 changed files with 3545 additions and 451 deletions

View File

@@ -138,6 +138,13 @@ struct nxt_app_s {
};
typedef struct {
size_t max_frame_size;
nxt_msec_t read_timeout;
nxt_msec_t keepalive_interval;
} nxt_websocket_conf_t;
typedef struct {
uint32_t count;
nxt_queue_link_t link;
@@ -164,6 +171,8 @@ typedef struct {
nxt_msec_t body_read_timeout;
nxt_msec_t send_timeout;
nxt_websocket_conf_t websocket_conf;
#if (NXT_TLS)
nxt_tls_conf_t *tls;
#endif