Commit Graph

1698 Commits

Author SHA1 Message Date
Ken Matsui
75b106599d
Implement QueryBuilder (#1331) 2023-05-22 09:52:19 +08:00
Muhammad
7fce0f1ff5
Hodor plugin - Use IP bytes for user IP identification (#1606) 2023-05-19 23:34:15 +08:00
Muhammad
87a3132fd1
Fixed logic error of limiterExpireTime_ (#1605) 2023-05-13 23:26:13 +08:00
An Tao
abf6f6cc86
Fix a hanging bug when writing large string to text field (postgresql) (#1599) 2023-05-11 09:55:40 +08:00
Ken Matsui
bd66fa4f55
Remove path from COMPILER_COMMAND (#1590) 2023-05-09 19:24:00 +08:00
Nitromelon
5baca75359
Bugfix: PgBatchConnection did not report error message. (#1588) 2023-05-09 19:20:23 +08:00
An Tao
29984f26e0
Revert modifications to the type of clientMaxBodySize (#1596) 2023-05-09 19:18:10 +08:00
Sqeaky
fddbc0abb7
Update SqlBinder.h (#1595)
On a fully updated Rasperry Pi OS using Raspberry Pi OS 2023-05-03 Drogon built fine, but a project linking to/including drogon would fail to build with `/usr/local/include/drogon/orm/SqlBinder.h:70:1: error: body of ‘constexpr’ function ‘constexpr T htonT(T) [with T = long unsigned int]’ not a return-statement 70 | }`.

Compiler details:
    $ gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/10/lto-wrapper
    Target: aarch64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 10.2.1 20210110 (Debian 10.2.1-6)

This is a proposed fix for this issue that adjusts this function to be a pair of IFDEFed return statements based on network byte order as the original function appeared to intend. This makes it so the function body is entirely a single return statement on each platform. 

The error message from the C++17 compiler (which is the latest version supported on Raspberry Pi OS currently) indicates that constexpr functions must be entirely single return statements.
2023-05-09 17:23:47 +08:00
Omar Mohamed Khallaf
bf4ff759ad
Fix typo in config (#1593)
change 'enabled_compresed_request' to 'enabled_compressed_request'
2023-05-08 23:37:52 +08:00
Kumar Arnav
42bbc185e1
Fix #1497 (#1592) 2023-05-08 09:46:34 +08:00
an-tao
8b250f8638 Update trantor 2023-05-04 10:34:35 +08:00
Martin Chang
178fb22b49
update trantor (#1579) 2023-04-29 16:41:49 +08:00
Charles
2caa8c4a34
Add webp and svg to the default file_types (#1575) 2023-04-27 15:19:33 +08:00
Horribile
4ec75e03e0
Possibility to add plugins without config file (#1572) 2023-04-24 19:42:52 +08:00
monoliths
22c7567da3
Fix error: conversion from ‘long int’ to ‘Json::Value’ is ambiguous (#1573) 2023-04-23 14:48:47 +08:00
An Tao
f615d5e8df
Add the forwardCoro method to HttpAppFramework (#1570) 2023-04-19 13:29:11 +08:00
An Tao
f14ba8de28
Update the README.md (#1567) 2023-04-18 17:17:56 +08:00
timulations
7c96c7fbf5
Fix bug on Mac M1 with redis chat example code (#1566) 2023-04-17 23:08:17 +08:00
An Tao
65b1715539
Add the DROGON_EXPORT macro to the GlobalFilters plugin (#1565) 2023-04-16 13:42:46 +08:00
an-tao
4358b71f55 Add filters and plugins to the drogon.h header file 2023-04-16 12:15:27 +08:00
An Tao
c7912f246b
Add the GlobalFilters plugin (#1555) 2023-04-16 11:55:00 +08:00
An Tao
d133b21804
Modify the HttpMessageBody class (#1564) 2023-04-16 11:54:11 +08:00
An Tao
ad2798e4aa
Adapt to gcc13 (#1563) 2023-04-16 09:30:37 +08:00
Martin Chang
abee656699
remove docsforge from readme (#1560)
Co-authored-by: marty1885 <marty1885@gmail.com>
2023-04-08 16:39:48 +08:00
an-tao
292d677446 Update trantor 2023-04-03 09:33:33 +08:00
An Tao
0715a94a06
Add avatars of all contributors to the readme file (#1553) 2023-04-01 18:52:42 +08:00
Justen Di Ruscio
5df4db96a5
Fix generation of JSON field validation for short type. (#1549) 2023-03-31 10:49:48 +08:00
Martin Chang
122a42cd4f
Adapt Drogon to take advitange of Trantor TLS refactor (#1505)
Co-authored-by: marty1885 <marty1885@gmail.com>
2023-03-30 23:14:53 +08:00
An Tao
120aaf249d
Remove the deprecated Json::Reader (#1546) 2023-03-26 17:03:19 +08:00
Nitromelon
f0a011b14d
Use syncAdvices.empty() to check. (#1545) 2023-03-25 17:37:33 +08:00
Tanglong3bf
e25a162887
Add synchronization interface to model's associated query (#1531) 2023-03-25 16:27:08 +08:00
An Tao
02742e4518
Fix a configuration error when building drogon_ctl (#1544) 2023-03-24 10:20:25 +08:00
Nitromelon
4f066258f2
Temporary fix dead HttpClient. (#1542) 2023-03-21 14:51:37 +08:00
An Tao
ceab5f3037
Bump version to 1.8.4 (#1539) 2023-03-20 23:31:07 +08:00
An Tao
21e207abe5
Add a cmake option to use yaml-cpp or not (#1538) 2023-03-20 19:02:13 +08:00
Martin Chang
c63b021e7d
Hold shared pointer from the very beginning (#1537) 2023-03-18 18:38:55 +08:00
Martin Chang
2af8e47278
Trigger error message in drogon test when faced with bad parameter (#1495) 2023-03-14 22:43:50 +08:00
Nitin Anand
00debb056b
Changes to free http client if no request is pending (#1529) 2023-03-14 22:41:52 +08:00
Hayden Zhou
af551bf2fb
fix missing symbol '@' (#1532) 2023-03-13 22:23:32 +08:00
Ostropik
b229f74743
Fix namespaces (#1528)
Co-authored-by: Ostropik <Dmytro.OSTROPITSKYI@ingenico.com>
2023-03-13 17:44:00 +08:00
An Tao
a039157587
Fix loading configuration on windows (#1530) 2023-03-12 18:47:21 +08:00
An Tao
97a5496fa4
Add queueInLoopCoro function (#1526) 2023-03-09 16:44:34 +08:00
Nitromelon
314bab0b4c
Add switchThreadCoro(). (#1501) 2023-03-09 12:13:51 +08:00
Martin Chang
ab5259b290
Add coroutine to wait until event loop ends (#1500) 2023-03-09 10:13:18 +08:00
Hayden Zhou
d4c0e063f1
Add support to yaml config file. (#1521)
Co-authored-by: an-tao <antao2002@gmail.com>
2023-03-09 00:17:11 +08:00
An Tao
57ec87d38d
Add an option in CMakeLists.txt to set how to use trantor (#1520) 2023-03-09 00:16:21 +08:00
An Tao
b739a7fab8
Update ConfigLoader.cc (#1524) 2023-03-07 17:01:23 +08:00
An Tao
394f9bd0d4
Add the stackLimit option for jsoncpp (#1518) 2023-03-01 10:49:25 +08:00
Nitromelon
bc028776f7
Refactor HttpServer codes. (#1508) 2023-02-28 10:19:26 +08:00
An Tao
d321bd4fc1
Fix a conan issue in github actions (#1517) 2023-02-27 14:30:38 +08:00