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
bel
ad746c8365
Add #ifdef _WIN32 for vsnprintf blocking define again
2015-09-06 23:02:48 +02:00
bel
f3a22fab38
Linux/Travis does not support ifconfig
2015-09-06 21:46:05 +02:00
bel
da2f30cb48
Some MacOS compile fixes
2015-09-06 21:45:37 +02:00
bel
38fecc8961
Travis/MacOS does not support /sbin/ip, use ifconfig instead
2015-09-06 21:13:30 +02:00
bel
9a69a05905
Update source code format details
2015-09-06 21:03:52 +02:00
bel
810a34d828
Set MINGW compiler define for windows GCC diagnostic pragmas
2015-09-06 20:46:58 +02:00
bel
7995c9ba6d
Disable unused-function warning for POSIX standard Win32 replacement functions
2015-09-05 23:30:19 +02:00
bel
8165305549
Rearrange definition of main for exe test
2015-09-04 22:10:14 +02:00
bel
41331e29c6
Add shared test to Visual Studio and format script
2015-09-04 21:25:48 +02:00
bel
6cc1f017f2
Fix wrong include guard in exe test
2015-09-04 20:32:19 +02:00
bel
eb3d9c414a
Update Visual Studio unit test project
2015-09-04 20:27:22 +02:00
bel
3212e78e54
Initialize hostend to avoid false warning
2015-09-04 20:12:46 +02:00
bel
acdec461ab
Disable Microsoft does not like standard C library functions warning for all tests
2015-09-04 20:10:44 +02:00
bel2125
f8cd0ab565
Auto-format test main
2015-09-03 22:32:00 +02:00
bel2125
db985a162b
Add exe test suite and make CI testing more verbose
2015-09-03 22:29:11 +02:00
bel
37e28a7318
Support absolute uri ( #197 ) - (Step 8/?)
2015-09-03 00:36:34 +02:00
bel
cb53155885
Support absolute uri ( #197 ) - (Step 7/?)
2015-09-03 00:09:30 +02:00
bel
e29dbdc5a0
Support absolute uri ( #197 ) - (Step 6/?)
2015-09-02 23:53:38 +02:00
bel
b51c2cd50c
Support absolute uri ( #197 ) - (Step 5/?)
2015-09-02 23:47:08 +02:00
bel
2a2155ce0f
Support absolute uri ( #197 ) - (Step 4/?)
2015-09-02 22:33:19 +02:00
bel
de04b44535
Support absolute uri ( #197 ) - (Step 3/?)
2015-09-02 21:59:55 +02:00