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

2380 Commits

Author SHA1 Message Date
bel
83e109b0b8 Avoid "unused variable" warning while working on send/recv error handling
See also #150
2015-06-16 23:04:17 +02:00
bel2125
c55b27dbfd Merge pull request #149 from PhilLab/patch-1
Last-Modified timestamp based on creation time
2015-06-16 21:07:13 +02:00
Philipp Hasper
df8fabbbe0 Last-Modified timestamp based on creation time
On Windows, the file creation time can be higher than the modification time.
This happens when a file gets copied.
Since the Last-Modified timestamp is used for caching (i.e. determining whether
a file has changed) it should be based on the most recent timestamp.
2015-06-16 16:53:44 +02:00
bel
71aa4ae257 List environment variables in minimal Linux CGI script 2015-06-15 21:44:07 +02:00
bel
14c57095ba Autoformat unit_test.c 2015-06-15 21:41:38 +02:00
bel
1286e26b43 Windows minimal CGI test: HTTP method and status code are sent by the framework and windows.cgi.cmd must be in the PATH 2015-06-15 21:37:13 +02:00
bel
cceda5a55c close_socket_gracefully does not need a timeout 2015-06-14 23:37:44 +02:00
bel
9e7cb0f686 Webserver drops websocket connections too early
Fix for #148
2015-06-14 21:59:44 +02:00
bel
26444165c1 Fix compile error 2015-06-12 20:25:58 +02:00
bel
7418dc78df Minor optimization in send_file_data 2015-06-11 23:05:18 +02:00
bel
65b690fde7 Minor optimization in push/pull 2015-06-11 20:11:16 +02:00
bel2125
1e1582001f Merge pull request #141 from hansipie/master
Check ctx before use
2015-06-06 20:04:33 +02:00
hansipie
28fd30dc59 Check ctx before use 2015-06-05 19:23:44 +02:00
bel
86eb1ed0e5 Check and fix effects of SO_EXCLUSIVEADDRUSE on Windows unit test 2015-06-05 01:24:45 +02:00
bel
029fd0f7e1 Check SO_EXCLUSIVEADDRUSE in Win32 unit_test 2015-06-04 01:41:20 +02:00
bel
0589118f27 Symmetric implementation for push/pull 2015-06-03 22:28:22 +02:00
bel
d6df859085 Modify unit test, so a breakpoint can be set into ASSERT 2015-06-02 23:08:12 +02:00
bel
bc3676d04a mg_strcasestr fix 2015-06-02 22:10:54 +02:00
bel
dbc89c9ddc Bind to all IPv6 addresses in the example 2015-05-31 23:23:53 +02:00
bel
949034f7a5 Replace gethostbyname 2015-05-31 23:23:04 +02:00
bel
3291c1d388 Check TODO marks and assign priorities 2015-05-30 22:19:14 +02:00
bel
f2a9354b18 Test separated timeout for websocket and other requests 2015-05-30 01:25:39 +02:00
bel
eb8ece00f7 Separated timeout for websocket and other requests (2/2) 2015-05-30 01:25:14 +02:00
bel
67c7a2c6f7 Separated timeout for websocket and other requests (1/2) 2015-05-30 00:18:16 +02:00
bel
40dfb432cd main.c must be C89 compliant for Visual Studio < 2013
See #138
2015-05-29 20:15:56 +02:00
bel
e33d4bc263 Update embedded_c websocket example 2015-05-28 23:02:03 +02:00
bel2125
c21748054f Merge pull request #136 from vcatechnology/msvc-fixes
MSVC Compilation Fixes
2015-05-28 22:22:04 +02:00
bel
7b1a88e05e Fix for Chrome in multipart form handling example
fix for lowercase boundary strings, see #137
2015-05-28 22:07:13 +02:00
Matt Clarkson
76b6affaf0 Extra git ignores 2015-05-28 17:54:16 +01:00
Matt Clarkson
a68e70f3c8 Use the visibility attribute for newer GCC versions
In newer versions of GCC the exporting of symbols can be controlled with
an attribute if -fvisibility=hidden is used. This patch allows the
CIVETWEB_API macro to work with this flag.
2015-05-28 14:32:07 +01:00
Matt Clarkson
6e09f78439 Disable MSVC warnings 2015-05-28 14:32:07 +01:00
Matt Clarkson
0633c1a189 Cast length for send and recv
Windows takes the byte length as an integer rather than size_t as
POSIX does.
2015-05-28 14:32:06 +01:00
Matt Clarkson
d94365acd9 set_close_on_exec to accept SOCKET
SOCKET is int on POSIX and uintptr_t on Windows this attempts to
resolve the casting problems.
2015-05-28 14:32:06 +01:00
Matt Clarkson
809da20100 Fix up batch script line endings
The new .gitattributes solve issues with Windows specific files
2015-05-28 13:20:04 +01:00
Matt Clarkson
06cdd07357 Correct cast MD5 bytes
The size is used as a seed for the start of the MD5 rountine and must
be cast to the correct type.
2015-05-27 12:51:19 +01:00
Matt Clarkson
b77ee408f1 Enabled declaration of main
The MSVC linker correctly determiens the correct function to link to
depending on the subsystem.
2015-05-27 12:07:07 +01:00
Matt Clarkson
6f83251b56 Resolve shortening errors
The function takes short but we were doing calculations in the integer
type so that shortening of the result was occuring. This resolves that.
2015-05-27 12:07:06 +01:00
Matt Clarkson
e388305907 Initialize structures with non-const initialzers
This is a warning on MSVC when not using Microsoft extensions.

