-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Websocket simple proxy protocol implementation
Signed-off-by: Aleksey Mikhaylov <[email protected]>
- Loading branch information
Showing
29 changed files
with
550 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Tempesta DB | ||
* | ||
* Copyright (C) 2014 NatSys Lab. ([email protected]). | ||
* Copyright (C) 2015-2016 Tempesta Technologies. | ||
* Copyright (C) 2015-2022 Tempesta Technologies. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by | ||
|
@@ -104,7 +104,7 @@ typedef struct { | |
#define TDB_HTRIE_ROOT(h) \ | ||
(TdbHtrieNode *)((char *)(h) + TDB_HDR_SZ(h) + sizeof(TdbExt)) | ||
|
||
/* FIXME we can't store zero bytes by zero key. */ | ||
/* TODO we can't store zero bytes by zero key. */ | ||
static inline int | ||
tdb_live_fsrec(TdbHdr *dbh, TdbFRec *rec) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ | |
* - Improve efficiency: too many memory allocations and data copying. | ||
* | ||
* Copyright (C) 2014 NatSys Lab. ([email protected]). | ||
* Copyright (C) 2015-2021 Tempesta Technologies, Inc. | ||
* Copyright (C) 2015-2022 Tempesta Technologies, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by | ||
|
@@ -125,7 +125,7 @@ __alloc_and_copy_literal(const char *src, size_t len, bool keep_bs) | |
} | ||
|
||
/* Copy the string. Eat escaping backslashes if @keep_bs is not set. */ | ||
/* FIXME: the logic looks like a tiny FSM, | ||
/* TODO: the logic looks like a tiny FSM, | ||
* so perhaps it should be included to the TFSM. */ | ||
src_end = src + len; | ||
src_pos = src; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ | |
* tfw_gfsm_move(). | ||
* | ||
* Copyright (C) 2014 NatSys Lab. ([email protected]). | ||
* Copyright (C) 2015-2018 Tempesta Technologies, Inc. | ||
* Copyright (C) 2015-2022 Tempesta Technologies, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by | ||
|
@@ -193,17 +193,6 @@ __gfsm_fsm_exec(TfwGState *st, int fsm_id, TfwFsmData *data) | |
return r; | ||
} | ||
|
||
/** | ||
* Dispatch connection data to proper FSM by application protocol type. | ||
*/ | ||
int | ||
tfw_gfsm_dispatch(TfwGState *st, void *obj, TfwFsmData *data) | ||
{ | ||
int fsm_id = TFW_FSM_TYPE(((SsProto *)obj)->type); | ||
|
||
return __gfsm_fsm_exec(st, fsm_id, data); | ||
} | ||
|
||
/** | ||
* Move the FSM with descriptor @st to new the state @state and call all | ||
* registered hooks for it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.