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
Nick Hildebrant
34a783fb46 test a failed script 2015-04-26 10:23:05 +02:00
Nick Hildebrant
85e02e34dc added test run scripts 2015-04-26 10:19:09 +02:00
bel2125
8802258757 Merge branch 'master' of https://github.com/bel2125/civetweb 2015-04-25 23:13:33 +02:00
bel2125
a5fbd4e199 Complete chunked transfer encoding
Remove commented rest of merge #95
2015-04-25 22:19:34 +02:00
bel2125
efbdfba31f Complete chunked transfer encoding
Remove commented rest of merge #95
2015-04-25 22:09:25 +02:00
bel2125
fbaf61d6b8 Add Qt build 2015-04-25 20:42:03 +02:00
Nick Hildebrant
f3d6d50fde fixed missing lua/bin path for luarocks installer 2015-04-25 16:57:53 +02:00
Nick Hildebrant
6ae8665e21 no sudo in travis.yml and add rocks installer 2015-04-25 16:53:38 +02:00
Nick Hildebrant
a39c93c244 setup travis sudo-free lua installation for tests 2015-04-25 16:41:39 +02:00
Nick Hildebrant
110177133a no clang yet 2015-04-25 01:45:04 +02:00
bel
e497dd34f8 Test for chunked transfer encoding (#95, #98) 2015-04-24 00:36:34 +02:00
bel
199afb7369 Attempt to fix chunked tranfer encoding (see #95, #98) - not fully tested yet 2015-04-23 23:48:09 +02:00
bel
0a1f99c6bb Remove misleading comment in CivetServer.h
See issue #92
2015-04-23 21:48:22 +02:00
bel
4c12d0cafc Set _CRT_SECURE_NO_DEPRECATE and _CRT_SECURE_NO_WARNINGS for Visual Studio
According to
https://social.msdn.microsoft.com/Forums/vstudio/en-US/3373dd77-ed73-44a6-a52c-53dfd95099ac/crtsecurenowarnings-vs-crtsecurenodeprecate?forum=vcgeneral
one probably needs both for different compiler/sdk versions
2015-04-22 22:06:43 +02:00
bel
62a46e647f Test for memory leaks in unit test
Add a test for issue #92 to the unit test
2015-04-21 22:00:46 +02:00
bel
a5c4b9dbb0 Mark chunked transfer encoding (#95) as currently not working. See #98. 2015-04-21 21:02:12 +02:00
bel
832763b465 Handler for websocket connection
Fix unit test. Ensure backward compatibility.
See enhancement #30 and question #101
2015-04-21 07:57:22 +02: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
121ae6c7f6 Handler for websocket connection (Step 6/7)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 22:09:09 +02:00
bel
c9f84988c7 Use multibyte character set in all Visual Studio projects 2015-04-19 20:37:59 +02:00
bel
67230b00c1 Use multibyte character set in all Visual Studio projects 2015-04-19 20:37:38 +02:00
bel
3684a1fda2 Add _CRT_SECURE_NO_WARNINGS for Visual Studio build of Lua
This avoid a flood of warnings with Microsoft Visual Studio compilers
for not using Microsoft specific *_s CRT replacement functions.
2015-04-19 19:55:04 +02:00
bel
7a709e5633 Handler for websocket connection (Step 5/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 18:44:37 +02:00
bel
0ecec6bce7 Handler for websocket connection (Step 4/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 14:39:15 +02:00
bel
d64d507eaa Handler for websocket connection (Step 3/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 10:54:46 +02:00
bel
436bc39555 Handler for websocket connection (Step 2/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 00:43:11 +02:00
bel
259415c392 Nobody is supposed to define CIVETWEB_VERSION outside civetweb.h 2015-04-18 19:16:58 +02:00
bel
0016b36204 Handler for websocket connection (Step 1/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-18 18:14:20 +02:00
bel
00877a1649 Add windows build for the chunked transfer test client 2015-04-18 13:07:10 +02:00
bel
d30b3faf3e Add windows build for the chunked transfer test client 2015-04-18 13:07:07 +02:00
bel2125
da5c8d6683 Quick and dirty test client to check chunked transfer encoding
A quick hack to check chunked transfer encoding for Linux
(see converation to issue #98, chunked transfer encoding
has been added with #95 but there are merge errors).

Can be used this way:
Compile civetweb 'make WITH_LUA=1'.
Set environment variable 'export resource_script_demo_storage=/tmp/'
Start it with 'civetweb -document_root /path/to/civetweb/test'.
Compile this example directly with 'gcc testclient.c' from the command line.
Start the resulting file './a.out'
A file /tmp/r1.txt with 1024 bytes will be created ('ls -l /tmp/').
Delete this file ('rm /tmp/r1.txt').
This was NOT chunked transfer encoding.
Now enable chunked tranfer encoding: Change to chunked=1 in line 38.
Rebuild 'gcc testclient.c' and run './a.out' again.
Currently a 0 byte file will be created in /tmp/.
This file has to be deleted after every test.

Hope this helps fixing the merge errors.
2015-04-18 11:05:12 +02:00
bel
010998ca2f Test for chunked transfer encoding (Windows client only) 2015-04-17 23:27:08 +02:00
bel2125
acca08ec6e Fix warning for unused function in gcc if compiled WITH_WEBSOCKET but without WITH_LUA
See also issue #104
2015-04-17 21:23:54 +02:00
bel2125
77ebc69ce1 Merge pull request #102 from kainjow/tests_crash
Avoid crash if tests aren't ran from 'test' directory
2015-04-16 21:49:55 +02:00
bel2125
cd15156584 Merge pull request #100 from da4089/patch-2
Tyop.
2015-04-16 07:29:52 +02:00
bel2125
a8bc1f43a0 Merge pull request #99 from da4089/patch-1
Fix tyops
2015-04-16 07:29:31 +02:00
bel2125
d2bd8c40bd Merge pull request #97 from kainjow/warnings_and_errors
Fix various warnings from Xcode 6.3
2015-04-16 07:25:42 +02:00
David Arnold
8d7387cbd4 Tyop. 2015-04-15 11:27:21 +10:00
David Arnold
6706d390c0 Fix tyops 2015-04-15 10:46:12 +10:00
Kevin Wojniak
2b76d9f7c8 Avoid crash if tests aren't ran from 'test' directory 2015-04-14 14:20:39 -07:00
Kevin Wojniak
2a647d166c Fix passing strings with different sign 2015-04-14 14:09:56 -07:00
Kevin Wojniak
9f24dd5852 Fix wrong format specifier 2015-04-14 14:06:52 -07:00
Kevin Wojniak
3c3ddb47f4 Fix comparison of integers of different signs 2015-04-14 14:06:34 -07:00
Kevin Wojniak
95a2cf40d0 Fix clang missing field initializer warning.
Static variables are initialized to zero so no need to explicitely do it.
2015-04-14 14:03:35 -07:00
Kevin Wojniak
d7d9469db8 Fix unused variables in default unit test build 2015-04-14 14:01:54 -07:00
bel
ed6b8faaeb Fix typo in variable name 2015-04-14 00:05:53 +02:00
bel
85d1a726ec Quietly close keep-alive connections, if there is no new request after a timeout
Do not send any "Bad Request" responses and do not re-submit the data of the
last request, but just close the connection. See issue #82
2015-04-14 00:02:27 +02:00
bel
e157e10f1a Server must not send "400 Bad Request" if the client times out without sending anything
If the client connects to the server, but does not send a single byte, the server
should just close the connection after a timeout without sending a 400 Bad Request
reply. This is also the case for keep-alive connections (see issue #82).
2015-04-13 23:48:36 +02:00
bel
21a9b629ef Modify test client to check keep alive connections
Temporary test to reproduce issue #82 without manual typing
2015-04-13 22:52:40 +02:00
bel
ec83050347 Change indent and line endings 2015-04-13 21:45:47 +02:00