annotate Resources/Patches/civetweb-1.11.patch @ 3137:5a3b961e9524

New configuration option: 'TcpNoDelay' to disable Nagle's algorithm in HTTP server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Jan 2019 18:24:23 +0100
parents 858abf26bdf5
children d5d11e43d0fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3130
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 diff -urEb civetweb-1.11.orig/src/civetweb.c civetweb-1.11/src/civetweb.c
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 --- civetweb-1.11.orig/src/civetweb.c 2019-01-16 10:52:21.313348500 +0100
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 +++ civetweb-1.11/src/civetweb.c 2019-01-16 11:59:58.995605655 +0100
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 @@ -20,6 +20,14 @@
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 * THE SOFTWARE.
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 */
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 +
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 +#if defined(__LSB_VERSION__)
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 +// These definitions are mandatory for Linux Standard Base
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 +# define NO_CACHING
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 +# define NO_ALTERNATIVE_QUEUE
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 +# define NO_THREAD_NAME
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 +#endif
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 +
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 #if defined(__GNUC__) || defined(__MINGW32__)
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 #define GCC_VERSION \
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 @@ -536,6 +544,10 @@
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 #if !defined(EWOULDBLOCK)
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 #define EWOULDBLOCK WSAEWOULDBLOCK
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 #endif /* !EWOULDBLOCK */
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 +#if !defined(ECONNRESET)
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 +// Macro ECONNRESET is not always defined (e.g. on Visual Studio 2008)
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 +# define ECONNRESET WSAECONNRESET
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 +#endif /* !ECONNRESET */
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 #define _POSIX_
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 #define INT64_FMT "I64d"
858abf26bdf5 missing file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 #define UINT64_FMT "I64u"