Commit Graph

595 Commits

Author SHA1 Message Date
Sergio R. Caprile
2bd188f3d6 add simple API support for app MQTT pub retries 2024-04-16 19:17:37 -03:00
Sergey Lyubka
e0e599ffa1 Fix #2612 - struct mg_str::ptr -> buf 2024-04-16 22:42:45 +01:00
Sergey Lyubka
ba678b9ad1 TLS client implementation 2024-03-25 19:20:40 +00:00
Sergio R. Caprile
65b23777b2
Merge pull request #2642 from cesanta/autoinit
Add driver init to mg_mgr_init()
2024-03-12 20:36:59 -03:00
Sergio R. Caprile
c8fd3d6d25 Add driver init to mg_mgr_init() 2024-03-12 15:55:35 -03:00
Sergey Lyubka
3ac9bd0468 Fix #2619 - use mg_tls_pending() API to check for buffered TLS data 2024-03-12 08:30:04 +00:00
Sergey Lyubka
05e55334fc Fix vc98 build 2024-03-06 00:57:31 +00:00
Sergey Lyubka
01fe61276e Add unit test for semicolon in value 2024-03-06 00:49:55 +00:00
Sergey Lyubka
309668ccbc Increase local file buffer size in mg_http_upload() 2024-03-02 10:56:06 +00:00
robert
c59bf6613a HTTP: respond to messages which have no explicit lengths 2024-02-28 04:01:39 -05:00
Sergio R. Caprile
6862981640 test returned content-type for user page404 2024-02-23 09:11:42 -03:00
Sergey Lyubka
01ae80ecd1 Fix fuzzer call for mg_span() 2024-02-22 08:36:25 +00:00
Sergey Lyubka
0e2f3de154 Change mg_file_read() signature: return mg_str 2024-02-16 12:07:35 +00:00
Sergey Lyubka
5baa4d969e Fill c->loc for outbound connections 2024-02-14 12:32:26 +00:00
Sergey Lyubka
2419f02766 Fix #2592: do not close pipelined connection prematurely 2024-02-11 09:05:19 +00:00
Sergio R. Caprile
1a5ea930ab
Update fuzz.c for mg_commalist -> mg_span 2024-02-04 23:41:16 -03:00
Sergey Lyubka
936e7bbc88 mg_split -> mg_span. Remove mg_commalist 2024-02-04 09:26:42 +00:00
Sergey Lyubka
e0668bc1c0 Allow user specify file in mg_http_upload 2024-02-04 08:56:32 +00:00
Sergey Lyubka
f8898b016e More unit tests for mg_split() 2024-02-01 18:21:46 +00:00
Sergey Lyubka
0fc0230364 Changed the order of handlers: protocol first, user second 2024-01-26 10:34:24 -03:00
Sergey Lyubka
6b0e4a425d Fix #2552 - reject requests with invalid/absent chunk length 2024-01-20 09:35:01 +00:00
Sergio R. Caprile
deca1aaf46 remove fn_data from event handler signature 2024-01-09 14:51:19 -03:00
cpq
144c2f443e TLS layer: c->rtls to optimise recvd TLS data 2023-12-10 12:18:07 +00:00
cpq
693316de44 Add profiling capability 2023-12-08 17:00:42 +00:00
cpq
bd53e46873 Do not allow invalid UTF8 in method, uri, header names 2023-11-25 11:33:07 +00:00
Sergio R. Caprile
07936343c8 improve randomness in non-random environments 2023-10-31 19:17:58 -03:00
Sergio R. Caprile
f0a927831e improve MQTT test speed 2023-10-30 16:20:55 -03:00
robert
34639f86b0 Improved test coverage 2023-10-13 07:22:21 -04:00
Sergio R. Caprile
a51802ecaf Fix tcp example for 2-way TLS 2023-10-11 16:25:24 -03:00
cpq
293ee2162c Add mg_json_next() for iterating objects/arrays 2023-10-07 22:40:51 +01:00
cpq
46ecb07fc8 Fix #2192 - honor addr%scopeid ipv6 notation 2023-09-29 15:49:47 +01:00
cpq
7884a2f3c7 Get rid of MG_EV_HTTP_CHUNK 2023-09-26 20:45:24 +01:00
cpq
377d6acc74 Fix leak in unit test 2023-09-22 08:12:09 +01:00
Sergio R. Caprile
b355da32b9 Add GA OpenSSL tests back 2023-09-19 12:08:02 -03:00
cpq
3f0366a514 Revert to the old TLS API, but keep certs as mg_str for DER 2023-09-19 11:15:23 +01:00
Sergio R. Caprile
fdfad8462c Optimize test coverage 2023-09-12 16:28:10 -03:00
Sergey Lyubka
53baa18836
Merge pull request #2380 from cesanta/ip-fragmentation-2
IP fragmentation send path: added TCP/UDP packet splitting to fit within MTU
2023-09-12 12:51:04 +01:00
robert
264026acde added TCP/UDP packet splitting to fit within MTU 2023-09-12 07:05:13 -04:00
Sergio R. Caprile
310ffcd4eb add host only validation 2023-09-11 16:34:24 -03:00
Sergio R. Caprile
1391bdcf8b remove certs.h 2023-09-06 15:49:02 -03:00
Sergio R. Caprile
d8106a8ffe use packed ca.pem 2023-09-06 15:21:16 -03:00
robert
f33e3a7752 closing connection if a fragmented packet is received 2023-08-30 10:30:51 -04:00
cpq
d5b5cec797 Make fuzzer faster on large input/output 2023-08-26 00:52:24 +01:00
cpq
527e89754e Change base64 API 2023-08-22 12:11:13 +01:00
Sergio R. Caprile
b4c645f703 Add MQTT test for MIP 2023-08-21 17:22:42 -03:00
cpq
b32d1c15f0 Store certs in certs/. Add mg_unpacked() 2023-08-20 23:43:04 +01:00
robertc2000
3ea5f8dbde
Merge pull request #2344 from cesanta/tcp-closure
improved tcp closure
2023-08-18 14:06:41 +03:00
Sergio R. Caprile
7459d30a28 deprecate mg_mkpipe() 2023-08-17 18:05:03 -03:00
robert
f5e87cceec improved tcp closure 2023-08-17 10:34:31 -04:00
cpq
9fe7807b02 Fix #2322 - stricter Content-Length check, allow 1*DIGIT only 2023-08-17 12:55:08 +01:00
cpq
17f3738192 Fix #2263 - allow multiple errors in DNS handler 2023-08-17 10:11:21 +01:00
cpq
58886a9693 Fix #2345 - json parsing of arrays of objects 2023-08-16 22:09:45 +01:00
cpq
ea3968601e Add http serve to fuzzer 2023-08-16 20:18:52 +01:00
Sergio R. Caprile
2d75a6ccd4 update 2023-08-04 15:37:57 -03:00
Sergio R. Caprile
5ee9d22263 momentarily disable MacOS OpenSSL tests 2023-07-26 15:53:59 -03:00
Sergio R. Caprile
7dcb097a5d momentarily disable OpenSSL tests 2023-07-26 15:49:03 -03:00
Sergio R. Caprile
ed54b60ea3 update to new API 2023-07-25 18:41:41 -03:00
Sergio R. Caprile
ef25c42e86 fix unit tests for older compilers 2023-07-25 11:55:01 -03:00
Sergio R. Caprile
26ce666938 Merge branch 'master' of https://github.com/cesanta/mongoose 2023-07-25 11:35:29 -03:00
Sergio R. Caprile
9548437a9e update unit tests for new API 2023-07-25 11:27:01 -03:00
cpq
5e50b7104c Unit test fixed 2023-07-25 15:26:47 +01:00
cpq
0613cc62f4 TLS API refactor 2023-07-25 13:07:28 +01:00
Sergey Lyubka
0a6b1b9418
Merge pull request #2297 from cesanta/2251-implement-tcp-retransmit-in-mip
implemented tcp retransmission
2023-07-16 04:53:06 +01:00
Sergio R. Caprile
ac40673a9e test for retransmitted segment 2023-07-12 11:22:35 -04:00
robert
320da5e84c implemented tcp retransmission 2023-07-11 06:20:47 -04:00
cpq
88e880f107 Fix #2292 - fail on stray \r character in headers 2023-07-09 18:18:18 +01:00
cpq
bf8c4dfc83 Merge branch 'master' of github.com:cesanta/mongoose 2023-07-07 08:44:33 +01:00
cpq
5dff282132 Fix #2293 - stricter header validity check 2023-07-07 08:44:25 +01:00
Sergio R. Caprile
59c46fc594 update 2023-07-05 17:49:18 -03:00
Sergey Lyubka
101beec3ae
Merge pull request #2284 from cesanta/enhance-mg_remove_double_dots
enhanced path sanitizing
2023-07-03 14:43:32 +01:00
robert
2f1a836bf0 enhanced path sanitizing 2023-07-03 06:14:50 -04:00
cpq
cca771e70e Stricter check for test_dns_error() 2023-07-01 20:23:59 +01:00
Sergey Lyubka
415bbf2932
Merge pull request #2278 from cesanta/httpheaders
fix header truncation
2023-06-29 22:59:51 +01:00
Sergio R. Caprile
dc0f9aca4a access only when parsing is valid 2023-06-29 18:37:10 -03:00
cpq
1b9b8e3f6c Extend fuzzer, access parsed fields 2023-06-29 16:34:15 +01:00
Sergio R. Caprile
0adc858c85 add unit test 2023-06-28 11:01:59 -03:00
Sergio R. Caprile
661ed61779 add hw test support for Keil 2023-06-26 18:20:38 -03:00
Sergio R. Caprile
d6be9a2bba wip 2023-06-19 14:36:49 -03:00
Sergey Lyubka
7ea2093a91
Merge pull request #2250 from cesanta/2241-optimise-struct-mg_addr
optimized mg_addr structure
2023-06-09 14:54:27 +01:00
robert
dd32deb2ad optimized mg_addr structure 2023-06-09 09:19:37 -04:00
Sergey Lyubka
4178fc125d
Merge pull request #2245 from cesanta/2235-fix
byte-encoded properties issue fixed
2023-06-08 13:32:23 +01:00
Sergio R. Caprile
c061e60664 Improve MQTT tests resiliency 2023-06-07 18:34:55 -03:00
Ubuntu
a0dd3ecd68 byte-encoded properties issue fixed 2023-06-07 10:13:21 -04:00
Sergio R. Caprile
4e5e186784 speed up MQTT tests 2023-06-06 10:44:18 -03:00
cpq
828f7a513c Merge branch 'master' of github.com:cesanta/mongoose 2023-06-06 08:38:18 +01:00
cpq
6085998d57 Proper handling {} in JSON array + unit test 2023-06-06 08:38:08 +01:00
Sergio R. Caprile
e762bbdbf8 disambiguate comments 2023-06-05 18:39:13 -03:00
Sergio R. Caprile
f8579131e8 MQTT QoS + v5 2023-05-31 21:35:03 -03:00
Sergey Lyubka
1ccc9aa72e
Merge pull request #2205 from cesanta/arbitrary_content-length
improve negative Content-length handling
2023-05-26 17:16:08 +01:00
Sergio R. Caprile
ab10b042be fix bind issue in W 2023-05-22 19:13:48 -03:00
Sergio R. Caprile
26699914cc improve negative Content-length handling 2023-05-22 17:40:08 -03:00
Allan Park
4663090a8f Added check for negative value for HTTP Content-Length header 2023-05-16 18:52:33 +03:00
scaprile
fbe626e791 simplify RTOS-related Keil examples 2023-05-05 17:41:47 -03:00
cpq
9f5d8c4280 Fix #1927: respect Accept-Encoding when serving .gz files 2023-04-26 09:07:43 +01:00
robert
6c13df1aff MQTT: support for properties feature added 2023-04-23 16:35:50 +03:00
Sergio R. Caprile
cd64bfe84b Remove %H %V %Q %q modifiers 2023-04-14 10:13:22 -03:00
scaprile
838a2236a1 Add preliminary test 2023-04-11 17:47:38 -03:00
cpq
6b29a2a724 Fix #2104 - %.*f formatting 2023-04-07 08:38:28 +01:00
Sergio R. Caprile
84b92096d4 Add STM32CubeIDE examples and test for build 2023-04-06 17:33:45 -03:00
Sergio R. Caprile
49579eb2b4 Test host only TLS mode 2023-03-31 17:00:05 -03:00