Commit Graph

370 Commits (main)

Author SHA1 Message Date
Jianhui Zhao b0c3acbc13 uh_unescape(): More security
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-29 14:48:50 +08:00
Jianhui Zhao bec72d277d Optimize the function 'uh_get_var()'
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-29 14:42:46 +08:00
Jianhui Zhao 0206340491 Bump version to 0.2.0
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-28 09:57:39 +08:00
Jianhui Zhao 5c9a6a6c80 Remove some debug code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-28 09:56:59 +08:00
Jianhui Zhao a3a2d7bdcb Fix Bug: http parser error
After realloc memory, forgot to correct the mark of the http_parser.

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 22:47:04 +08:00
Jianhui Zhao 52b351f32e Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 13:18:59 +08:00
Jianhui Zhao 257c6a09a6 New function: uh_register_default_hook
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 13:03:47 +08:00
Jianhui Zhao 7ec4490eae Change the names of variables and functions to make them more readable.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 12:50:38 +08:00
Jianhui Zhao 2f8176bf14 Update README.MD
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 00:11:25 +08:00
Jianhui Zhao 589df6a85b Fix bug: not destroy connection when peer closed
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 00:01:07 +08:00
Jianhui Zhao 6e58dab2b8 More debug
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 00:00:51 +08:00
Jianhui Zhao 3f6d941eba More debug
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 23:55:42 +08:00
Jianhui Zhao 34d052d4c0 Optimizing http-parser
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 23:52:41 +08:00
Jianhui Zhao 650f545c20 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 15:52:39 +08:00
Jianhui Zhao c347496f7b Fix compile error
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 15:36:18 +08:00
Jianhui Zhao af2c594e09 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 15:30:37 +08:00
Jianhui Zhao b4ab19016d Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 14:19:09 +08:00
Jianhui Zhao 372716a277 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-25 23:48:09 +08:00
Jianhui Zhao d66de88dfa Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-25 23:31:50 +08:00
Jianhui Zhao 9702ab5851 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 23:04:28 +08:00
Jianhui Zhao 32f478f370 Optimize directory organization structure
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 22:57:38 +08:00
Jianhui Zhao 9cc3836868 Perfect version information
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 21:49:12 +08:00
Jianhui Zhao 6ef276ed77 Perfect version information
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 21:43:03 +08:00
Jianhui Zhao 09c950bbac Direct use the source code of http-parser
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 14:11:31 +08:00
Jianhui Zhao 2ad01f73ce Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-15 13:21:02 +08:00
Jianhui Zhao 3112b9477e optimize performance
Reduce memory allocation times

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 22:17:06 +08:00
Jianhui Zhao f9184839ff New function: uh_unescape()
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 22:16:26 +08:00
Jianhui Zhao a01d37430d Fix bug:Repeat call uh_connection_destroy
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 21:07:23 +08:00
Jianhui Zhao 1c8051decc Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 12:21:47 +08:00
Jianhui Zhao b752ced386 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 10:41:42 +08:00
Jianhui Zhao 196c6e3814 New function uh_get_var() but need to perfect
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 00:03:48 +08:00
Jianhui Zhao 3d92d0665f Fix bug: Incorrect use the function uh_con_reuse()
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 23:36:17 +08:00
Jianhui Zhao 64dfcceb28 Improve code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 23:07:48 +08:00
Jianhui Zhao 81626893ff Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 22:05:02 +08:00
Jianhui Zhao 84e1dbb713 Fix bug: The function uh_send_error() not sending the body
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 21:36:40 +08:00
Jianhui Zhao 6f9da0f7ce Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 21:31:58 +08:00
Jianhui Zhao bd8ec5f31d Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 21:20:42 +08:00
Jianhui Zhao 93be87f5ce Optimize document format
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 21:04:05 +08:00
Jianhui Zhao cce132672a Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 21:01:17 +08:00
Jianhui Zhao aacfc8800e In order to be compatible with different editor, convert all Tab to spaces
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 21:01:03 +08:00
Jianhui Zhao ee31e3f1fa In order to be compatible with different editor, convert all Tab to spaces
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 20:51:42 +08:00
Jianhui Zhao 8eb57bef1e Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 17:45:54 +08:00
Jianhui Zhao 3813b96b7d Improve README for CentOS
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 16:34:48 +08:00
Jianhui Zhao 93b23500da Improve cmake Modules: Compatible with CentOS x64
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 16:11:49 +08:00
Jianhui Zhao 383f325547 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 19:23:12 +08:00
Jianhui Zhao 099f726b0a Deleting irrelevant debugging code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 18:07:28 +08:00
Jianhui Zhao fed343a62e Fix bug: HTTP parsing process
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 18:05:04 +08:00
Jianhui Zhao 59bea2ad5c Optimizing HTTP parsing process
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 17:55:39 +08:00
Jianhui Zhao 58382a85ed Optimize CMakeLists.txt
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 17:47:11 +08:00
Jianhui Zhao 8e90fd0e2b Improve Log
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 17:43:05 +08:00