Commit Graph

73 Commits

Author SHA1 Message Date
DanyLE
3bedc3ffb5 refactor: refactoring base code 2024-03-12 21:59:50 +01:00
DanyLE
9c25e62c0a feat(v2.0.0): Improvement + add IPv6 support
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
- fix: scheduler causes segmentfault when exiting the server
  - Add support for IPv6 protocol
2024-03-11 22:35:35 +01:00
DanyLE
32552ee0ed fix: remove openssl deprecated code
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
2024-03-09 16:52:28 +01:00
DanyLE
a1acea2441 Allow sandboxing plugin instances
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
2023-01-15 18:21:42 +01:00
lxsang
c7e9d2a579 remove debug compiling option 2021-10-08 22:53:08 +02:00
lxsang
0daef95c25 scheduler timeout should be configurable 2021-10-08 22:47:27 +02:00
lxsang
e9cd1addf7 log level should be configured in config file 2021-10-08 22:33:16 +02:00
Xuan Sang LE
dd7ff9b434
Xle perf improvement (#1)
* alpha version of proxy
* alpha version of proxy
* fix method bug
* fix post deode bug
* regen archive
* Reduce CPU usage on idle in proxy mode:
  - Scheduler timeout event now support millisecond granularity
  - Use only READABLE event on proxy socket which reduce tasks CPU time
* use both readable event and timeout event
* reduce scheduler poll time
* Fix segmentfault error
* Log worker task in statistic
* fix high cpu usage when handling bad POST request
* fix event-stream handling bug on proxy mode
* fix missing data events when uploading
* Race condition when get IP address from host in proxy mode
  - ip_from_hostname() is not thread safe
  - use global lock mechanism
2021-02-24 18:12:36 +01:00
lxsang
6c4713ac62 remove reverse proxy, it should be handled by the plugin 2021-01-23 16:20:16 +01:00
lxsang
8b483f0579 fix proxy protocol bug 2021-01-22 13:12:23 +01:00
lxsang
520b99f94b add support to reverse proxy (alpha) 2021-01-22 01:12:26 +01:00
lxsang
08877f84ad use the new scheduler 2021-01-03 21:31:35 +01:00
lxsang
cbbc48d216 improvement scheduler 2021-01-03 11:24:55 +01:00
lxsang
9d19a81a8e fix sha1 include path 2021-01-01 13:48:00 +01:00
lxsang
708e492c49 Use blocking select to monitor ports, no need to use a thread for each port 2020-09-23 13:10:54 +02:00
lxsang
b35cd61da4 add statistic log to scheduler, good for debug 2020-09-13 01:29:55 +02:00
lxsang
56806fb25b add more verbose to log 2020-08-27 12:46:05 +02:00
lxsang
776bd017e2 Enhance scheduler, cleanup lib 2020-08-25 16:40:24 +02:00
lxsang
2041ee2ba0 cleanup code 2020-08-19 12:26:17 +02:00
lxsang
5765df3697 optimise cpu usage 2020-08-19 11:08:30 +02:00
lxsang
a0445adcc5 user log daemon 2020-02-12 12:56:30 +01:00
lxsang
d5682fe186 user syslog for logging 2020-02-12 12:08:36 +01:00
lxsang
7fc12a72e6 add protocol selection to ssl, used for http2 support in the future 2020-01-11 22:30:01 +01:00
lxsang
4608ae874f fix 2020-01-08 19:17:51 +01:00
lxsang
d01e5e13aa increte wait time 2019-12-21 00:00:53 +01:00
lxsang
3435733ac2 add multiport support 2019-12-20 16:49:41 +01:00
lxsang
2562c06f31 fix write 2019-12-19 09:58:19 +01:00
lxsang
b093bd0194 zzzz 2019-12-15 18:23:01 +01:00
lxsang
8d2449bd69 new api 2019-12-15 12:10:06 +01:00
lxsang
e05515a537 change log mechanism 2019-12-11 22:17:42 +00:00
lxsang
01722ae39c add config files 2019-11-13 14:22:25 +01:00
lxsang
424db8dd6e switch to autotools 2019-11-13 11:48:54 +01:00
Xuan Sang LE
065119e980
Update httpd.c 2019-11-08 15:54:41 +01:00
Xuan Sang LE
e5b803729f
Update httpd.c 2019-11-08 15:26:10 +01:00
lxsang
f9f0545899 fix openssl deprecate functions 2019-11-08 11:52:00 +01:00
lxsang
52ede859bd add data validity to scheduler 2019-07-31 15:11:59 +02:00
lxsang
21399ac8c7 add debug code to invertigates looping buh 2019-04-11 11:00:52 +02:00
lxsang
848da534b5 add timeout per connection 2018-10-16 12:22:13 +02:00
lxsang
133cb58e90 use heavy task by default 2018-10-14 21:48:51 +02:00
lxsang
487e5b108b use heavy task by default 2018-10-14 20:41:44 +02:00
lxsang
ba4bfadec0 fix deadlock 2018-10-14 10:57:09 +02:00
lxsang
592fc88587 reduce cpu usage using semaphore 2018-10-10 12:42:47 +02:00
lxsang
d60109fcf9 minor fix 2018-10-09 17:24:00 +02:00
lxsang
a3509ca6aa open ssl still leak memory 2018-10-09 12:15:48 +02:00
lxsang
03a0a9deea request body can be decode directly or delegated to plugin 2018-10-08 19:32:23 +02:00
lxsang
04fec05b70 fix open ssl bug 2018-10-07 01:03:05 +02:00
lxsang
89e3d7a3f0 fix memory leak on the new non blocking system 2018-10-05 19:01:39 +02:00
lxsang
5477f54f60 first working but buggy version 2018-10-04 19:47:31 +02:00
lxsang
3447b07fc6 use async for server 2018-10-03 23:42:42 +02:00
Xuan Sang LE
6fbf3d4984 fix zoombie process & rename plugin handle method 2018-09-12 11:06:19 +02:00