Commit Graph

12743 Commits

Author SHA1 Message Date
Sven Barth
be069c8fa8 * fix #39329: adjust visibilties of PT and TArr in TVector<> and TDeque<> so that they can be correctly used either by descendants or users outside of the class 2021-09-01 09:31:50 +02:00
florian
5d9968366b * fix test for targets with FPC_COMP_IS_INT64 defined 2021-09-01 09:31:15 +02:00
Bernd Kreuss
19062ce8af gdeque: remove unused variable 2021-09-01 09:29:51 +02:00
Michaël Van Canneyt
52c8ac0ca0 * Fix by Mark Paley to add IfThen for StringList and TStringDynArray. Issue #39314 2021-09-01 09:29:50 +02:00
mattias
b2d2c5dde3 fcl-json: fixed testjson.lpi 2021-09-01 09:29:50 +02:00
mattias
4fdeada0a5 pastojs: emulate compile time assign integer constant of different type 2021-09-01 09:29:50 +02:00
Michaël Van Canneyt
955e495c21 * Websockets & examples 2021-09-01 09:13:50 +02:00
Michaël Van Canneyt
5dc1d5e93b * Better SetfieldByName/GetFieldByName 2021-09-01 08:46:09 +02:00
Michaël Van Canneyt
54e0d97278 * Fix possible buffer overflow, issue #39330 2021-09-01 08:43:56 +02:00
Michaël Van Canneyt
8c5446a03f * Update handler functionality 2021-09-01 08:42:52 +02:00
Ondrej Pokorny
ae0cf1b50f * don't execute DoBeforeDataRead unless OnIdle is set 2021-08-29 17:19:44 +00:00
Michaël Van Canneyt
35c45dfbe5 * More clear variable names 2021-08-29 18:13:59 +02:00
Ondrej Pokorny
cb05049c4f * TSocketHandler.Select: set LastError 2021-08-29 16:09:10 +00:00
Ondrej Pokorny
14dd153736 * http client: KeepConnectionReconnectLimit to prevent a dead-lock when a server is not available 2021-08-29 16:08:29 +00:00
Ondrej Pokorny
5979e464c6 * check LastError from CanRead() 2021-08-29 16:49:13 +02:00
Ondrej Pokorny
1083746abf * check for LastError coming from CanRead() 2021-08-29 16:44:39 +02:00
Ondrej Pokorny
df6d289693 * fphttpclient: add new OnIdle event to keep the client responsive in case the server needs a lot of time to respond (and to be able to terminate the request while waiting for data) 2021-08-29 11:35:15 +00:00
Ondrej Pokorny
f6587d9505 * fphttpclient: add new OnIdle event to keep the client responsive in case the server needs a lot of time to respond (and to be able to terminate the request while waiting for data) 2021-08-29 13:33:39 +02:00
Michaël Van Canneyt
56c3b5b2cd * Use FreeAndNil to clear field 2021-08-29 13:02:45 +02:00
Ondrej Pokorny
bfa0c60e77 * destroy FList in the destructor of TFPHTTPServerConnectionListHandler 2021-08-29 12:50:41 +02:00
Michaël Van Canneyt
9b8a6438c7 * 64-bit ID for 64-bit platforms 2021-08-28 10:38:26 +02:00
Michaël Van Canneyt
72213d42da * Negative time value waits forever 2021-08-28 10:38:26 +02:00
Ondrej Pokorny
bbb01506c7 * windows compilation 2021-08-27 21:23:01 +02:00
Michaël Van Canneyt
87e9958429 * Allow to read handler 2021-08-21 09:03:56 +02:00
Michaël Van Canneyt
58b252705e * Allow to compile also non-windows,linux 2021-08-20 10:06:38 +02:00
Michaël Van Canneyt
74ebc15596 * Select calls 2021-08-20 10:00:15 +02:00
Ondrej Pokorny
4697de9379 Keep-Alive fixes 2021-08-19 10:45:13 +00:00
Michaël Van Canneyt
c632736197 * No wait loop, use event 2021-08-18 23:08:14 +02:00
Michaël Van Canneyt
e6f40c196a * Make sure size is set after return 2021-08-18 22:26:09 +02:00
Michaël Van Canneyt
bb9a1af248 * Add interceptor (middleware) functionality to router + Demo 2021-08-18 22:25:28 +02:00
Michaël Van Canneyt
5a6bea6180 * Fix some debug output 2021-08-18 22:24:41 +02:00
Michaël Van Canneyt
a68a6415f2 * Request ID and connection ID for logging purposes 2021-08-18 16:37:09 +02:00
Michaël Van Canneyt
4ac009846c * Smaller idle timeout 2021-08-18 16:36:29 +02:00
Michaël Van Canneyt
ab7de66471 * Working thread pool 2021-08-18 16:10:30 +02:00
Michaël Van Canneyt
db0d1501e0 * Correct property name 2021-08-18 14:39:30 +02:00
Michaël Van Canneyt
181653162c * Finish merge & rebase 2021-08-18 14:38:31 +02:00
Michaël Van Canneyt
f7265bf79e * Some command-line options 2021-08-18 14:32:24 +02:00
Michaël Van Canneyt
5bf9de22d6 Thread pool start 2021-08-18 14:32:24 +02:00
Michaël Van Canneyt
f6c476ae79 * Start of thread pool. 2021-08-18 14:32:24 +02:00
Ondrej Pokorny
ed861e5343 don't keep alive connections that failed 2021-08-18 14:31:32 +02:00
Ondrej Pokorny
410916ab6b Fix TFPHTTPConnectionThread.Execute repeat loop 2021-08-18 14:31:32 +02:00
Ondrej Pokorny
8fc1bc276f Info about active connections 2021-08-18 14:30:31 +02:00
Ondrej Pokorny
c4e2029179 Ignore exceptions 2021-08-18 14:30:31 +02:00
Ondrej Pokorny
da10b8141c Remove the KeepAlive* properties from TFPCustomHttpServer, rename KeepAliveEnabled to EnableKeepAlive 2021-08-18 14:29:37 +02:00
Ondrej Pokorny
bf2e3bf51a add threadedhttpserver demo 2021-08-18 14:28:26 +02:00
Ondrej Pokorny
722a37ab2f Rename KeepAliveSupport->KeepAliveEnabled 2021-08-18 14:26:54 +02:00
Ondrej Pokorny
eaffd1deca Read out KeepAlive only if enabled 2021-08-18 14:25:47 +02:00
Ondrej Pokorny
1d18f2fdbf comment 2021-08-18 14:24:12 +02:00
Ondrej Pokorny
162ecdc543 TFPCustomHttpServer KeepAlive* properties 2021-08-18 14:24:12 +02:00
Ondrej Pokorny
9d9128a747 httpserver keep-alive first attempt 2021-08-18 14:23:28 +02:00