1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00
Commit Graph

2551 Commits

Author SHA1 Message Date
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
bel2125
6cdabf3825 rename mg_context member workerthreadcount to cfg_worker_threads
This variable stores the number of configured worker threads,
not the number of worker threads actually running.
This can be different, if not all threads could be started.
See #188
2015-09-13 20:47:41 +02:00
bel
3792243dc3 Force string length limits for vsnprintf operations (#175)
See 3 of https://github.com/civetweb/civetweb/issues/175#issuecomment-139703181
2015-09-12 21:09:25 +02:00
bel
cc4747c1e3 Force string length limits for vsnprintf operations (#175)
See 1+2 of https://github.com/civetweb/civetweb/issues/175#issuecomment-139703181
2015-09-12 21:01:59 +02:00
bel2125
3716b3faaa Update embedded_c example 2015-09-11 22:12:10 +02:00
bel
7739a5135a Add TODO to deal with systems with sizeof(pthread_t) > sizeof(unsigned long) 2015-09-10 23:31:19 +02:00
bel
f4ae645ccc Disable MacOS build on Travis, until all errors are fixed 2015-09-10 23:26:11 +02:00
bel
81730357d2 Win32 GetCurrentThreadId always fits into unsigned long 2015-09-09 23:22:05 +02:00
bel
a0be79d1a6 Most c compilers do not support '#if sizeof' expressions (the standard does not require it). So the user has to set a define pthread_t_LARGER_THAN_unsigned_long 2015-09-09 22:55:43 +02:00
bel
b5775bfc26 Use CRYPTO_set_id_callback only if sizeof(pthread_t)<=sizeof(unsigned long). Use the system default otherwise 2015-09-09 22:20:16 +02:00
bel
b567e04495 Add check for size of thread ID (required for SSL) 2015-09-09 21:29:43 +02:00
bel2125
4cee6813f8 Merge pull request #198 from shantanugadgil/patch-1
Allow parameters to the resource compiler
2015-09-09 20:00:59 +02:00
shantanugadgil
3b415f9cd3 Allow parameters to the resource compiler
Using Cygwin64, build fails when trying to compile for Windows 32-bit.
'windres' needs to be supplied "-F pe-i386" when building for 32-bit.

My compile commands are:
### for 32-bit
# rm -rf out/; make CC=i686-w64-mingw32-gcc COPT="-static" WINDRES_FLAGS="-F pe-i386"

### for 64-bit
# rm -rf out/; make CC=x86_64-w64-mingw32-gcc COPT="-static" WINDRES_FLAGS="-F pe-x86-64"

Regards,
Shantanu
2015-09-09 19:35:17 +05:30
bel
d33ff62ab1 MinGW: correct compiler defines
It seems MinGW uses __MINGW32_MAJOR_VERSION (major before version) for 32 bit,
but __MINGW64_VERSION_MAJOR (version befor major) for 64 bit.
2015-09-07 20:23:29 +02:00
bel
0037369809 MinGW: correct compiler defines 2015-09-07 19:45:34 +02:00
bel
22a38b7c39 MinGW: include _mingw.h, to access mingw version defines 2015-09-07 19:25:31 +02:00