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

116 Commits

Author SHA1 Message Date
bel2125
f16f8ebdf7 Preliminary fix for #225
lp do not work at the moment, because mg_fopen resets unused outputs
of the struct file. In this fix, the required size member is copied
from the previous call to mg_stat.

However, the real maintenance problem is, operations like mg_fopen
and mg_stat have to do exactly and exclusively what their names
suggest. They should not set different members of a common output
structure (struct file).
But this will be a more comprehensive change which needs more time.
2015-11-27 23:56:38 +01:00
bel2125
63cdbe0648 Remove instrumentation 2015-11-27 20:37:43 +01:00
bel2125
f4d86792b5 Autoformat after merge 2015-11-27 20:31:03 +01:00
bel2125
a7080226f8 Fix websockets for Lua for Linux
Websockets for Lua only works if the used mutex is recursive
2015-11-27 20:10:10 +01:00
bel2125
0af14a185e Add instrumentation for lock problem in Lua websockets on Linux 2015-11-27 20:10:10 +01:00
bel
4de9090577 Apply revised clang-format (#207) to all actively maintained source files 2015-10-05 20:58:14 +02:00
bel
a6bcffcfc5 Rename rel_uri to local_uri (#197) 2015-09-29 22:45:24 +02:00
bel2125
40fd0245c1 Support absolute uri (#197) - (Step 11/?) 2015-09-13 22:57:09 +02:00
bel
62e4d79ac3 Auto format source code 2015-08-25 22:14:43 +02:00
bel2125
533eac37cd Add library test for Lua5.3 2015-08-24 22:31:50 +02:00
bel2125
de4bd492c8 Do not use in Lua 5.1
See comment on #194
2015-08-24 21:39:58 +02:00
bel
d082320ba0 Do not use lua_pushglobaltable in Lua 5.1
See comment on #194
2015-08-24 21:31:51 +02:00
bel2125
19b7e4d12e Support build for Lua 5.1 (for LuaJIT), Lua 5.2 and Lua 5.3 (Step 5/?)
See #195
2015-08-22 23:10:58 +02:00
bel2125
5197106e0a Support build for Lua 5.1 (for LuaJIT), Lua 5.2 and Lua 5.3 (Step 4/?)
See #195
2015-08-22 22:22:08 +02:00
bel
5f189803bb Support build for Lua 5.1 (for LuaJIT), Lua 5.2 and Lua 5.3 (Step 3/?)
See #195
2015-08-22 21:50:17 +02:00
bel
b06ded3056 Support build for Lua 5.1 (for LuaJIT), Lua 5.2 and Lua 5.3 (Step 2/?)
See #195
2015-08-22 21:43:38 +02:00
bel2125
d50aef8b61 LuaJIT support (Step 2/?) 2015-08-21 21:54:10 +02:00
bel2125
7687e25db8 LuaJIT support (Step 1/?) 2015-08-21 21:15:58 +02:00
bel
71150f6f71 Rewrite conn2 2015-07-31 22:33:46 +02:00
bel
125049597b Fix or mark some issues from static code analysis 2015-07-27 21:09:40 +02:00
bel
fb48aaa354 Rewrite string handling (Step 5/?) 2015-07-26 23:37:55 +02:00
bel
8ea5607c54 Rewrite string handling (Step 1/?)
Replace all uses of (v)snprintf by mg_(v)snprintf
See issue #175
(Step 1 is a commit of a partial work and will not build)
2015-07-25 22:53:24 +02:00
bel
fc76a4fa7e Fix some warnings in Linux 2015-07-03 23:11:20 +02:00
bel
36ce480cc3 clang_format src and include 2015-06-30 20:49:32 +02:00
bel
3291c1d388 Check TODO marks and assign priorities 2015-05-30 22:19:14 +02:00
bel
3c810102d1 Compile Warnings for Visual Studio (#132) 2015-05-22 17:39:28 +02:00
bel
13a6b935aa Avoid the missing-prototypes warning
Warning option -Wmissing-prototypes raises a warning for all functions
that are neither static nor in a header. Some functions should be available
only for main.c but not in the official header (civetweb.h) since they are
subject to changes. In order to avoid this warning, additional headers
outside the include folder must be added.
2015-05-22 00:08:40 +02:00
bel
d51c38a5cb Fix some warnings 2015-05-21 23:14:56 +02:00
bel
1b730992c9 Fix some gcc warnings 2015-05-21 22:45:33 +02:00
bel
9b4095f54d All macros should be enclosed by () 2015-05-17 12:58:39 +02:00
bel
6ce8b4e92c Set autoformat options and autoformat all source files 2015-05-17 01:30:21 +02:00
bel
8fdb21e534 Remove setjmp include
setjmp/longjmp are not used, so this include is not required
2015-05-15 00:35:26 +02:00
bel
f9295dffa6 Fix compile error for Visual Studio 2015-04-28 21:14:51 +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
bel
8c90b3cae5 Handler for websocket connection (Step 7/7)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 23:20:08 +02:00
bel
b14ab7b00a Rewrite open all Lua libraries 2015-03-08 21:35:54 +01:00
bel
a069ec2018 Lua function to access a high resolution clock (monotonic and realtime) 2015-02-26 22:01:02 +01:00
bel
749b0d8267 Remove unused argument of send_http_error 2015-02-07 22:07:59 +01:00
bel2125
8f84f82a36 Update LuaXML to version 1.8.0
Version 1.8.0 from http://viremo.eludi.net/LuaXML/#download,
download Jan 8, 2015
2015-01-08 23:27:41 +01:00
bel
bf17634af9 Check and simplify HTTP error code handling (Step 3/3)
Check all send_http_error calls.
Introduce a new function mg_get_response_code_text to get the textual
representation of the HTTP status response from the numeric response
code for C and Lua.
Do no longer pass the textual response code through send_http_error,
but take it from the mg_get_response_code_text function.
2015-01-03 00:48:59 +01:00
bel
65c83fa8a6 get_response_code_text for Lua
The new function get_response_code_text should be available for Lua as well.
Add it to the Lua environment and add a test.
2014-12-28 19:26:41 +01:00
bel
f59d79598f Check and simplify HTTP error code handling (Step 1/3) 2014-12-28 11:00:16 +01:00
bel
6f49961a2a Add some optional pointer casts (avoid static source code analysis warnings) 2014-11-15 23:08:24 +01:00
bel
020951c8de Fix lua_websocket_new in case the Lua script rejects the connection 2014-09-17 22:37:10 +02:00
bel
154b80bb69 Make client address available in mg_request_info also for IPv6 (see also issue #33) 2014-09-14 11:04:42 +02:00
bel
d25755d4d0 Make Civetweb Lua state available from the command line, e.g. for easier script development 2014-09-12 22:52:17 +02:00
bel
b32232d2e1 Clean Lua for different define configurations, avoid warnings 2014-09-02 22:20:57 +02:00
bel
1ca565ee81 Data type conversion compiler warnings for Win32 (Issue #36 and others) 2014-08-26 21:43:55 +02:00
bel
ba13b79d27 Add content length and type to the Lua environment 2014-08-21 21:37:35 +02:00
bel
173b0c7214 Update Lua to 5.2.3 2014-07-30 20:43:11 +02:00