Commit Graph

1828 Commits

Author SHA1 Message Date
An Tao
ee9ca895c7
Fix some bugs in RedisClient (#1303) 2022-07-05 13:47:28 +08:00
Martin Chang
9524a91479
Support compressed request (#1291) 2022-07-02 22:07:48 +08:00
LE GARREC Vincent
b8f44aec2e
Rename BUILD_TRANTOR_SHARED to BUILD_SHARED_LIBS (#1299) 2022-06-29 17:29:20 +08:00
LE GARREC Vincent
e2b5a07921
Fix no BUILD_CTL with tests (#1300) 2022-06-29 17:26:37 +08:00
An Tao
46c00a317f
Throw exceptions instead of exiting when loading configuration fails (#1293) 2022-06-22 23:17:40 +08:00
Nitromelon
81dd4ebd07
Bugfix: fix Mapper::updateBy() async api. (#1290) 2022-06-21 21:01:29 +08:00
Martin Chang
7570137138
Make orm::Result compatiable with C++ STL container concepts (#1281) 2022-06-12 14:09:56 +08:00
timomrs
a42f759248
Add content type to multipart file upload (resolves issue #1252) (#1279) 2022-06-09 20:00:56 +08:00
timomrs
3b5de8863a
Resolve issue #1275 (#1276) 2022-06-07 16:12:22 +08:00
An Tao
ebf87d69d7
Support pipeline mode on PostgreSQL 14+ (#1169)
Co-authored-by: He, Wanchen <hwc14@qq.com>
2022-06-05 21:10:42 +08:00
JuergenGleiss
664d97c185
Feature/drogon ctl add namespce to view (#1245)
drogon_ctl --namespace and --path-to-namespace is allowed. If both parameters are used the value of namespace will be set in front of path-to-namespace
added an example into the template cmake.csp how to use the new optional parameter of drogon_create_views
2022-06-03 15:40:24 +08:00
MQPearth
346e2e6033
Fix deleteFutureByPrimaryKey compile fail (#1271) 2022-06-03 15:30:07 +08:00
An Tao
7af9853589
Clear all database connections before quitting (#1273) 2022-06-03 13:31:56 +08:00
varunsh
a4afc394dc
Check if host header is set before setting (#1269) 2022-05-31 11:20:05 +08:00
Nitromelon
3388c72343
Install missing header file apply.h (#1267) 2022-05-29 18:57:18 +08:00
Nitromelon
8ab868ea22
Check mysql-optionsv support in cmake. (#1265) 2022-05-29 15:17:15 +08:00
Nitromelon
bd4f3814a6
Support controller registration in plugin. (#1259) 2022-05-26 22:30:34 +08:00
Nitromelon
1bc38c7e22
Remove redundant resource release. (#1261) 2022-05-26 12:09:48 +08:00
misirlou-tg
fffb8f7e7c
Fixing link error when linking with static c-ares (#1258) 2022-05-23 14:29:04 +08:00
Particle_G
41d9d7ec58
Add support for custom SQL query (#1241) 2022-05-21 15:23:34 +08:00
Nitromelon
3b11b80b10 Fix core dump causing by logging in destructor. (#1250)
Co-authored-by: Martin Chang <marty1885@users.noreply.github.com>
Co-authored-by: an-tao <antao2002@gmail.com>
2022-05-18 13:25:26 +08:00
An Tao
cd55a198d2
Return nullptr if a plugin is not loaded when gettting it (#1251) 2022-05-17 14:22:29 +08:00
Robert Huang
3b0fd3d676
Fix HttpFile unittest error on Windows (#1191) 2022-05-17 13:20:05 +08:00
JuergenGleiss
19d9ffcfc2
Bugfix/cookie same site test without any useful checks (#1247)
Co-authored-by: an-tao <antao2002@gmail.com>
2022-05-16 11:18:10 +08:00
An Tao
4f2cbd4135
Fix some configuration file issues (#1249) 2022-05-14 13:59:49 +08:00
JuergenGleiss
c5a1888da3
Feature/option same site for session cookie (#1221) 2022-05-08 13:47:18 +08:00
Greisberger Christophe
f017b09947
Added HttpResponse::newStreamResponse() (#1156) 2022-05-02 21:04:41 +08:00
Omar Mohamed Khallaf
e8b21502e2
Add username option to redis databases (#1223)
The Redis AUTH command was extended in Redis 6, so now it is possible to
use it in the two-arguments form:
AUTH <username> <password>
and omitting the <username> defaults to user 'default'.
2022-04-30 00:48:18 +08:00
An Tao
a4ba8aff95
Reset timer afters relauching in Linux (#1232) 2022-04-30 00:45:19 +08:00
Omar Mohamed Khallaf
5892fa2f9f
fix bug when resolving redis server hostname (#1229)
Calling `drogon::app().createRedisClient` from the resolver callback
function results in a failure because of `assert(!running_);` in
`HttpAppFrameworkImpl::createRedisClient`.

This fix uses a promise whose value is set in the callback and the
client creation is done outside the callback.
2022-04-27 16:46:27 +08:00
Omar Mohamed Khallaf
c9c2675ba9
Resolve redis server hostname from config file (#1228) 2022-04-27 13:39:10 +08:00
Nitromelon
bccf509ca0
A workaround for redis sync exec (#1216) 2022-04-25 19:42:25 +08:00
DualWu
86dbf9875b
add typename for clang-14 (#1226)
Co-authored-by: dualwu <dualwu@zelostech.com>
2022-04-25 19:28:06 +08:00
Nitromelon
e53c81b229
Fix HttpClient dns cache. (#1211) 2022-04-22 13:42:39 +08:00
Omar Mohamed Khallaf
d51bae1016
Enable automatic reconnect in mysql (#1217)
Setting MYSQL_OPT_RECONNECT option to true will allow the connection to
be restablished once before giving up and returning an error.

This is useful in cases where the database is behind a loadbalancer
(e.g. ipvs) and the tcp connection is terminated after some period of
time.
2022-04-22 11:12:49 +08:00
DualWu
567e7c07ad
Add move constructor to fix clang-14 compile error (#1222)
https://github.com/drogonframework/drogon/issues/1206
2022-04-22 11:10:50 +08:00
LE GARREC Vincent
8c4896dfec
Fix tolower with cfi sanitizer (#1209) (#1210)
and update trantor with same patch.
2022-04-22 11:08:40 +08:00
Nitromelon
6971f84dae
Fix mutex lock missing. (#1214) 2022-04-14 16:52:04 +08:00
An Tao
3d3daef3c5
Fix a bug when stopping redis service (#1205) 2022-03-28 11:23:33 +08:00
faker
740c34fce3
To avoid accessing a null point, make sure result == OK before accessing the response ptr. (#1195) 2022-03-26 17:02:58 +08:00
An Tao
dd63a72dab
Update issue templates 2022-03-01 13:58:37 +08:00
Martin Chang
b9bbe45642
Fix XXXControllers created on MSVC even if specsfied not to do so (#1183)
Co-authored-by: marty1885 <marty1885@gmail.com>
2022-02-26 00:19:48 +08:00
davidschedler
b8a6188ad5
Add ‘not like‘ criteria (#1182) 2022-02-23 09:34:51 +08:00
an-tao
fc68b8c92c Bump version to 1.7.5 2022-02-19 18:42:49 +08:00
Ichiro
09a351d032
Format code controller autogen (#1138) 2022-02-19 09:37:11 +08:00
davidschedler
0e3ee5fad0
Fix missing "using namespace drogon::orm;" at autogenerated restful controller (#1178) 2022-02-16 11:10:13 +08:00
Ichiro
4b31f93767
Add Not In for ORM Criteria (#1176) 2022-02-12 21:59:49 +08:00
Kirill
3c785326c6
Prevent malformed upload path causing arbitrary write (#1174) 2022-02-11 23:54:42 +08:00
Robert Huang
8ed0434ad8
Remove unused variable and fix compile error (#1171) 2022-02-03 22:33:50 +08:00
An Tao
26c8c0b527
Update trantor (#1166) 2022-01-28 17:25:34 +08:00