1
0
Fork 0
Commit Graph

85 Commits

Author SHA1 Message Date
KVS85 0000a2d459 Revert "Let the server honour the keep alive timeout (#9477)"
This reverts commit 80c75af552.
2019-09-11 19:25:14 +02:00
Simon 80c75af552 Let the server honour the keep alive timeout (#9477)
* Fix keep alive timeout

* add changelog

* Update CHANGELOG

Co-Authored-By: Jan <jsteemann@users.noreply.github.com>
2019-09-11 13:05:14 +03:00
Frank Celler 9477af198b big reformat 2018-12-26 00:57:05 +01:00
Jan e37576e03c
Bug fix 3.4/fix ssl vst (#6548) 2018-09-19 23:22:40 +02:00
jsteemann 7000f49201 change log level from warning to debug for closed connections 2018-07-20 16:19:41 +02:00
Jan 9ab26ba972
Bug fix/fix hangs (#5808) 2018-07-10 11:39:37 +02:00
Frank Celler efc030ea87 Feature/remove event loop (#5565) 2018-06-11 11:46:17 +02:00
Frank Celler c5ac519d1c Bug fix for Read/Write race [WIP] (#5534)
* added wrapper, added asio_ns
* Temporarily fix condition variable bug in job queue.
* preparation for 3.3 back-port
* clang-format
* removed unecessary check, this is now fixed by stand
* added missing RequestStatistics::SET_READ_END
* cosmetics
2018-06-08 10:51:54 +02:00
Frank Celler baec138715 clang-format 2018-06-07 09:26:11 +02:00
Simon fdee0544b7 Using asio::io_context::strands instead of locks (#5266)
* initial try adding strands

* working, stable amount of threads

* improve shell_client cluster

* Fixing some accounting for the scheduler

* Fix accounting

* Fixing wrong strand usage

* add missing return

* Fixing thread accounting

* More scheduler accounting issues

* Fixing various things

* Fixing some stuff

* Fixing some stuff

* Some more subtle bugfixes

* Some cleanup code

* fixing some stuff

* adding some more fixes

* Fixing possible issues

* Fixing missing _storeResult

* Fixing some stuff

* Reducing lambda stack, perhaps fixing hangups

* Fix writeunlocker

* Fixing possible issues

* adding some debugging stuff

* refactor sockets

* possible fixes

* Adding more job guards

* Fixin possible bug

* cleaning up some stuff

* working impl

* Remove debugging output

* Fixing build

* fixing import

* Fixing another bug

* removing debug log

* Removing examples

* Reverting scheduler working code

* Cleanup

* Addressing review comments
2018-05-07 15:58:19 +02:00
Dan Larkin 934e936bae Fix index selectivity estimate issues with RocksDB engine (#4429) 2018-02-09 16:05:33 +01:00
Max Neunhöffer 666a025b59 Fix a buffer overflow in vst authentication. (#4182) 2018-01-16 00:29:03 +01:00
Simon Grätzer 05d6a9a9f4 Reuse buffers for HttpResponse (#3433) 2017-10-30 17:30:36 +01:00
Jan 5165155ed1 Bug fix/fixes 0609 (#3227)
* do not use V8 variant of AQL functions in early optimization stage when a C++ variant is available

* additionally, simplify AQL function definitions and aliases

* warn when more than 90% of max mappings are in use

* added C++ variant of replication catchup

* added `--log.role` option

* updated CHANGELOG

* removed non-existing scheduler.threads option from config

* removed useless __FILE__, __LINE__ invocations

* updated CHANGELOG

* allow a priority V8 context

* remove TRI_CORE_MEM_ZONE

* try to fix Windows errors & warnings

* cleanup

* removed memory zones altogether

* exclude system collections from collection tests
2017-09-13 16:28:21 +02:00
Jan 6b24529a75 fix small issues found by cppcheck (#2871) 2017-07-26 13:06:31 +02:00
Frank Celler a5a25754ed Feature/reduce extraction to projection (#2792)
* reduce extractions to projections

* recycle string buffers in SocketTask

* micro optimizations for mmfiles indexes

* added special lookup function for _key

* moved function into the correct file

* speed up key buffer allocations a bit

* added noexcept specifier

* correctly name variable

* explicitly move bounds

* fix and speedup from/toPersistent functions

* reuse string from ManagedDocumentResult for multiple lookups

* use move-assign

* a bit less work for single server

* speedup AQL function HASH

* single fetch optimization

* performance optimization for the case when no documents need to be returned

* make reduce-extraction-to-projection a RocksDB-only optimizer rule

* cppcheck

* try to fix compile error on MacOS

* bug fix for MacOSX

* missing namespace (in Windows compile)
2017-07-14 08:40:29 +02:00
Frank Celler 40d73d5a8b Revert "[WIP] Feature/reduce extraction to projection (#2735)"
This reverts commit 5bfcff30cd.
2017-07-12 12:52:14 +02:00
Jan 5bfcff30cd [WIP] Feature/reduce extraction to projection (#2735)
* reduce extractions to projections

* recycle string buffers in SocketTask

* micro optimizations for mmfiles indexes

* added special lookup function for _key

* moved function into the correct file

* speed up key buffer allocations a bit

* added noexcept specifier

* correctly name variable

* explicitly move bounds

* fix and speedup from/toPersistent functions

* reuse string from ManagedDocumentResult for multiple lookups

* use move-assign

* a bit less work for single server

* speedup AQL function HASH

* single fetch optimization

* performance optimization for the case when no documents need to be returned

* make reduce-extraction-to-projection a RocksDB-only optimizer rule
2017-07-12 11:22:29 +02:00
Jan ba1ef89b94 re-introduce one lock for read/write (#2686) 2017-06-28 15:11:56 +02:00
Jan a1a9334b67 unstrand SSL (#2667) 2017-06-27 00:00:34 +02:00
Frank Celler 91d08645f7 Revert/ssl fix (#2662)
* Revert "Bug fix/task locking (#2618)"

This reverts commit 0e0bf7aae3.

* Revert "fix races in SSL communication (#2591)"

This reverts commit b32db87b67.
2017-06-23 17:07:34 +02:00
Jan 0e0bf7aae3 Bug fix/task locking (#2618) 2017-06-20 16:53:20 +02:00
Jan b32db87b67 fix races in SSL communication (#2591) 2017-06-19 17:30:14 +02:00
Frank Celler 655ef21146 moved to 503 2017-06-09 22:50:52 +02:00
Kaveh Vahedipour 54e5bd92b0 fix for closed sockets while async writes were still pending 2017-06-09 21:13:23 +02:00
Frank Celler cf89496faa shutdown will close sockets immediately (#2540) 2017-06-09 16:08:54 +02:00
jsteemann 8add368a78 merged shutdown and close 2017-06-09 14:51:11 +02:00
jsteemann 21ac01fba6 remove unused functions 2017-06-09 12:29:14 +02:00
Frank Celler e997b791a8 fixed lost HTTP requests 2017-03-21 22:51:49 +01:00
jsteemann af17235242 fix too early closing of sockets 2017-02-16 15:42:13 +01:00
jsteemann d024a6d00a remove logging for non-topics 2017-02-10 09:32:50 +01:00
Frank Celler 0da95481ea added locks for keep-alive 2017-02-08 09:41:18 +01:00
Frank Celler 00720cdd29 ignore the result of processAll, try to read more async 2017-02-07 13:33:03 +01:00
Frank Celler e3fe51faa8 better threads working handling 2017-02-06 16:32:55 +01:00
jsteemann 945edacf3f move connection info 2017-02-03 17:43:57 +01:00
Max Neunhoeffer c4d5d982c7 Fix bugs of threads not announcing that they are busy. 2017-01-31 14:07:54 +01:00
jsteemann 43fb70a693 fix double-free issue 2017-01-30 15:32:06 +01:00
Frank Celler e0c00c6de6 improved statistics 2017-01-26 23:43:27 +01:00
jsteemann 34a110a08b mini fixes 2017-01-26 10:49:42 +01:00
Frank Celler fa114470f5 fixes for statistics 2017-01-25 22:31:00 +01:00
Max Neunhoeffer b83df2fbcd Typo in comment. 2017-01-25 15:38:43 +01:00
Jan Christoph Uhde d92101d74c clean up code 2017-01-12 10:28:48 +01:00
Jan Christoph Uhde 4858469bfa try to fix a bug in server that surfaced on heavy load 2017-01-11 15:27:53 +01:00
Jan Christoph Uhde 62eda019c2 Revert "switch immediately to async writes when socket would block during write"
This reverts commit 96067a9315.

The change resulted in a stackoverflow instead of a "hanging" connection
we might need to use something like TCP Keep Alive to handle
disconnected clients. The bug we are currently working on might not be
fixed by TCP Keep Alive as we are in a heavy load situation. Still the
socket should not block during write. It could do so if the client does
not receive the data form the network and the server side networkbuffer
runs full at some point. There might be other situations we are not
aware of.
2017-01-11 10:45:18 +01:00
Jan Christoph Uhde 96067a9315 switch immediately to async writes when socket would block during write 2017-01-10 13:47:31 +01:00
jsteemann a92b49d46e fix races in VST response handling 2017-01-09 17:06:33 +01:00
jsteemann 4f10a6fb9c experimental micro optimizations 2016-12-16 15:52:16 +01:00
Frank Celler 93eb443366 removed left-over merge conflict 2016-12-05 16:36:27 +01:00
Kaveh Vahedipour b464b378bf new transact api for agency 2016-11-23 17:59:48 +01:00
Jan Christoph Uhde b40a18aac1 pass startTime into processRead 2016-11-23 14:06:36 +01:00