<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp/http/server, branch CLI_2.10.0</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=CLI_2.10.0</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=CLI_2.10.0'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2024-06-05T00:57:22Z</updated>
<entry>
<title>[kernel/server] [library/cpp/http/server] enable timeout for reading from socket by default</title>
<updated>2024-06-05T00:57:22Z</updated>
<author>
<name>ilnurkh</name>
<email>ilnurkh@yandex-team.com</email>
</author>
<published>2024-06-05T00:48:00Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=e16cc41459dc74c94769ca6b0693af2e4a86206a'/>
<id>urn:sha1:e16cc41459dc74c94769ca6b0693af2e4a86206a</id>
<content type='text'>
анонс https://at.yandex-team.ru/clubs/arcadia/30286
77f0f6dfa6c3bc8c2a8428ecf91cd76b22bdb60e
</content>
</entry>
<entry>
<title>Add THttpHeaders constructor from TArrayRef</title>
<updated>2024-04-16T06:47:02Z</updated>
<author>
<name>vadim-xd</name>
<email>vadim-xd@yandex-team.com</email>
</author>
<published>2024-04-16T06:38:35Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=ea11c4b61ef4e491c701847533ff93d3de81f127'/>
<id>urn:sha1:ea11c4b61ef4e491c701847533ff93d3de81f127</id>
<content type='text'>
351519c01d45a22beceb491029a8f516619673a0
</content>
</entry>
<entry>
<title>DebugPrint for THttpServerOptions</title>
<updated>2024-04-10T06:57:42Z</updated>
<author>
<name>gous32</name>
<email>gous32@yandex-team.com</email>
</author>
<published>2024-04-10T06:48:27Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=1e986085fe84d3e9e16751d6bc590edba8b50b23'/>
<id>urn:sha1:1e986085fe84d3e9e16751d6bc590edba8b50b23</id>
<content type='text'>
ddffb1ebbc56036902fc8b93aac08ff45a8ef547
</content>
</entry>
<entry>
<title>feat contrib: aiogram 3</title>
<updated>2024-01-19T10:10:03Z</updated>
<author>
<name>armenqa</name>
<email>armenqa@yandex-team.com</email>
</author>
<published>2024-01-19T09:23:50Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=2de0149d0151c514b22bca0760b95b26c9b0b578'/>
<id>urn:sha1:2de0149d0151c514b22bca0760b95b26c9b0b578</id>
<content type='text'>
Relates: https://st.yandex-team.ru/, https://st.yandex-team.ru/
</content>
</entry>
<entry>
<title>Library import 7 (#937)</title>
<updated>2024-01-11T13:49:03Z</updated>
<author>
<name>AlexSm</name>
<email>alex@ydb.tech</email>
</author>
<published>2024-01-11T13:49:03Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=2e180154bd6a38b90a128ba0463d0dd2706a5ccf'/>
<id>urn:sha1:2e180154bd6a38b90a128ba0463d0dd2706a5ccf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>External build system generator release 65</title>
<updated>2023-12-05T09:25:06Z</updated>
<author>
<name>robot-ya-builder</name>
<email>robot-ya-builder@yandex-team.com</email>
</author>
<published>2023-12-05T08:10:55Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=96458ea3c773a8a3edb707f73db0cdedbfcfad90'/>
<id>urn:sha1:96458ea3c773a8a3edb707f73db0cdedbfcfad90</id>
<content type='text'>
Update tools: yexport, os-yexport
</content>
</entry>
<entry>
<title>add  darwin-arm64 CMakeLists</title>
<updated>2023-11-20T11:34:20Z</updated>
<author>
<name>dcherednik</name>
<email>dcherednik@ydb.tech</email>
</author>
<published>2023-11-20T10:23:37Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=ffff7a34e41bf0dd7d5e0f3d78aeaebbf56200e6'/>
<id>urn:sha1:ffff7a34e41bf0dd7d5e0f3d78aeaebbf56200e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>move version of SetContent</title>
<updated>2023-10-23T16:36:01Z</updated>
<author>
<name>aykeron</name>
<email>aykeron@yandex-team.com</email>
</author>
<published>2023-10-23T15:54:22Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=1d5fc29e2265eb3456c0b7db3f916b1095038dce'/>
<id>urn:sha1:1d5fc29e2265eb3456c0b7db3f916b1095038dce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Перенести проверку TTL до парсинга заголовков</title>
<updated>2023-09-11T19:13:09Z</updated>
<author>
<name>conterouz</name>
<email>conterouz@yandex-team.com</email>
</author>
<published>2023-09-11T18:51:16Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=6a7def716ee30ea697561451eb4a9a685c39c26b'/>
<id>urn:sha1:6a7def716ee30ea697561451eb4a9a685c39c26b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>finally, allow more than one listener thread</title>
<updated>2023-08-30T18:27:36Z</updated>
<author>
<name>kulikov</name>
<email>kulikov@yandex-team.com</email>
</author>
<published>2023-08-30T17:53:24Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=3f2ddee8b16d59a940bc71a44b6384e6382ad1a4'/>
<id>urn:sha1:3f2ddee8b16d59a940bc71a44b6384e6382ad1a4</id>
<content type='text'>
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.
</content>
</entry>
</feed>
