bel
ab7c42ae84
Activate Lua and Duktape in CI build
2015-10-12 22:31:34 +02:00
bel
9a9a424511
Duktape: Add http_headers
2015-10-12 21:23:59 +02:00
bel
870772a0b7
Duktape: Add test for civetweb.getoption
2015-10-09 22:27:31 +02:00
bel
e9860d7180
Duktape example: show content of civetweb specific javascript objects
2015-10-09 21:43:16 +02:00
bel
4189a556ab
Fix Duktape test: rename function in test
2015-10-09 20:33:14 +02:00
bel
204ffed2d7
Duktape: get civetweb options
2015-10-08 22:53:08 +02:00
bel
4e7fccf811
Duktape: Add 'civetweb' object
2015-10-07 22:09:04 +02:00
bel
f3fe12c519
Duktape: Add integer connection properties
2015-10-06 21:17:52 +02:00
bel
e7599ba6ef
Duktape: Add connection string properties
2015-10-06 21:14:59 +02:00
bel
799a8e0f19
Duktape: Store connection object as internal property on the Ecmascript function object
...
According to hint in https://github.com/svaarala/duktape/issues/392#issuecomment-145301651
2015-10-05 21:36:06 +02:00
bel
4de9090577
Apply revised clang-format ( #207 ) to all actively maintained source files
2015-10-05 20:58:14 +02:00
bel
8d901773ca
Modify clang-format according to #207 (see comment)
2015-10-05 20:52:25 +02:00
bel
1494876a16
Modify clang-format according to #207
2015-10-05 20:45:36 +02:00
bel
61b84458d2
Duktape: Store conn as internal property on the Ecmascript function object
...
See https://github.com/svaarala/duktape/issues/392#issuecomment-145301651
2015-10-04 21:58:07 +02:00
bel
9308cbd16d
Duktape: Create 'conn' object with 'read' and 'write' function
2015-10-04 21:07:57 +02:00
bel
f24cb97bf8
Duktape: Use internal properties (prefixed by \xFF).
...
According to the documentation http://duktape.org/guide.html#internalproperties
and reccomendations https://github.com/svaarala/duktape/issues/392#issuecomment-145301192
http://duktape.org/guide.html#internalproperties
2015-10-04 19:42:29 +02:00
bel
8e7d98c8e7
Duktape: use mg_malloc/mg_realloc/mg_free
2015-10-03 23:48:53 +02:00
bel
1967136eed
Duktape: support multiple instances
2015-10-03 23:20:07 +02:00
bel
de214bf8fa
Add more comments to embedded_c example
2015-10-02 21:02:01 +02:00
bel
0b1ce03d0c
Add some comments to embedded_c example
2015-10-02 20:53:06 +02:00
bel
164b12b558
Add server side Javascript (Duktape) to feature check API
2015-10-02 20:48:00 +02:00
bel
0900edbe36
Embedded_c example should raise an error, if it is build with defines not supported by the civetweb library
2015-10-02 19:45:25 +02:00
bel
0c7c7ed678
Fix some TODOs and auto-format code
2015-10-01 23:52:36 +02:00
bel
a0678bf835
Use recursive mutex for Linux
2015-09-30 21:52:26 +02:00
bel
a6bcffcfc5
Rename rel_uri to local_uri ( #197 )
2015-09-29 22:45:24 +02:00
bel2125
73155eea3e
Documentation: IPv6 ports will listen for both, IPv4 and IPv6
...
- Add this to the user documentation
- Make it more clear in the interface documentation
- Change the embedding_c example accordingly (and auto-format the code)
2015-09-29 20:43:16 +02:00
bel
28d215e211
Compile fix
2015-09-26 23:39:27 +02:00
bel2125
63ef9cbd35
Small fixes in Makefile
2015-09-26 23:33:30 +02:00
bel
ebc667a121
Test for bug report #205
2015-09-26 22:36:19 +02:00
bel
ac3e0d8292
Add new interface to get listening ports (deprecate old interface)
2015-09-26 22:34:55 +02:00
bel2125
b806e83762
Experimental support for duktape (Step 5/?)
2015-09-25 23:44:48 +02:00
bel
16ce5bed9d
Rewrite is_file_in_memory
2015-09-24 22:30:14 +02:00
bel2125
72aec8838c
Merge pull request #203 from LawrenceChan/master
...
Fixed mg_upload() to work with multiple files.
2015-09-24 20:42:11 +02:00
Lawrence
fed56ecb1c
Fixed mg_upload() to work with multiple files.
2015-09-23 16:21:36 -07:00
bel
4ab1e763ac
Experimental support for duktape (Step 4/?)
2015-09-21 22:26:04 +02:00
bel
5fbb1db308
Experimental support for duktape (Step 3/?)
2015-09-21 21:43:37 +02:00
bel
72204bdc0f
Experimental support for duktape (Step 2/?)
2015-09-21 21:02:08 +02:00
bel
97c77c200e
Experimental support for duktape (Step 1/?)
2015-09-20 22:26:13 +02:00
bel
36eb3a01fb
Disable clang unreachable-code warning for function ssl_id_callback
...
Checking sizeof(pthread_t) > sizeof(unsigned long) has to be done at compile time,
since the sizeof(...) operator can not be used in "#if" preprocessor conditions.
Thus, depending on the compiler, either the if-branch or the else-branch will be
logically dead code. There seems to be no reasonable way to prevent this, so
disable -Wunreachable-code for this "if" statement.
See #200
2015-09-20 19:19:27 +02:00
bel
4eb38685e7
Fix compile errors
2015-09-18 23:25:08 +02:00
bel
9d13578bef
Set request_info->uri for the client api functions (to the http server response code, as before)
2015-09-17 22:20:11 +02:00
bel
b91207c067
Free memory allocated in thread local storage for third party threads in systems with sizeof(pthread_t) > sizeof(unsigned long)
...
See #200
2015-09-17 21:48:08 +02:00
bel
617a16ee39
Every thread must have a ssl_id (unsigned long), even if not created by civetweb
...
See #200
2015-09-16 20:39:37 +02:00
bel
9acd4f40eb
Set an unsigned long value in the thread local storage also for the thread starting civetweb.
...
See discussion in #200 .
2015-09-16 20:05:16 +02:00
bel
d3b5b24b43
Use unsigned long variable from thread local storage as SSL thread ID.
...
See discussion in #200
2015-09-15 20:39:05 +02:00
bel2125
ec0206610d
Support absolute uri ( #197 ) - (Step 12/?)
2015-09-13 23:06:56 +02:00
bel2125
40fd0245c1
Support absolute uri ( #197 ) - (Step 11/?)
2015-09-13 22:57:09 +02:00
bel2125
3332988734
Support absolute uri ( #197 ) - (Step 10/?)
2015-09-13 22:47:00 +02:00
bel2125
d0bd04ecf2
Support absolute uri ( #197 ) - (Step 9/?)
2015-09-13 22:43:28 +02:00
bel2125
e15981b75f
rename mg_context member num_thread to running_worker_threads
...
This variable stores the number of running worker threads.
Rename it to make the purpose of context members more clear.
See #188
2015-09-13 20:47:41 +02:00