Commit Graph

63067 Commits

Author SHA1 Message Date
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
Pierre Muller
3da7d62b1a Add support for hash generation for git repository (local modifier not implemented) 2021-08-18 12:00:07 +02:00
florian
3e3f99c328 * properly check if -unpushed should be appended in revision.inc 2021-08-18 10:49:42 +02:00
mattias
4401ef32bb pastojs: emulate compile time assign integer constant of different type 2021-08-18 09:45:26 +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
Yuriy Sydorov
07dcd22b1c * sizeof(array) and length(array) must return sizeUint in case the array
size does not fit in sizeint. This fixes a range check error during
  compilation on small CPU targets where allowed array size is 64K, but
  sizeint is 32K max.
2021-08-16 21:54:46 +03:00
Ondrej Pokorny
40c359a551 TFPCustomHTTPClient: do not reconnect when terminated 2021-08-16 18:51:02 +00:00
florian
2efaee6d85 * include fcl-json in 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 20:20:46 +02:00
Yuriy Sydorov
3ca73da912 * In TP-style INLINE, allowed the > modifier for global vars and relaxed range checks. 2021-08-16 17:36:12 +03:00
Ondrej Pokorny
fdaa1a12d0 fphttpclient: new DoDataWrite/OnDataSent event 2021-08-16 13:59:51 +00:00
Yuriy Sydorov
bd814c58c3 * Instruct GitLab to use the Pascal syntax highlighter for .pp and .inc files. 2021-08-16 16:32:00 +03:00
Yuriy Sydorov
fc3685819c + Added a test for the TP-style INLINE() statement. 2021-08-16 16:12:47 +03:00
Ondrej Pokorny
d502a38f20 TFPHTTPConnection: clear FBuffer when read from it in ReadRequestContent 2021-08-16 11:33:53 +02:00
Ondrej Pokorny
675312c201 *http client: rewind RequestBody in SendRequest 2021-08-16 07:04:20 +02:00
Yuriy Sydorov
64ddf22e1b * TP compatibility: For retro CPUs always copy the function result to
the register(s) on function exit if assembler blocks are present.
2021-08-16 00:40:34 +03:00
Yuriy Sydorov
c78e9557f8 * Added support for the old Turbo Pascal INLINE(data/data/...) statement.
It is available only in the TP mode.
2021-08-16 00:40:34 +03:00
Yuriy Sydorov
122ed4b76a * Support for sleb128 and uleb128 constants in the NASM writer.
* Added sleb128tostr() and uleb128tostr() methods to TExternalAssembler.
* Use these methods in assembler writers instead of code duplication.
2021-08-16 00:40:34 +03:00
Ondrej Pokorny
5479663e56 Move GetStatusCode from fphttpserver.pp to httpprotocol.pp in order to use it outside fphttpserver 2021-08-15 11:47:01 +00:00
Ondrej Pokorny
c64c0e617d fphttpclient keepalive: failed socket operations raise exceptions - try to reconnect also in this case 2021-08-15 11:39:05 +00:00
florian
246bff92d2 + include fcl-passrc in regression tests 2021-08-15 11:51:42 +02:00
Karl-Michael Schindler
dd4b4af6a5 compiler/msg/errord*.msg: Update of German error messages 2021-08-14 23:48:45 +02:00
FPK
bc2ed1a560 Merge branch 'main' into 'main'
Remove "r" from FPC revision.

See merge request freepascal.org/fpc/source!7
2021-08-13 20:39:18 +00:00
Michaël Van Canneyt
5022d0e772 Merge branch 'main' of gitlab.com:freepascal.org/fpc/source into main 2021-08-13 14:09:43 +02:00
Michaël Van Canneyt
a7d608dd43 * Add DB testsuite config file to ignore list 2021-08-13 14:09:34 +02:00
Yuriy Sydorov
07698050e5 * Before r35961 (back in 2017) some simple assignment optimizations, such as "x:=x+y" to "inc(x,y)", were performed when -O2 in tassignmentnode.simplify. In r35961 these optimizations were moved to a separate pass which is enabled only when -O3 by cs_opt_use_load_modify_store. This separate pass can benefit from other optimization. But worse code is generated with -O2 since then.
This commit restores applying of simple assignment optimizations when -O2.
2021-08-13 13:53:40 +03:00