> C4204: nonstandard extension used: non-constant aggregate initializer

Apparently struct a = {blah}; is invalid for ANSI compatibility on MSVC.
2015-05-27 12:07:06 +01:00
Matt Clarkson
c674b981d1 Ignore warning around deprecated gethostbyname
gethostbyname has been dperecated on all platforms as it is not
re-entrant. it has been replaced with getaddrinfo. The signature
of getaddrinfo is different on Windows to POSIX. We will need to
address this shortcoming in the future.
2015-05-27 12:07:06 +01:00
Matt Clarkson
d862c7040a Disabled deprecated warning
We actually have a legitimate use for GetVersion here as we would like
to know the runtime version of the Windows rather than the compile
time version.

The reason GetVersion is deprecated is because people use it to detect
the availablility of functions on newer versions of Windows. In that
case the symbols should be loaded from the kernel.dll in our case we
actually want to report the version number of Windows.
2015-05-27 12:07:06 +01:00
Matt Clarkson
f6419cb44c Settings DWORD with negative integer
-1U is equal to ~0U which is needed to apease the MSVC warning
2015-05-27 12:07:06 +01:00
Matt Clarkson
a5ffcc1005 Preserve Windows specific line endings 2015-05-27 12:07:06 +01:00
bel
012de2fe45 Update CREDITS 2015-05-23 14:44:11 +02:00
bel2125
2f932355f0 Merge pull request #134 from Dialga/master
Fix various compilations issues
2015-05-23 12:44:48 +02:00
Eric Tsau
706770ad62 Fixed compilation issues with tdm-gcc 2015-05-23 09:53:36 +12:00
Eric Tsau
217d93f48b Do not redefine USE_TIMERS which is already defined in civetweb.c 2015-05-23 08:54:20 +12:00
Eric Tsau
4630ee59df Merge remote-tracking branch 'upstream/master' 2015-05-23 08:44:26 +12:00
Eric Tsau
219fd60b0d Don't let else affect other compilers 2015-05-23 08:44:10 +12:00
bel
034274b309 Add some pattern matching to the embedding examples
See also #116
2015-05-22 21:44:58 +02:00
bel
1df408d8e4 Autoformat after merge 2015-05-22 17:44:03 +02:00