aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server
Commit message (Collapse)AuthorAgeFilesLines
* Add Body to reportanterpin2025-03-311-0/+1
| | | | | | | Add test Add body to reqenv commit_hash:222fa588fa7d7a7f65869bd997d32610e78b7378
* check POST data length to match Content-Lengthlavv172024-10-241-1/+2
| | | | commit_hash:9f66fdc1ffe8653fba7144bff4dbee4b92723b50
* Fix TSAN warningvmordovin2024-08-231-1/+1
| | | | e2f99a0432865120bc478a3fb91956424c374445
* [kernel/server] [library/cpp/http/server] enable timeout for reading from ↵ilnurkh2024-06-051-1/+1
| | | | | | | socket by default анонс https://at.yandex-team.ru/clubs/arcadia/30286 77f0f6dfa6c3bc8c2a8428ecf91cd76b22bdb60e
* Add THttpHeaders constructor from TArrayRefvadim-xd2024-04-161-0/+1
| | | | 351519c01d45a22beceb491029a8f516619673a0
* DebugPrint for THttpServerOptionsgous322024-04-102-0/+20
| | | | ddffb1ebbc56036902fc8b93aac08ff45a8ef547
* feat contrib: aiogram 3armenqa2024-01-196-146/+0
| | | | Relates: https://st.yandex-team.ru/, https://st.yandex-team.ru/
* Library import 7 (#937)AlexSm2024-01-111-3/+0
|
* External build system generator release 65robot-ya-builder2023-12-051-3/+3
| | | | Update tools: yexport, os-yexport
* add darwin-arm64 CMakeListsdcherednik2023-11-202-0/+27
|
* move version of SetContentaykeron2023-10-231-0/+6
|
* Перенести проверку TTL до парсинга ↵conterouz2023-09-113-0/+75
| | | | заголовков
* finally, allow more than one listener threadkulikov2023-08-303-24/+108
| | | | | | | | | | | | | | | | | | With single poller thread on incoming connections, every OS scheduler latency on this thread wakeup directly affects requests timings. With oneshot poll events, we can poll on the same poller from many threads, and, if one thread has stalled for some reason, some other will take it's work on the next incoming event. So: - make vector of listener threads instead of single one; - add nListenerThreads option; - stop request queues and listening sockets from the last finished thread; - check incoming options and set OneShotPoll if needed. There is a problem around removing connections on MaxConnections limit or ExpirationTimeout. There is no simple way to safely remove items from epoll (https://lwn.net/Articles/520012/) if it has raw pointers in event data. Try to handle it via postponed deletion of connection objects, wait until all listener threads are ready to reenter poller wait and there are no threads where deleted object can be used: - close socket immediately after remove from poller, but instead of immediate TClientConnection destruction, put it to "pending delete" list; - add cleanup state with thread mask, each bit stating that corresponding thread should reenter poller; - call Cleanup routine before each poller wait, it will switch to 0 current thread's bit for each pending connection; - when thread mask becomes all zero, really delete the connection; - force there is a timeout for poller wait, ensure that all threads do reenter; - add more configurations for some tests. There is no significant changes or overhead for standard case with single listener thread, cleanup and pending deletion are just skipped. Also there is no overhead for common case where removing connections is rare. Here is the same review with nListenerThreads = 4 by default https://a.yandex-team.ru/review/4413226.
* more preparations for more than one listener threadkulikov2023-08-301-19/+20
| | | | | - apply one shot poll (under option) for listening socket too; - some code rearrangements.
* simplify, prepare for more than one listener threadkulikov2023-08-242-32/+45
| | | | | | | | - move out listener and thread pools initialization stage from listener thread (no actual changes, this part of code was awaited via ListenStartEvent anyway) ; - remove ListenerStartEvent and ListenerRunningOK flag, no use now; - make Reqs list of listening sockets class member; - leave Reqs list destruction in listener thread (it should happen just after Shutdown but after polling loop stopped to prevent races); - ut for server startup fail.
* one shot pollerkulikov2023-08-223-40/+60
| | | | | | | | With WaitReadOneShot: - there is no need to do Unwait on connection activation, one less syscall per request; - this allows to make several listener threads over one epoll poller. Turn option on for search daemons (check it turned on by default here https://a.yandex-team.ru/review/4372795/details).
* Intermediate changesrobot-piglet2023-08-211-1/+49
|
* Intermediate changesrobot-piglet2023-08-181-0/+118
|
* Intermediate changesrobot-piglet2023-08-161-99/+68
|
* revert rXXXXXX (see discusstion in pr), will commit again more pci-dss ↵kulikov2023-07-272-26/+10
| | | | friendly way
* try to get rid of locks and allocations for elastic queue thread poolkulikov2023-07-212-10/+26
| | | | | | | | | In case of heavy load and high rps current thread pool implementation seems to have problems at least with contention on lock inside condvar (long futex wait calls from http server listener thread), so try to implement something more efficient: - replace condvar with TEventCounter implementation without internal lock (pthread condvar maintains waiters wakeup order, thread pool doesn't need it); - introduce well-known bounded mpmc queue over ring buffer; - get rid of TDecrementingWrapper; - add options to turn on new pool in library/cpp/http/server and search/daemons (will remove after adoption); - make elastic queue ut check both versions; - workaround problems with android/arm build targets.
* add ymake export to ydbalexv-smirnov2023-06-132-0/+32
|
* Remove extra semicolon (library)bulatman2023-06-101-3/+3
|
* Revert "Revert "Поддержать метод OPTIONS во внешнем ↵conterouz2023-06-012-3/+12
| | | | uaas""
* Revert "Поддержать метод OPTIONS во внешнем uaas"conterouz2023-05-312-12/+3
|
* Поддержать метод OPTIONS во внешнем uaasconterouz2023-05-302-3/+12
|
* External build system generator release 29robot-ya-builder2023-04-191-1/+1
| | | Update tools: yexport
* Revert ymake build from ydb oss exportalexv-smirnov2023-03-282-32/+0
|
* Allow to AddOrReplace headers from THttpResponseav-koshkin2023-03-222-0/+36
|
* External build system generator release 21robot-ya-builder2023-03-171-3/+3
| | | Update tools: yexport
* add library/cpp/actors, ymake build to ydb oss exportalexv-smirnov2023-03-152-0/+32
|
* [http/server] Add epoll max events optionsskvor2023-03-142-1/+2
|
* Intermediate changesrobot-piglet2023-03-092-0/+27
|
* Intermediate changesrobot-piglet2023-03-073-2/+2
|
* External build system generator release 17robot-ya-builder2023-03-061-1/+1
| | | Update tools: yexport
* Intermediate changesrobot-piglet2023-02-073-15/+15
|
* Intermediate changesrobot-piglet2023-02-073-15/+15
|
* External build system generator release 12robot-ya-builder2023-01-311-1/+1
| | | Update tools: yexport
* External build system generator release 8robot-ya-builder2023-01-174-4/+4
| | | Update tools: yexport
* Sync linux-headers instead of using system onesthegeorg2022-12-154-17/+84
|
* [external_abt]fix uaas 5xxbarkovbg2022-10-241-0/+8
|
* remove unused includestobo2022-08-271-5/+0
|
* IGNIETFERRO-1105 Add missing PEERDIRs for deprecated atomiceeight2022-06-161-0/+1
| | | | ref:7ff80f9897aa27d91ceddb2dbeca2adad400038d
* intermediate changesarcadia-devtools2022-06-072-2/+2
| | | | ref:ef90b2b7f42604225d9ae8f4f0af73614761b65f
* intermediate changesarcadia-devtools2022-04-211-0/+33
| | | | ref:f15213aec8036b5997a8dd8c73570eb4babaa6c2
* intermediate changesarcadia-devtools2022-03-152-39/+0
| | | | ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
* Improve SystemCommand check in YDB CLI, KIKIMR-14321pnv12022-03-011-0/+9
| | | | ref:fe5ed49138dce046a93c364cc8879fad3abf3eef
* intermediate changesarcadia-devtools2022-02-181-0/+15
| | | | ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
* Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 2 of 2.iddqd2022-02-101-5/+5
|
* Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 1 of 2.iddqd2022-02-101-5/+5
|