Commit Graph

62909 Commits

Author SHA1 Message Date
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
Ondrej Pokorny
c68c22e9e8 don't keep alive connections that failed 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
ae1c809a2d Fix TFPHTTPConnectionThread.Execute repeat loop 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
964a9839d1 Use InterlockedExchangeAdd to get ConnectionCount 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
7ccdcd3d14 Info about active connections 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
52c00037d3 Ignore exceptions 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
6a2f596b8e Remove the KeepAlive* properties from TFPCustomHttpServer, rename KeepAliveEnabled to EnableKeepAlive 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
af47d108af add threadedhttpserver demo 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
676c9a7bf6 Rename KeepAliveSupport->KeepAliveEnabled 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
c67a44c07a Read out KeepAlive only if enabled 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
3814df5b4a set socket options in TSocketStream.SetSocketOptions 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
7d890608b8 comment 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
8bf5eb8322 TFPCustomHttpServer KeepAlive* properties 2021-08-18 14:20:45 +02:00
Ondrej Pokorny
7fbc82a9ff httpserver keep-alive first attempt 2021-08-18 14:20:45 +02:00
Michaël Van Canneyt
6b36229d3c * Allocate min threads 2021-08-17 16:47:00 +02:00
Michaël Van Canneyt
6e8775f2a9 * Add thread pool to fpmake 2021-08-17 16:25:24 +02:00
Michaël Van Canneyt
2e0a88901e * Initial thread pool implementation 2021-08-17 16:21:21 +02:00
Pierre Muller
c426791a1b Also ignore compiler/gppc* pattern 2021-08-17 13:49:05 +00:00
florian
4c1eb4e454 + include -unpushed in revision.inc if not all changes are pushed to the remote 2021-08-17 15:43:53 +02:00
Pierre Muller
b962abc84f Add compiler/revision.inc to .gitignore list 2021-08-17 12:28:25 +02:00
Ondrej Pokorny
400e11e6cf Propagate SSL initialization errors as exceptions 2021-08-17 10:20:25 +00:00
florian
d5dfb73898 + test pastojs with regression tests
* switch extension to .pas for files which shall be ignored
    by the regression tests (they are found by the compiler automatically)
2021-08-16 23:02:09 +02:00
florian
5995a9909b * testjson.pp needs to be compiled in objfpc mode, in particular when
being used in the regression tests
2021-08-16 21:54:54 +02:00
florian
0ff3f04700 * use git describe to create a revision.inc if a .git dir is found 2021-08-16 21:24:49 +02:00