kakwa
443e7a2f1c
increasing the size of the test keys
2016-09-09 00:02:24 +02:00
kakwa
14852855b9
enabling multi-threads support
...
as TS_RESP_CTX is not thread safe, this commit implement a pool of
TS_RESP_CTX in which a thread can pick one in a thread safe maner.
* implement a ts_resp_ctx_wrapper containing a TS_RESP_CTX and a
lock and bool to mark the availability of the TS_RESP_CTX
* implement the get_ctxw to recover a given TS_RESP_CTX in a thread safe
maner
* adapt the rest of the code to accomodate the new way of doing things
* set the default number of threads to 10 as it's now safe to do so
2016-09-08 23:21:53 +02:00
kakwa
de4f796b33
enable num_threads > 1 in the test configuration
2016-09-08 23:20:25 +02:00
kakwa
fcea2e8fc8
making the stress.py stress test executable
2016-09-08 23:19:51 +02:00
kakwa
fb13156844
adding a switch to disable request debug log treatement
2016-09-08 21:18:15 +02:00
kakwa
29defe1610
switching success log to debug
2016-09-08 21:17:35 +02:00
kakwa
b962e31461
adding a ts request file for tests
2016-09-08 20:44:52 +02:00
kakwa
7249db64f5
adding a small stress script
2016-09-08 20:44:28 +02:00
kakwa
08dcf50add
fix the ssl certificate creation script
2016-09-07 21:45:48 +02:00
kakwa
e2e254480a
small improvement on test script
2016-09-07 21:43:15 +02:00
kakwa
235f23bcac
adding a small external test
2016-09-07 21:41:21 +02:00
kakwa
604e509ea7
removing osx as a targeted platform (kind of useless)
2016-09-07 21:34:12 +02:00
kakwa
dc7c599216
adding link option for bundleling
2016-09-07 21:33:07 +02:00
kakwa
284b3be90b
trying to fix the cmake version issue
2016-09-07 21:29:18 +02:00
kakwa
a36e06bc09
adding travis badge
2016-09-07 21:19:27 +02:00
kakwa
718535713d
adding a travis file for continuous integration
2016-09-07 21:17:21 +02:00
kakwa
5950ff1286
documenting the civetweb bundleling
2016-09-07 21:14:12 +02:00
kakwa
6d48931d1d
adding gitignore
2016-09-07 21:02:02 +02:00
kakwa
5e91614dd4
implementing a way to recover civetweb as an external project
2016-09-07 20:59:10 +02:00
kakwa
e3a631f41b
removing vendor directory
2016-09-07 20:56:56 +02:00
kakwa
8e292c0a15
remove submodule for civetweb
2016-09-07 20:56:02 +02:00
kakwa
a8fb3636ae
adding a few sections
2016-09-06 09:05:55 +02:00
kakwa
f8587e497f
fix link to openssl project
2016-09-06 09:03:54 +02:00
kakwa
1f5e6ec1dc
better README file
2016-09-06 09:02:50 +02:00
kakwa
50afe67175
better help in command line
2016-09-06 08:51:48 +02:00
kakwa
612dedad64
a little temporary fix concerning the lack of multithread support
2016-09-05 23:24:41 +02:00
kakwa
1135fefb79
better handling of error codes
2016-09-05 23:20:29 +02:00
kakwa
bf2fc90e30
fix segfault in case of a bad request
...
* if the request is wrong, the request handler tried to access the
none allocated serial, which crashes the process.
2016-09-05 23:09:00 +02:00
kakwa
33072aefe1
fixing memory leak on query data
2016-09-05 22:37:03 +02:00
kakwa
3d020cf26f
fix more memleaks
2016-09-05 20:48:50 +02:00
kakwa
503a09aa58
fix some memory leaks on openssl context cleanup
2016-09-05 20:24:47 +02:00
kakwa
d247816f5b
fix memleak
2016-09-05 20:06:15 +02:00
kakwa
ef05f393de
some code cleaning
2016-09-02 08:18:48 +02:00
kakwa
668067e057
fix another memleak
2016-09-02 08:12:38 +02:00
kakwa
5f1c5de4ad
adding a function to free the ssl context
2016-09-02 08:00:04 +02:00
kakwa
b3b3014873
just to be safe, strlen + 1 allocated
2016-09-02 07:43:39 +02:00
kakwa
1454ea4880
better memory management and extraction of the openssl initialization
2016-09-02 07:42:23 +02:00
kakwa
16a34d9c7d
implement better query and response logging
...
* recover the serial
* add the serial in many logs
* add response log
* add timer
2016-09-02 00:36:25 +02:00
kakwa
d36c2b4286
use only one thread (concurrency issues for now)
2016-09-02 00:35:39 +02:00
kakwa
b44af1e309
fix command line in case the pid file is not set
2016-09-01 21:10:26 +02:00
kakwa
e830436735
fixing test configuration to new relative path policy
2016-09-01 19:55:55 +02:00
kakwa
d483d6faee
adding *.pid in gitignore
2016-09-01 19:55:25 +02:00
kakwa
77cd1dba5c
fix the way relative paths are handled and pid file handler
...
* add a pid file option on command line + implement it
* make the relative path in conf param relative to the configuration
file directory and not the running directory
2016-09-01 19:43:29 +02:00
kakwa
d8f75a23f5
code reformatting
2016-09-01 08:29:07 +02:00
kakwa
7f8d992f56
fix default log_level, and fix chdir
...
* the chdir was done after the loading of the conf file, reversing it
* in case log_level is not set, the application would segfault, now
handled properly (default is info)
* remove logging to the daemon facility
2016-09-01 08:25:28 +02:00
kakwa
7401799cb5
fix ordering between daemonize and get working dir
2016-09-01 08:13:57 +02:00
kakwa
d6a7ba86ff
passing the launch working dir to the configuration handler
...
as many configuration paths can be relative to the execution working
directory, this directory is recorded at launch time, and the set_params
function does a chdir(<start work dir>); <load conf>; chdir("/") when
it's called.
2016-09-01 07:59:02 +02:00
kakwa
d91fbe377e
implementing a somewhat proper signal handler
2016-08-31 07:57:51 +02:00
kakwa
fa7dabcb81
source formatting
2016-08-31 07:37:13 +02:00
kakwa
f22c4cfc87
fix ordering between start log and actual start
2016-08-31 07:36:27 +02:00