Commit Graph

1347 Commits

Author SHA1 Message Date
interfector18
f29a29f2ba
Fix two building corner cases, CMake quality of life impovments (#766) 2021-03-24 10:32:55 +08:00
an-tao
e5c9c3a947 Update README 2021-03-23 23:13:20 +08:00
An Tao
0bf37c6052
Remove an assertion statement in the HttpClientImpl class (#764) 2021-03-23 14:36:20 +08:00
klaus triendl
bd9a149059
Use canonical way of calling max() function on Windows (#763) 2021-03-23 08:37:26 +08:00
Martin Chang
9da122a189
print error and exit when IP parsing failed in server startup (#758) 2021-03-20 00:13:58 +08:00
An Tao
d22ce4a848
Fix a bug when creating sqlite3 models (#756) 2021-03-18 01:17:37 +08:00
an-tao
4f0d29129e Revert trantor 2021-03-14 17:24:02 +08:00
JuergenGleiss
79f480c17d
Bugfix/restful api dump invalid json (#748) 2021-03-14 17:20:15 +08:00
Martin Chang
490948bb38
remove 'SSL validation' comment from HttpClient (#752) 2021-03-14 13:55:21 +08:00
An Tao
6d9aa3b44c
Add redis support (#719) 2021-03-13 19:13:54 +08:00
Roque
df04c47f74
Fix build.sh missing nproc error in build for macOS (#751) 2021-03-13 18:56:16 +08:00
Bertrand Darbon
1dfaaac5d0
Add Arch Dockerfile (#749) 2021-03-13 12:27:07 +08:00
JuergenGleiss
29a1659085
Feature/orm convert method (#739) 2021-03-12 10:41:20 +08:00
Roque
ed5ceb019d
Fix compilation errors for TimeFilter example (#743) 2021-03-12 08:11:29 +08:00
Bertrand Darbon
bcd8e27a36
feature(signal): Add option to disable signal handling (#742) 2021-03-11 22:03:02 +08:00
双草酸酯
1901801d59
Fix compile warnings in SQL client (#741) 2021-03-11 18:43:56 +08:00
Roque
71269e0179
Fixes on some name words typos (#738)
Co-authored-by: roque <roque@roque.pl>
2021-03-10 09:03:59 +08:00
an-tao
5dc02c3476 Bump version to 1.4.1 2021-03-07 20:42:32 +08:00
an-tao
e28b9aa59c Fix the same bug in the DbClientLockFree class 2021-03-07 20:40:35 +08:00
An Tao
b30c92a9a2
Fix a bug of DbClientImpl class (#735) 2021-03-07 01:28:49 +08:00
an-tao
cd389aec13 Bump version to 1.4.0 2021-03-05 23:06:16 +08:00
Martin Chang
98da3490e7
return awaiter from coroutine instead of resumable (#733) 2021-03-05 22:21:02 +08:00
Martin Chang
8bd1f5684e
Fix drogon::Task<> not destructing internal object (#729) 2021-03-01 13:36:03 +08:00
JuergenGleiss
af2bd6ba69
HttpRequest: add feature to avoid url encoding of path (#730) 2021-02-28 23:42:15 +08:00
An Tao
ef51951785
Make projects created by dg_ctl support coroutines (#727) 2021-02-27 17:39:13 +08:00
an-tao
0995749dec Update trantor 2021-02-23 14:03:10 +08:00
Martin Chang
cde19a1f57
Valivate certificate in HttpClient (#726)
Co-authored-by: an-tao <antao2002@gmail.com>
2021-02-22 11:45:33 +08:00
An Tao
0f5721119c
Support SNI in the HttpClient class (#724) 2021-02-21 16:05:58 +08:00
An Tao
ffda84627b
Modify Mapper and CoroMapper templates (#722) 2021-02-20 10:00:28 +08:00
an-tao
fd720d55d9 Modify FindMySQL.cmake 2021-02-17 10:02:52 +08:00
Martin Chang
4210dbce07
Revert OS X CI fix (#721) 2021-02-17 09:58:33 +08:00
An Tao
eb2d24197a
Fix the error when SSL handshake fails (#717) 2021-02-15 09:15:26 +08:00
interfector18
12cfdd5916
Lowercase all http headers, add webp and avif types (#718) 2021-02-15 09:14:54 +08:00
An Tao
3b8b63d17d
Add drogon::orm::CoroMapper<T> template (#712)
Co-authored-by: marty1885 <marty188586@gmail.com>
2021-02-13 18:22:17 +08:00
An Tao
cfb71cc619
Add transactions test of coroutines (#711) 2021-02-10 23:24:15 +08:00
mbehboodian
33044c823f
Fix typo in README.md (#708) 2021-02-07 17:08:41 +08:00
Martin Chang
0b5920a1f3
Fix stack use after scope error in client_example (#707) 2021-02-07 10:35:21 +08:00
interfector18
6542236b20
Add default value interface to sqlbinder for mysql and postgresql (#704) 2021-02-07 10:34:49 +08:00
An Tao
4c577e6fa9
Fix compilation errors on vs2019 (#706)
Fix compilation errors on VS2019 when coroutines are enabled
2021-02-06 19:53:30 +08:00
Martin Chang
a2142dd93e
Coroutine support (#693)
* app().registerHttpHandler() accepts coroutine as handlers
* HttpController can use coroutine as handlers'
* Http request handlers with coroutine catches exception instead of crashing the entire app
* DbClient now has execSqlCoro that is awaitable
* DbClient now has newTransactionCoro that is awaitable
* HttpClient have awaitable sendRequestCoro
* WebSocketClient have awaitable connectToServerCoro
* WebSocketClient have setAsyncMessageHandler and setAsyncConnectionClosedHandler
* drogon::AsyncTask and drogon::Task<T> as our corutine types
* Related tests
* Misc

Future work
* Coroutine for WebSocket server
* Known issues

co_future() and sync_wait may crash. It looks like GCC bug but I'm not sure.
Workarround: Make an coroutine of AsyncTask. Then launch said coroutine.
Not sure why wrapping the exact same thing in function crashes things.

Co-authored-by: an-tao <antao2002@gmail.com>
2021-02-06 17:05:58 +08:00
An Tao
7ce5768372
Return 404 or 405 responses correctly (#705) 2021-02-06 15:16:44 +08:00
An Tao
5426100bde
Fix a error in the HttpClient class when a response has no content-length header (#698) 2021-02-03 14:54:45 +08:00
Martin Chang
a060351f7a
Fix CI fail on OS X (#699) 2021-02-03 13:10:08 +08:00
双草酸酯
2919fdb7d4
Handle cross compiling properly (Fix for #654) (#694) 2021-01-24 22:44:20 +08:00
Martin Chang
0168cd0574
Bump version in CMakeLists.txt to 1.3.0 (#692) 2021-01-17 12:03:27 +08:00
an-tao
1bbc457f0d Bump version to 1.3.0 2021-01-16 22:13:26 +08:00
丁盟
64e916ccb3
Fix an error with missing composite key to sqlite3 ORM generator (#673) 2021-01-05 22:14:31 +08:00
An Tao
f26450f04b
Fix an error in sqlite3 ORM generator (#669) 2020-12-30 20:11:24 +08:00
An Tao
66fbb33956
Add format check to actions (#668) 2020-12-26 14:39:38 +08:00
Jiannan Liu
4b5885e3c0
Serve wasm files with the correct MIME type (#667) 2020-12-26 12:21:43 +08:00