bel2125
965d62653b
Merge pull request #123 from lyonplus/master
...
Add -fPIC for static linked library.
2015-05-11 23:24:13 +02:00
Lianghui
6b044c378b
Add -fPIC for static linked library.
2015-05-11 10:15:11 -04:00
bel
c16f4becda
Temporary fix for callbacks that don't handle requests (see #122 )
2015-05-10 22:49:51 +02:00
bel
cc19be6e0a
Some IPv6 fixes for Win32 (see #119 )
2015-05-10 22:21:35 +02:00
bel
c0de952b56
Fix clang compile error
2015-05-10 20:08:08 +02:00
bel
15dea85752
Disable 'MSVC deprecated POSIX' warning
2015-05-10 13:06:34 +02:00
bel
4921518ac3
Windows: Display error message if server does not start
2015-05-10 12:59:08 +02:00
bel2125
4985ad5d9c
Merge pull request #118 from david-loffredo/master
...
AIX, HPUX, Solaris build fixes, socklen_t 64bit fix for HPUX
2015-05-06 22:56:05 +02:00
David Loffredo
b3fc32b026
Solaris #defines for a clean build
...
Signed-off-by: David Loffredo <loffredo@steptools.com >
2015-05-06 09:53:56 -04:00
David Loffredo
13f488bbd6
AIX and HPUX build fixes, socklen_t 64bit fix for HPUX
...
Neither AIX 5 or HPUX 11 define va_copy or have a thread name
function. Move existing va_copy #define out of a windows-only block
so that it can apply to any platform that needs it.
The HPUX system headers mistakenly define socklen_t as a 64bit value
on Itanium, and has function prototypes with socklen_t when compiling
with _XOPEN_SOURCE. However, the socket functions actually expect a
pointer to a 32bit value. Passing address of socklen_t rather than
int results in zero data returned, missing client net addresses from
the accept() and general badness. Fix by forcing a redef of socklen_t
to int when building on HPUX.
Signed-off-by: David Loffredo <loffredo@steptools.com >
2015-05-05 21:59:29 -04:00
bel2125
6d8a37844c
Merge pull request #117 from david-loffredo/master
...
Windows bind() with SO_EXCLUSIVEADDRUSE so that mg_start will fail if socket in use.
2015-05-05 20:30:38 +02:00
David Loffredo
86d2bec31f
Windows bind() with SO_EXCLUSIVEADDRUSE to fail if socket in use.
...
On Windows, SO_REUSEADDR will happily bind to a socket that is already
in use and the windows-specific SO_EXCLUSIVEADDRUSE is needed instead.
This is defined in winsock2.h. Defined lean and mean because winsock2
comes in without conflicts that way.
2015-05-04 23:33:16 -04:00
bel2125
971d458c97
Merge pull request #115 from softwarenerd/softwarenerd
...
Fix compiler warning on OS X compile.
2015-05-04 07:21:19 +02:00
Brian Lambert
a8c4f4a6a3
Fix compiler warning on OS X compile. clang diagnostic ignored needed -W to work properly on OS X.
2015-05-03 14:30:11 -04:00
bel2125
10ee9fa662
Clean executable in Makefile
2015-05-03 10:08:40 +02:00
bel
08dab3d313
Fix const/not const struct mg_connection * warning
...
see #114 and #109
2015-05-02 09:27:06 +02:00
bel2125
f8e0bf9dff
Merge pull request #113 from nihildeb/master
...
move travis tests to ci/ from test/ci_tests
2015-05-02 00:28:01 +02:00
Nick Hildebrant
bfba8d105d
move travis tests to ci/ from test/ci_tests
2015-05-02 00:02:42 +02:00
bel
180e45fdfc
Forward also POST data to CGI pages
2015-05-01 23:47:42 +02:00
bel
ceb5f39461
Add CGI test for windows, that does not need an extra interpreter
2015-05-01 23:39:00 +02:00
bel
93fbcb33b1
All global variables in main should start with g_
2015-05-01 21:47:28 +02:00
bel
de28718cae
All global variables in main should start with g_
2015-05-01 21:45:09 +02:00
bel
5e640884b2
All global variables in main should start with g_
2015-05-01 21:42:57 +02:00
bel
5bbc219445
All global variables in main should start with g_
2015-05-01 21:36:50 +02:00
bel
879f18ca07
Fix some clang diagnostic messages (see #94 )
2015-05-01 19:11:46 +02:00
bel2125
9072673623
Merge pull request #112 from hansipie/master
...
Symbols export for the C++ Interface
2015-04-29 20:21:53 +02:00
bel2125
53bbd18a4a
Merge pull request #111 from DanielOaks/fix-osx
...
Only include -lrt if on Linux
2015-04-29 20:07:20 +02:00
hansipie
020b9fbe93
Symbols export for the C++ Interface
2015-04-29 17:18:44 +02:00
Daniel Oaks
90adb0d115
Only include -lrt if on Linux
2015-04-29 23:03:47 +10:00
bel
d264808e52
Clean usage of const/not const mg_context* and mg_connection* handles in the API.
...
The API had an inconsistant usage of `const mg_connection *` and `mg_connection *`,
that may cause warnings (e.g., #109 ). Now all non-const `mg_connection *` is only
required to read/write the connection.
2015-04-29 00:13:25 +02:00
bel
f9295dffa6
Fix compile error for Visual Studio
2015-04-28 21:14:51 +02:00
bel
7a01c0d0f7
Remove civetweb_test accidentially added with #107
2015-04-28 19:48:28 +02:00
bel
2ac17babdb
Update CREDITS
2015-04-27 23:04:37 +02:00
bel
951ec9ebbe
Update CREDITS
2015-04-27 23:04:33 +02:00
bel2125
e2c64e27d4
Merge pull request #107 from nihildeb/master
...
add lua-curl live server tests to travis CI
2015-04-27 23:04:11 +02:00
bel2125
2480a95536
Merge pull request #108 from vcatechnology/function-pointer-casting
...
Cannot cast Lua function pointer in standard C
(Will check later, if this code is still required or obsolete).
2015-04-27 22:34:35 +02:00
bel
cad094cacc
Remove union in struct mg_request_handler_in
...
This seems to be better for some compilers (see #106 ), and may make
the code more readable.
2015-04-27 21:41:34 +02:00
bel
67c9d35e10
Avoid some Visual Studio redefinition warning
2015-04-27 21:37:55 +02:00
Matt Clarkson
260f8a43b9
BUG: Cannot cast Lua function pointer in standard C
...
src/civetweb.c:5533:0:
src/mod_lua.inl: In function ‘mg_exec_lua_script’:
src/mod_lua.inl:1169:37: error: ISO C forbids conversion of object
pointer to function pointer type [-Wpedantic]
lua_pushcclosure(L, (lua_CFunction) exports[i + 1], 0);
^
This patch uses the POSIX.1-2003 workaround.
See linux.die.net/man/3/dlsym
2015-04-27 16:36:34 +01:00
Nick Hildebrant
01d7b8917d
add some documentation
2015-04-27 16:01:12 +02:00
Nick Hildebrant
e8380345dd
was just a test of the testing automation
2015-04-27 15:30:19 +02:00
Nick Hildebrant
08eb1d8366
Merge branch 'master' of https://github.com/bel2125/civetweb
2015-04-27 15:18:15 +02:00
Nick Hildebrant
1a984a3b1b
use lua socket to check server availability because travis has no netstat
2015-04-27 02:57:05 +02:00
Nick Hildebrant
f9fac60256
first server test
2015-04-27 01:25:12 +02:00
Nick Hildebrant
cdae5d39b2
remove failing test to check the build fails
2015-04-26 15:06:12 +02:00
Nick Hildebrant
49b376be3c
add a failing test to check the build fails
2015-04-26 15:00:58 +02:00
Nick Hildebrant
bd0a586e28
fix lua env and use busted test lib
2015-04-26 14:56:12 +02:00
bel
c8a5e26a93
Update LICENCE and README
2015-04-26 13:23:21 +02:00
Nick Hildebrant
5365d10932
test: test passing build (failed tests fail build already)
2015-04-26 10:51:32 +02:00
Nick Hildebrant
bfe900485a
fixed: should actually RUN the tests
2015-04-26 10:48:37 +02:00