ClickHouse/src/IO
Ivan 414f470c79
Make Poco HTTP Server zero-copy again (#19516)
* Refactoring: part 1

* Refactoring: part 2

* Handle request using ReadBuffer interface

* Struggles with ReadBuffer's

* Fix URI parsing

* Implement parsing of multipart/form-data

* Check HTTP_LENGTH_REQUIRED before eof() or will hang

* Fix HTTPChunkedReadBuffer

* Fix build and style

* Fix test

* Resist double-eof

* Fix arcadian build
2021-02-19 15:51:26 +03:00
..
S3 Merge pull request #19750 from excitoon-favorites/s3betterglobs 2021-01-29 23:44:14 +03:00
tests Merge pull request #18979 from ClickHouse/fix_18690 2021-01-15 13:43:50 +03:00
AIO.cpp Add cross-compile build for FreeBSD (#9643) 2020-04-07 11:33:49 +03:00
AIO.h Add cross-compile build for FreeBSD (#9643) 2020-04-07 11:33:49 +03:00
AIOContextPool.cpp Merge branch 'master' into stack-frams-size-limit 2020-07-21 14:45:15 +03:00
AIOContextPool.h Some provisions for Android build 2020-07-15 14:16:00 +03:00
AsynchronousWriteBuffer.h Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
BitHelpers.h Try speedup build (#14809) 2020-09-15 12:55:57 +03:00
BrotliReadBuffer.cpp Fix build 2021-02-05 02:14:17 +03:00
BrotliReadBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
BrotliWriteBuffer.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
BrotliWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
BufferBase.h Reset internal buffer position on next() 2021-02-03 15:31:45 +03:00
BufferWithOwnMemory.h more checks 2021-02-15 16:11:16 +03:00
CascadeWriteBuffer.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
CascadeWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
CMakeLists.txt dbms/ → src/ 2020-04-03 18:14:31 +03:00
CompressionMethod.cpp fix typo 2020-11-29 16:02:04 +03:00
CompressionMethod.h introduce zstd compression 2020-11-17 19:02:10 +03:00
ConcatReadBuffer.h Reset internal buffer position on next() 2021-02-03 15:31:45 +03:00
ConnectionTimeouts.h More forward declaration for generic headers 2020-12-12 17:43:10 +03:00
ConnectionTimeoutsContext.h More forward declaration for generic headers 2020-12-12 17:43:10 +03:00
copyData.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
copyData.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
createReadBufferFromFileBase.cpp Some provisions for Android build 2020-07-15 14:16:00 +03:00
createReadBufferFromFileBase.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
DoubleConverter.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
DoubleConverter.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
EmptyReadBuffer.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
HashingReadBuffer.h Fix build 2021-02-05 02:14:17 +03:00
HashingWriteBuffer.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
HashingWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
HexWriteBuffer.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
HexWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
HTTPChunkedReadBuffer.cpp Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
HTTPChunkedReadBuffer.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
HTTPCommon.cpp Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
HTTPCommon.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
IReadableWriteBuffer.h Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
LimitReadBuffer.cpp Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
LimitReadBuffer.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
LZMADeflatingWriteBuffer.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
LZMADeflatingWriteBuffer.h Fty to fix ci 2020-11-12 13:03:10 +03:00
LZMAInflatingReadBuffer.cpp Fix build 2021-02-05 02:14:17 +03:00
LZMAInflatingReadBuffer.h Fty to fix ci 2020-11-12 13:03:10 +03:00
MemoryReadWriteBuffer.cpp Another build fix 2021-02-05 13:31:18 +03:00
MemoryReadWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
MMapReadBufferFromFile.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
MMapReadBufferFromFile.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
MMapReadBufferFromFileDescriptor.cpp Move getPageSize in common 2020-12-17 00:23:41 +03:00
MMapReadBufferFromFileDescriptor.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
MySQLBinlogEventReadBuffer.cpp Try fix review comment 2020-11-19 12:02:43 +08:00
MySQLBinlogEventReadBuffer.h Try fix review comment 2020-11-19 12:02:43 +08:00
MySQLPacketPayloadReadBuffer.cpp remove more stringstreams 2020-11-10 21:22:26 +03:00
MySQLPacketPayloadReadBuffer.h ISSUES-4006 split mysql protocol 2020-08-13 20:41:36 +08:00
MySQLPacketPayloadWriteBuffer.cpp ISSUES-4006 try fix build and style failure 2020-08-14 09:59:59 +08:00
MySQLPacketPayloadWriteBuffer.h ISSUES-4006 split mysql protocol 2020-08-13 20:41:36 +08:00
NullWriteBuffer.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
NullWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
Operators.h Make -- { echo } hint preserve leading comments. 2021-01-18 15:15:46 +03:00
parseDateTimeBestEffort.cpp Added functions parseDateTimeBestEffortUSOrZero, parseDateTimeBestEffortUSOrNull 2021-01-27 17:10:06 +03:00
parseDateTimeBestEffort.h Added functions parseDateTimeBestEffortUSOrZero, parseDateTimeBestEffortUSOrNull 2021-01-27 17:10:06 +03:00
PeekableReadBuffer.cpp Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
PeekableReadBuffer.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
Progress.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
Progress.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
ReadBuffer.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
ReadBufferAIO.cpp Cleanup for #12999. NFC. 2020-07-31 17:53:41 +03:00
ReadBufferAIO.h Some provisions for Android build 2020-07-15 14:16:00 +03:00
ReadBufferFromFile.cpp Fix exception safety in ShellCommand 2020-09-30 03:00:45 +03:00
ReadBufferFromFile.h refactor function 2021-02-16 15:37:49 +03:00
ReadBufferFromFileBase.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
ReadBufferFromFileBase.h Cleanup for #12999. NFC. 2020-07-31 17:53:41 +03:00
ReadBufferFromFileDescriptor.cpp Fix seekable buffer 2021-02-06 19:30:46 +03:00
ReadBufferFromFileDescriptor.h Cleanup for #12999. NFC. 2020-07-31 17:53:41 +03:00
ReadBufferFromIStream.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
ReadBufferFromIStream.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
ReadBufferFromMemory.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
ReadBufferFromMemory.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
ReadBufferFromPocoSocket.cpp Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
ReadBufferFromPocoSocket.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
ReadBufferFromS3.cpp Fix codestyle 2020-07-15 14:15:12 +03:00
ReadBufferFromS3.h Remove namespace pollution 2020-05-31 00:57:37 +03:00
ReadBufferFromString.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
readDecimalText.h add ParsingException 2020-12-23 01:02:01 +03:00
readFloatText.cpp Use fast_float by default 2020-12-06 23:37:36 +03:00
readFloatText.h Fix UBSan report: applying non-zero offset to nullptr 2021-01-04 02:31:47 +03:00
ReadHelpers.cpp Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
ReadHelpers.h Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
ReadWriteBufferFromHTTP.h CC 2021-02-04 22:06:43 +03:00
S3Common.cpp Added SSE-C support in S3 client. 2021-01-28 09:32:41 +03:00
S3Common.h Added SSE-C support in S3 client. 2021-01-28 09:32:41 +03:00
SeekableReadBuffer.h Fix seekable buffer 2021-02-06 19:30:46 +03:00
SeekAvoidingReadBuffer.cpp Minor fixes. 2020-07-13 03:27:51 +03:00
SeekAvoidingReadBuffer.h Added comments. 2020-07-13 07:15:37 +03:00
UncompressedCache.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
UseSSL.cpp Poco contrib refactoring (#10396) 2020-05-08 17:11:19 +03:00
UseSSL.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
VarInt.h Try speedup build (#14809) 2020-09-15 12:55:57 +03:00
WriteBuffer.h Call next() from sync()/finalize() in WriteBuffer 2021-02-13 13:14:11 +03:00
WriteBufferFromArena.h Add final to some classes 2021-02-09 12:05:54 +03:00
WriteBufferFromFile.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferFromFile.h Fix fsync_after_insert by not closing fd from finalize() 2021-01-07 19:30:10 +03:00
WriteBufferFromFileBase.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromFileBase.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromFileDescriptor.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferFromFileDescriptor.h done 2020-07-07 14:45:20 +03:00
WriteBufferFromFileDescriptorDiscardOnFailure.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromFileDescriptorDiscardOnFailure.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromHTTP.cpp Remove namespace pollution 2020-05-31 00:57:37 +03:00
WriteBufferFromHTTP.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromOStream.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferFromOStream.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromPocoSocket.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferFromPocoSocket.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromS3.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferFromS3.h Merge remote-tracking branch 'origin/master' into s3-adaptive-single-part-upload 2020-12-11 18:28:41 +03:00
WriteBufferFromString.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromTemporaryFile.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteBufferFromTemporaryFile.h Check for #pragma once in headers 2020-10-10 21:37:02 +03:00
WriteBufferFromVector.h Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferValidUTF8.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
WriteBufferValidUTF8.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
WriteHelpers.cpp remove other stringstreams 2020-11-09 22:12:44 +03:00
WriteHelpers.h CLICKHOUSE-606: query deduplication based on parts' UUID 2021-02-02 16:53:39 +00:00
WriteIntText.h Slightly better 2021-01-04 21:07:52 +03:00
ya.make Make Poco HTTP Server zero-copy again (#19516) 2021-02-19 15:51:26 +03:00
ya.make.in better 2020-12-16 14:55:33 +03:00
ZlibDeflatingWriteBuffer.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
ZlibDeflatingWriteBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
ZlibInflatingReadBuffer.cpp Fix build 2021-02-05 02:14:17 +03:00
ZlibInflatingReadBuffer.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
ZstdDeflatingWriteBuffer.cpp Do not catch exceptions during final flush in writers destructors 2021-02-05 01:31:45 +03:00
ZstdDeflatingWriteBuffer.h merged 2020-11-29 15:19:19 +03:00
ZstdInflatingReadBuffer.cpp Fix build 2021-02-05 02:14:17 +03:00
ZstdInflatingReadBuffer.h added newlines, fixed formatting 2020-11-17 21:36:18 +03:00