Commit Graph
51 Commits
Author SHA1 Message Date
XieHan 15f1524067 Call virtual 'handle()' if dispatch failed. 2022-06-13 20:48:45 +08:00
XieHan 51428c4392 use 'sysconf' for max open files 2022-05-15 17:29:50 +08:00
XieHan 86c6ca8f68 make it compatible with c11 2022-04-27 03:42:40 +08:00
XieHan d2f6c484da Add CommMessageIn::renew() to reset begin time 2022-04-23 18:49:04 +08:00
XieHan 6b6120c85b Optimize SSL sync writing. 2022-02-18 20:48:40 +08:00
XieHan 5d30c1de52 optimize SSL write. 2022-01-06 20:56:06 +08:00
XieHan 721892db39 hide CommService's incref() and decref() 2021-11-20 16:04:53 +08:00
XieHan 8fc92f3968 remove CommSession::connect_timeout and response_timeout. 2021-11-10 22:05:28 +08:00
XieHan 2a247a6500 update comment. update rbtree 2021-10-19 02:14:38 +08:00
xiehan 3974c4fc19 Merge pull request #582 from chanchann/chanchan
Fixed typo in msgqueue.c annotation
2021-10-04 01:19:43 +08:00
XieHan 7cac784725 Fix 'include' errors 2021-10-04 00:43:03 +08:00
chanchann c42694ace7 Fixed typo in msgqueue.c annotation 2021-10-02 18:52:23 +08:00
XieHan 82f0df6b01 remove 'errno = EEXIST' 2021-09-05 17:06:13 +08:00
XieHan 2d2f8c0961 optimize poller's memory 2021-09-05 16:23:20 +08:00
XieHan e26c93cc5e optimize poller's codes 2021-09-01 01:12:46 +08:00
XieHan 61a2398706 optimize poller's timeout rbtree 2021-08-31 20:40:52 +08:00
XieHan 650da089ec make WFNetworkTask::push() virtual. Change errno. 2021-08-29 14:15:03 +08:00
XieHan 25a1b81eca add server task's sync push 2021-08-29 02:37:59 +08:00
XieHan f104a84295 use EPOLLET for poller's timerfd 2021-08-06 16:58:08 +08:00
XieHan 01b3b47922 allow session level connect/response timeout 2021-07-27 19:33:30 +08:00
XieHan 9e67fa2e84 optimize CommSchedGroup target selection 2021-07-23 01:03:54 +08:00
XieHan 8c2b05233c make message wrapper compatible with feedback. 2021-07-08 00:59:42 +08:00
XieHan b6eaff518a update CommMessageIn::feedback. Update WFMailboxTask 2021-06-19 01:09:14 +08:00
XieHan a59d6b19c8 Supporting loongson processor. 2021-06-11 19:23:01 +08:00
XieHan c4a4b3b857 Make sure WFServer's new_connection() returns a WFConnection, and protect CommConnection. 2021-05-22 18:48:56 +08:00
XieHan f82491fdef optimize poller on SSL 2021-05-03 00:51:57 +08:00
XieHan 6325e8e776 Support TLS SNI on server side. 2021-04-06 01:53:39 +08:00
holmes1412 ba9a74ea17 support Android in cmake 2021-04-02 19:15:17 +08:00
XieHan 15fc00b67e support TLS SNI 2021-03-25 20:35:47 +08:00
XieHan 9571d96f4f add a missed 'const' 2021-02-23 20:13:09 +08:00
XieHan 1d824f492c make it legal when handler_threads==0 2021-02-06 15:38:03 +08:00
XieHan e9aa77bce6 update WFServer. Now WFServer::stop() operation will block till all server tasks' series end. 2021-01-15 19:48:25 +08:00
XieHan 4ecac779f5 fix writev() problem when iovcnt==0 on macOS 2020-11-20 20:22:51 +08:00
xiehanandXieHan beecf7caf4 stddef.h is required by offsetof() (#81)
* stddef.h is required by offsetof()

Co-authored-by: XieHan <XieHan@sogou-inc.com>
2020-10-01 16:34:16 +00:00
xiehanandXieHan 65473be586 Change some includes to forward declarations (#57)
* Make thrdpool stronger

* Fix some comments

* fix grammar

* change some include to forward declaration

* remove some typedef

* move codes

Co-authored-by: XieHan <XieHan@sogou-inc.com>
2020-09-18 15:08:43 +00:00
xiehanandXieHan e831d9523b Allow thread task to destroy thread pool. Interesting. (#52)
* Make thrdpool stronger

* Fix some comments

* fix grammar

Co-authored-by: XieHan <XieHan@sogou-inc.com>
2020-09-16 18:21:29 +08:00
xiehan 5f906f3132 Update msgqueue.c 2020-09-14 19:15:27 +00:00
xiehanandXieHan 7a5a818e66 Add some comments (#46)
Co-authored-by: XieHan <XieHan@sogou-inc.com>
2020-09-13 16:14:52 +00:00
XieHan 7987298d75 Make code styles more consistent with poller. 2020-09-13 01:36:13 +08:00
XieHan 6d779ed259 Should broadcast writers when setting nonblock. 2020-09-13 00:43:29 +08:00
XieHan 3f6e20fc20 Change msgqueue's fields sequence. 2020-09-12 18:18:46 +08:00
XieHan dedcfbd726 optimize msgqueue 2020-09-12 17:56:28 +08:00
XieHan 6dc99cf30d Change poller's interface of returning result. Now we use callback. 2020-09-12 14:42:31 +08:00
XieHan 76a6fa1b7e Change poller's interface of returning result. Now we use callback. 2020-09-12 14:39:30 +08:00
XieHan cec4f69280 Change poller's interface of returning result. Now we use callback. 2020-09-12 14:35:17 +08:00
XieHan 1dcfd05aee Fix bug in poller. This bug may affect files aio on macOS 2020-09-04 20:03:33 +08:00
xiehan 9c7d164262 Update Communicator.cc 2020-09-01 18:20:02 +08:00
XieHan d2372b450b Add 'const' to some functions' prototypes. 2020-08-26 02:39:28 +08:00
XieHan 692d272cb3 Pack a union to save some bytes. 2020-08-07 20:44:08 +08:00
xiehan df557fa9be Update CommScheduler.h 2020-07-30 16:04:07 +00:00