Sergey Lyubka
32406b678b
Increase sntp test timeout
2021-07-22 23:03:20 +01:00
Sergey Lyubka
55e2077a46
Use mg_fopen only on win32
2021-07-22 22:46:33 +01:00
Sergey Lyubka
a771d6a19d
Add unicode filename
2021-07-22 20:16:50 +01:00
Sergey Lyubka
0d5d7bb26f
Keep directory listing compile-time option
2021-07-21 11:05:27 +01:00
Sergey Lyubka
3808dd3222
Update issue template
2021-07-21 10:31:48 +01:00
Sergey Lyubka
8fc94e12af
Add enable_dirlist to mg_http_serve_opts
2021-07-20 17:22:41 +01:00
Sergey Lyubka
824e33ef8a
Merge pull request #1319 from ignacionr/patch-1
...
The sanitiser pointed out this problem
2021-07-20 16:46:30 +01:00
Sergey Lyubka
655f9a9f79
Add Content-Type header to the SSI files
2021-07-20 11:33:38 +01:00
Ignacio Rodríguez
6ac6aa521c
The sanitiser pointed out this problem
...
And I believe it's right. Other-side-close should be done only for the 'A' (proxy-client-side) connection.
2021-07-20 00:04:05 -05:00
Sergey Lyubka
3982e065c8
Fix #1315 , fix #1317 - use #ifndef instead of #pragma once for compilers that do not support #pragma once
2021-07-19 09:04:18 +01:00
Sergey Lyubka
497b8027f5
Fix #1314 - expose local port for listeners
2021-07-19 08:47:38 +01:00
Sergey Lyubka
89757388c7
Disable SSL v1.1
2021-07-16 12:10:48 +01:00
Sergey Lyubka
77fae5c562
Fix #1298 - shadowing struct mg_str constructor
2021-07-15 02:18:32 +01:00
Sergey Lyubka
80fcba91c8
Fix #1297 - %p warning
2021-07-14 04:00:27 +01:00
Sergey Lyubka
39d64be581
Fix FD_CLOEXEC setting
2021-07-13 22:49:36 +01:00
Sergey Lyubka
2bfd30ab4b
Fix mac test
2021-07-13 20:49:19 +01:00
Sergey Lyubka
60004eb209
Fix mac test
2021-07-13 20:01:46 +01:00
Sergey Lyubka
db11897d71
Fix #1302 - set FD_CLOEXEC on sockets
2021-07-13 19:32:31 +01:00
Sergey Lyubka
5e466f9037
Fix #1294 - add more common mime types
2021-07-13 19:24:46 +01:00
Sergey Lyubka
6b2698a503
Squash warning in mg_random()
2021-07-13 18:07:38 +01:00
Sergey Lyubka
4788db7e00
Fix #1301 - use correct openssl version conditional for SSL_use_certificate_chain_file()
2021-07-13 18:05:57 +01:00
Sergey Lyubka
d9680df510
Support mbedtls 3.x.x
2021-07-13 17:28:07 +01:00
Sergey Lyubka
f20ee1f305
Open HTTP and HTTPS ports
2021-07-13 14:40:52 +01:00
cpq
302bf865f9
Fix #1310 - wrap _CRT_SECURE_NO_WARNINGS into #ifndef
2021-07-13 07:13:06 +01:00
Sergey Lyubka
03929dcdaa
Merge pull request #1306 from SimonNitzsche/patch-1
...
Fixed typo on README
2021-07-13 07:06:30 +01:00
cpq
89af2e9638
Merge branch 'master' of github.com:cesanta/mongoose
2021-07-13 06:58:52 +01:00
cpq
015586950f
Fix #1305 - add #ifdef __cplusplus for C++ linkage
2021-07-13 06:58:34 +01:00
Simon Nitzsche
9df261a0eb
Fixed typo on README
...
Added a dot to "etc" on the README
2021-07-04 17:40:18 +02:00
Sergey Lyubka
a2a3c84450
Merge pull request #1303 from Jasper-Ben/master
...
Makefile: change curly brackets to round brackets
2021-07-02 18:28:53 +01:00
novlean
6611348ebf
added customers references
2021-07-01 15:02:51 +01:00
Jasper Orschulko
e69ee90acf
Makefile: change curly brackets to round brackets
...
Esthetic change which replaces the curly brackets introduced by me in
commit b6ee9e637b with round brackets.
2021-06-30 21:46:58 +02:00
Sergey Lyubka
8f3554d08a
Merge pull request #1295 from Jasper-Ben/add_linux_lib_targets
...
Add static and dynamic lib targets to Makefile
2021-06-21 11:35:43 +01:00
Jasper Orschulko
b6ee9e637b
Makefile: add static and dynamic lib targets
2021-06-21 11:51:42 +02:00
cpq
f46453f80f
Squash warnings
2021-06-10 19:37:03 +01:00
cpq
3deafaea7f
Extend mg_mqtt_{pub,sub} by adding qos and retain
2021-06-10 19:27:19 +01:00
cpq
a15d518571
Add mg_mqtt_pubex
2021-06-10 19:15:50 +01:00
cpq
886a29d659
Fix #1292 - allow requests with missing protocol version, responses with no reason fields
2021-05-29 10:07:05 +01:00
cpq
e69de57def
Optimise mg_iobuf_append()
2021-05-29 09:46:50 +01:00
cpq
9d68e20dcc
Fix #1288 - better mg_iobuf_append allocation strategy
2021-05-29 09:44:07 +01:00
cpq
c0a8546330
Add MG_ARCH_FREERTOS_LWIP
2021-05-28 23:49:26 +01:00
cpq
4c0002e28a
Separate examples job
2021-05-28 19:05:10 +01:00
cpq
7c37d75bf4
Squash even more warnings
2021-05-28 18:57:47 +01:00
cpq
879261981f
Squash more warnings
2021-05-28 18:54:39 +01:00
cpq
838b0bcd27
Squash more warnings
2021-05-28 18:45:35 +01:00
cpq
736b8ad7b7
Fix #1285 - __builtin___snprintf_chk warning. Tighten test flags and refactor the code to squash all warnings
2021-05-28 18:30:42 +01:00
cpq
db27fae40e
Update issue template
2021-05-24 10:18:44 +01:00
cpq
594111a255
Update issue template
2021-05-24 10:16:33 +01:00
cpq
53a46a2739
Change issue template
2021-05-24 09:53:39 +01:00
Sergey Lyubka
eef7a55904
Merge pull request #1290 from lnksz/patch-1
...
Propose an issue template
2021-05-24 09:49:35 +01:00
Kristóf Havasi
a68fa5e6e0
Propose an issue template
...
As it is in the discussion of raised issues to have some extra iteration because of architecture, library version, and other meta information, an issue template could save these extra rounds and possibly reduce the number of duplicates by highlighting where one can check for answers.
This is just a sketch based on what notifications I got from mongoose in the past months. Feel free to change it.
2021-05-23 22:44:16 +02:00
cpq
7c0d126edc
Build with -DMG_ENABLE_FS=1
2021-05-19 08:10:38 +01:00
cpq
1a5e3d3151
Fix #1286
2021-05-19 00:19:21 +01:00
cpq
95ff6c56af
Update readme
2021-05-19 00:15:45 +01:00
cpq
e2ef392633
Update readme
2021-05-19 00:14:27 +01:00
cpq
dbc2356768
FreeRTOS-Plus-TCP fixes
2021-05-19 00:00:32 +01:00
cpq
47e5e984df
stm32f7 example starts on real h/w, with plus-TCP driver
2021-05-17 17:36:57 +01:00
cpq
0f32f50c50
Add missing files
2021-05-13 22:05:00 +01:00
cpq
606cc1f538
Build w/semihosting support
2021-05-13 22:04:29 +01:00
cpq
2bb11888d5
Build w/semihosting support
2021-05-13 22:03:46 +01:00
cpq
09b1d6aa72
Running two blinkers
2021-05-13 15:05:09 +01:00
cpq
72f0489ec2
Using nucleo-f746zg. Moved 3party libs to test/. Using headers from ST
2021-05-13 14:56:14 +01:00
cpq
7b39973065
docs
2021-05-12 11:44:15 +01:00
cpq
30b64483fd
docs
2021-05-12 11:39:46 +01:00
cpq
5369fb0376
Remove low-level lwip stubs
2021-05-12 11:06:19 +01:00
cpq
5fe34fd6c3
Remove MG_ENABLE_MGOS
2021-05-12 11:05:05 +01:00
Sergey Lyubka
0fbdda4d2e
Merge pull request #1284 from cesanta/stm32
...
Stm32
2021-05-12 10:28:43 +01:00
cpq
a98e980c8f
Nits to have tests pass
2021-05-12 09:25:21 +01:00
cpq
2b836504ab
rename
2021-05-12 08:44:16 +01:00
cpq
0de3f0d985
f1 build works
2021-05-12 08:43:34 +01:00
cpq
151e375091
FreeRTOS w/blink works
2021-05-11 20:44:14 +01:00
cpq
c44549bfa5
Blinky works
2021-05-11 18:05:03 +01:00
cpq
d6852f5e74
First stab
2021-05-11 09:12:06 +01:00
novlean
9173034b96
Update README.md
2021-05-04 17:03:53 +01:00
novlean
2888ab1f52
Merge pull request #1277 from cesanta/novlean-patch-1
...
more typos + some fixes
2021-05-04 17:02:55 +01:00
novlean
26b5416641
more typos + some fixes
2021-05-04 17:02:46 +01:00
novlean
8bcac7e955
Merge pull request #1276 from cesanta/novlean-patch-1
...
fixed typo + added few things
2021-05-04 16:54:28 +01:00
novlean
ea25e8129c
fixed typo + added few things
2021-05-04 16:54:16 +01:00
cpq
26cb44f9d9
Typo in readme
2021-05-04 13:55:45 +01:00
cpq
7a37a44433
Update README
2021-05-04 13:53:17 +01:00
cpq
a752f3f8c7
Update README
2021-05-04 13:46:44 +01:00
Sergey Lyubka
946e07644c
Merge pull request #1275 from panosto/master
...
Corrected small typo in docs
2021-04-29 19:26:46 +01:00
Panagiotis
497b26a249
Corrected small typo in docs
2021-04-29 18:16:33 +02:00
cpq
79aad7fabf
Put Range support back
2021-04-29 11:00:57 +01:00
cpq
7851930ac3
Fix #1256
2021-04-29 09:50:33 +01:00
cpq
758572872d
Fix #1255
2021-04-29 09:26:37 +01:00
cpq
111551477a
Integrate #1266
2021-04-29 09:17:24 +01:00
cpq
31c9e3fb7e
Make mg_random() weak, see #1269
2021-04-29 09:09:21 +01:00
cpq
7061b7202f
Integrate 1265
2021-04-29 08:49:23 +01:00
novlean
d88b6a3c95
Update README.md
2021-04-28 17:07:39 +01:00
novlean
cea2a62ee0
Added Schneider Electric case study & testimonial
2021-04-28 17:06:27 +01:00
cpq
35a8b8e8e8
TLS nits, more DNS logging
2021-04-22 15:21:16 +01:00
cpq
1b8624f135
Better log trace
2021-04-13 21:02:05 +01:00
cpq
e217066bf6
Squash warning
2021-04-13 19:42:47 +01:00
cpq
5430408218
Merge branch 'master' of github.com:cesanta/mongoose
2021-04-09 16:55:16 +01:00
cpq
d2744063a0
Remove unused MG_SWAPxx macros
2021-04-09 16:55:12 +01:00
Sergey Lyubka
03356616ef
Merge pull request #1259 from mcottrell1/fix-msvc-compile-errors
...
fixed msvc errors around VLAs when using TLS
2021-04-09 16:54:23 +01:00
Mark Cottrell
6ce2e48dd3
fixed msvc errors around VLAs
2021-04-09 08:11:16 -07:00
novlean
16a7ba6bf0
Added 4 new sections
...
Why Mongoose
Used to implement
Case Studies
Testimonials
2021-03-25 17:50:56 +00:00
cpq
e9d122f231
Stricter checks for mg_url_*()
2021-03-24 15:49:35 +00:00
cpq
0ae5c61759
More comments
2021-03-23 14:02:24 +00:00
cpq
691460c5fc
Add linux target to http-server example
2021-03-22 11:30:48 +00:00
cpq
ab1c924388
Better check in mg_iobuf_resize()
2021-03-22 11:30:29 +00:00
cpq
05050eba38
Squash warning in mg_random
2021-03-22 11:29:59 +00:00
cpq
912dd518bf
Tests for mg_to64()
2021-03-21 16:18:44 +00:00
cpq
e0395a9907
Merge branch 'master' of github.com:cesanta/mongoose
2021-03-21 16:14:56 +00:00
cpq
0051f23e12
Even stricted check in mg_to64()
2021-03-21 16:14:44 +00:00
novlean
a9bb8fa9fc
Update README.md
2021-03-19 14:02:23 +00:00
novlean
09f5d2fdae
Merge pull request #1247 from cesanta/novlean-patch-1
...
added video call offer
2021-03-19 14:01:45 +00:00
novlean
006a9d914c
added video call offer
2021-03-19 14:01:30 +00:00
cpq
9009cbc528
Adjust recv.len after stripping chunked body
2021-03-19 13:13:24 +00:00
cpq
a1862986b8
Better docstring for file upload example
2021-03-18 12:23:03 +00:00
cpq
cc2989a848
Merge branch 'master' of github.com:cesanta/mongoose
2021-03-18 12:01:32 +00:00
cpq
4deb95776f
Remove multipart example code
2021-03-18 11:59:23 +00:00
Sergey Lyubka
f195b27884
Merge pull request #1245 from panosto/mbedtls_parse_crt_and_key_from_buffer
...
mbedtls parse cert and key from buffer
2021-03-18 08:51:04 +00:00
panosto
5036a71334
mbedtls parse cert and key from buffer
2021-03-17 15:23:45 +01:00
cpq
531c47b47c
mg_to64 overflow protection
2021-03-17 13:46:50 +00:00
cpq
4dbb2da78f
Add form-upload example
2021-03-17 13:28:36 +00:00
cpq
41c1e0f08d
Squash truncation warning
2021-03-17 12:22:19 +00:00
cpq
e7b1905e49
Add -Wno-error=format-truncation for test++ build
2021-03-17 12:15:46 +00:00
cpq
e00265f855
Add -Wno-error=format-truncation for linux++ build
2021-03-17 12:11:05 +00:00
cpq
cd36708b6d
Fix tests
2021-03-17 07:46:39 +00:00
cpq
5bd22cb5e4
Add mg_http_next_multipart()
2021-03-17 07:43:29 +00:00
cpq
bc00d5159a
Add mg_http_next_part
2021-03-15 13:20:53 +00:00
cpq
bcb0874477
Add file upload code example
2021-03-15 09:36:27 +00:00
cpq
5326e8d212
Update docs
2021-03-15 09:18:02 +00:00
cpq
4528cc28ef
Add sizep param to mg_file_read()
2021-03-15 09:16:34 +00:00
cpq
381d7cce54
Do not call setsockopts() on a listening connection
2021-03-13 12:36:00 +00:00
cpq
2594e7b37a
Stricter MG_ARCH_CUSTOM and type conversions in sock.c
2021-03-13 12:34:26 +00:00
Sergey Lyubka
4356b953ca
Merge pull request #1238 from cesanta/novlean-patch-1
...
Fixed typos
2021-03-11 13:16:06 +00:00
cpq
e788853156
Fix typos
2021-03-11 13:15:53 +00:00
novlean
91ed6de166
Fixed typos
2021-03-11 13:01:45 +00:00
novlean
cf3aafc32e
added .
2021-03-11 10:16:17 +00:00
cpq
c2d7ff8179
Update readme
2021-03-10 13:44:32 +00:00
cpq
e5eaa1c633
Update readme
2021-03-10 13:42:46 +00:00
cpq
6366c832b0
Add struct mg_http_serve_opts::extra_headers
2021-03-10 07:56:14 +00:00
cpq
f326cbedbe
Fix doc example
2021-03-09 17:44:15 +00:00
cpq
5b272c2b5c
Bump HEAD to 7.3
2021-03-09 11:38:37 +00:00
cpq
452bcc68a4
Add mg_mqtt_next_unsub() signature
2021-03-09 11:29:53 +00:00
cpq
829827d46f
Add mg_mqtt_next_unsub
2021-03-09 09:54:02 +00:00
cpq
ff9d0e462e
Tiny refactor in walkchunks()
2021-03-09 08:22:52 +00:00
cpq
e84ea91a4a
Process chunked body before sending MG_EV_HTTP_MSG
2021-03-09 08:21:29 +00:00
cpq
2dcb10ef36
Less verbose test
2021-03-08 15:45:09 +00:00
cpq
99fa7f0851
2020 -> 2021
2021-03-08 15:44:57 +00:00
cpq
1b5cc341a5
Add streaming client support, MG_EV_HTTP_CHUNK
2021-03-08 15:41:16 +00:00
cpq
d50dc288cd
Add mg_crc32
2021-03-08 15:40:39 +00:00
cpq
060bb29cdc
Restore mg_mqtt_{ping,pong,disconnect}
2021-03-07 12:21:59 +00:00
cpq
366426e8bb
Avoid extra allocation for static HTTP handling
2021-03-07 11:56:20 +00:00
cpq
e710df4c80
Define WEAK to nothing on Cygwin
2021-03-04 14:25:50 +00:00
cpq
79e5841483
Fix QNX build
2021-03-04 11:09:57 +00:00
cpq
374ab4ecf0
Add struct mg_mgr::userdata
2021-02-28 16:40:27 +00:00
cpq
56980be48c
Do not reveal full root dir path
2021-02-17 16:07:18 +00:00
cpq
602c5c0866
Refactor mg_url_encode
2021-02-15 14:42:55 +00:00
cpq
7ce5009de1
Remove reduntant code
2021-02-15 14:42:22 +00:00
cpq
51e3a1304b
Fix TLS build
2021-02-13 10:45:27 +00:00
cpq
d5a1d5a5e8
Stricter realpath checks
2021-02-11 15:03:22 +00:00
cpq
ae5f6c0920
Increase conn label size 32 -> 50
2021-02-10 11:09:13 +00:00
cpq
0a9303bb07
Stricter mg_http_parse()
2021-02-09 21:16:33 +00:00
cpq
42bc7b1f47
Add "struct mg_http_message::head" attr
2021-02-09 13:27:17 +00:00
cpq
4844ed60bd
Remove fflush in logging
2021-02-09 00:16:13 +00:00
cpq
41f5daeb47
Fix mg_random
2021-02-08 19:43:01 +00:00
cpq
a3f8f33d50
Allow mbedtls CA being inline PEM
2021-02-08 17:50:00 +00:00
cpq
fd8db5c53a
Better unicode handling on win32
2021-02-07 22:43:49 +00:00
cpq
a2f027e798
Change mws binary link
2021-02-07 14:51:37 +00:00
novlean
dad5c8fe87
Update README.md
2021-02-05 16:56:06 +00:00
novlean
98783a41ba
Update README.md
2021-02-05 16:55:26 +00:00
cpq
1517d2985a
Update README
2021-02-04 10:40:33 +00:00
Sergey Lyubka
acc0564957
Merge pull request #1213 from csimons/drainig
...
README.md: fix typo: is_drainig -> is_draining
2021-02-03 08:30:55 +00:00
Christopher Simons
421bc126b5
README.md: fix typo: is_drainig -> is_draining
2021-02-02 22:17:15 -05:00
cpq
ed1a98c381
Remove debug logs
2021-02-03 02:19:17 +00:00
cpq
457d76b049
Fix #1211 - adjust ESP32 example to serve FS
2021-02-03 02:13:05 +00:00
cpq
6827972f71
Fix #1210 - on win32, open upload file in binary mode
2021-02-02 08:43:56 +00:00
cpq
7eb998891e
Show served dir in the start message
2021-02-01 00:02:33 +00:00
cpq
582fde5c6e
Fix #1209
2021-01-31 19:54:42 +00:00
cpq
d327ee9834
Improve SNI
2021-01-30 13:03:11 +00:00
cpq
31cf6f8969
https://localhost -> http://0.0.0.0
2021-01-29 13:18:34 +00:00
cpq
86b1053678
Add error check for iobuf allocation
2021-01-29 12:32:34 +00:00
cpq
6678e36278
Use openssl/ssl.h
2021-01-28 08:45:24 +00:00
cpq
5118355732
Use 64bit file ops even on 32bit systems
2021-01-26 17:43:31 +00:00
cpq
5b4b7f7dc5
Fix test
2021-01-26 17:01:43 +00:00
cpq
7614a8101f
Wrap util funcs that use FILE into MG_ENABLE_FS
2021-01-26 16:34:42 +00:00
cpq
3c851bcfc3
mg_file_write -> mg_file_printf
2021-01-26 16:30:44 +00:00
cpq
01691dafa0
Released 7.1, move HEAD to 7.2
2021-01-26 13:07:42 +00:00
cpq
8e52075636
Handle calloc failures
2021-01-26 12:16:58 +00:00
cpq
7200f079bf
Remove dead code
2021-01-25 14:43:56 +00:00
cpq
d155db81de
Add socks5 server example
2021-01-25 14:43:08 +00:00
Sergey Lyubka
25e3bbf039
Merge pull request #1200 from Davonter/master
...
Fix README.md mg_mgr_free
2021-01-25 10:37:35 +00:00
cpq
eecf3d854b
Show accepted IPv6 peer corrently
2021-01-25 10:35:45 +00:00
cpq
7c2499fc06
-D -> -v
2021-01-25 10:35:14 +00:00
cpq
1aa605c620
desktop-server -> http-server
2021-01-25 10:09:48 +00:00
cpq
66287ad6c1
TLS nits 2
2021-01-25 10:08:15 +00:00
cpq
9a19485454
TLS nits
2021-01-24 13:57:40 +00:00
cpq
7d67d578fd
TLS krypton compat
2021-01-23 17:47:51 +00:00
wangtun
960d3c7880
Fix README.md mg_mgr_free
2021-01-23 15:49:55 +08:00
cpq
9eabf3fa81
URL decoding URI
2021-01-21 17:14:08 +00:00
cpq
89beadd2ce
Squash warning in unit test
2021-01-21 10:24:49 +00:00
cpq
6ecb6c1500
Fix DNS timeout, add unit test
2021-01-21 10:00:18 +00:00
cpq
51bc5f70c5
Disable native socketpair by default, fix multithreaded win32 example
2021-01-21 09:12:49 +00:00
cpq
be62ac9c14
Add more docs
2021-01-20 11:28:47 +00:00
cpq
161c34384d
Enable SO_EXCLUSIVEADDRUSE on Win32. Better listdir response.
2021-01-20 11:10:02 +00:00
cpq
89784ab90a
Restore to a simple version
2021-01-19 14:21:50 +00:00
cpq
d83e547fa9
Make mg_url_port() return 80 for ws://
2021-01-18 18:39:22 +00:00
Sergey Lyubka
30d86928d5
Merge pull request #1191 from RiccardoDalFiume/master
...
FIX README mg_http_serve*
2021-01-17 11:18:32 +00:00
cpq
12c32d09fb
Pass mg_http_message to MG_EV_WS_OPEN
2021-01-17 11:16:19 +00:00
cpq
ae6fd6aa35
Add extra headers param to mg_ws_upgrade()
2021-01-16 22:48:43 +00:00
cpq
72d3a49352
Restore SO_EXCLUSIVEADDRUSE
2021-01-13 03:47:11 +00:00
cpq
87b62390b7
No static for linux
2021-01-13 03:10:42 +00:00
cpq
6c93446a1f
Better reuseaddr handling on Win32
2021-01-13 03:08:11 +00:00
cpq
83c106a857
UI for Win32
2021-01-13 03:07:51 +00:00
cpq
facb2846fd
Bump version
2021-01-13 03:07:38 +00:00
cpq
596c70d3dc
Add config file processing
2021-01-12 15:18:19 +00:00
Riccardo Dal Fiume
7beff0201d
FIX README mg_http_serve*
2021-01-12 11:28:41 +01:00
cpq
a4c9d1ecb7
Update mg_http_serve_file() doc
2021-01-07 16:21:01 +00:00
cpq
b7a79a556a
Add extra headers param to mg_http_serve_file
2021-01-07 12:48:20 +00:00
cpq
03ab9e4e0d
Update axios
2021-01-06 17:11:53 +00:00
cpq
7e855f5c8f
Add oss-fuzz badge
2021-01-05 18:10:01 +00:00
Sergey Lyubka
9e510d5831
Merge pull request #1185 from hakabahitoyo/master
...
Suppress error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive] in MG_ENABLE_OPENSSL build.
2021-01-05 11:46:49 +00:00
Hakaba Hitoyo
1689a0d56b
Update mongoose.c.
2021-01-05 12:35:28 +09:00
cpq
9ff774e7df
Trigger test on pull requests
2021-01-04 12:02:55 +00:00
Hakaba Hitoyo
c78ad0b574
Supress error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
2021-01-04 16:25:06 +09:00
cpq
117aeaa15d
Fix fd leak for cached static files
2021-01-03 09:39:46 +00:00
cpq
e135743efa
Fix example build
2021-01-03 08:55:00 +00:00
cpq
2c1324dc0a
Remove -r option
2021-01-03 08:43:56 +00:00
cpq
c7e09bd7b4
Add SSI include file=, include virtual=
2021-01-02 17:57:51 +00:00
cpq
86824795a0
Pass opts structure to mg_http_serve_dir()
2021-01-02 12:30:09 +00:00
cpq
1b0636c2d2
More checks in mg_ws_send
2021-01-02 12:20:08 +00:00
cpq
2f9d2bbdf6
Update readme
2020-12-29 18:15:06 +00:00
cpq
21a1b2c15c
Update readme
2020-12-29 17:59:05 +00:00
cpq
bdef3d6afd
Fix win98 test
2020-12-28 06:32:55 +00:00
cpq
a882aab30e
Add captive dns server example
2020-12-28 05:25:29 +00:00
cpq
788b577d65
Add README
2020-12-27 01:32:58 +00:00
cpq
71a22adc06
Add ESP8266 example
2020-12-27 01:29:42 +00:00
cpq
7d1ef2ffe8
Add mingw tests to actions
2020-12-25 19:28:05 +00:00
cpq
55f5f74658
Add mingw gcc and g++ tests
2020-12-25 19:24:51 +00:00
cpq
e1fd82bc46
Remove unused code
2020-12-25 15:04:43 +00:00
cpq
49b8480bfb
Add http-reverse-proxy example
2020-12-25 04:32:56 +00:00
cpq
b2ab484883
Fix #954
2020-12-24 19:10:54 +00:00
cpq
4c3b97be7d
Squash -DMG_ENABLE_FS=0 build warning
2020-12-24 18:48:28 +00:00
cpq
60e1b64455
Fix https://github.com/cesanta/mongoose/issues/1030
2020-12-24 17:01:49 +00:00
cpq
6bcd02bb1c
Enhance HTTP client example
2020-12-24 16:52:58 +00:00
cpq
66f302a613
Make DNS debug log less verbose
2020-12-24 16:52:33 +00:00
cpq
1716af6c72
Add HTTP client code
2020-12-24 16:52:12 +00:00
cpq
749326c83a
Add more mg_http_parse unit tests
2020-12-24 14:33:23 +00:00
cpq
9657577c00
Fix typo in fuzz test
2020-12-24 09:09:25 +00:00
cpq
9f5216d259
Add more fuzz tests
2020-12-24 09:07:55 +00:00
cpq
c8826e8f9c
Refactor mg_ntoa and mg_straddr
2020-12-24 08:05:54 +00:00
cpq
25bc13ef1e
Squash some warnings under mingw crosscompiler
2020-12-24 07:26:50 +00:00
cpq
4d123a15f9
Drop deprecated register keyword
2020-12-23 21:20:48 +00:00
cpq
2cf1b09767
Workaround for WIN32 C++ snprintf/vsnprintf/strdup calls
2020-12-23 21:05:46 +00:00
cpq
abfd81cb9d
Fix WS frame length encoding for len 0xffff
2020-12-23 16:18:49 +00:00
cpq
3895678bee
Use MG_EV_WS_CTL for WS control messages
2020-12-23 11:58:08 +00:00
cpq
e0a1feafe0
Fix localhost resolution
2020-12-23 10:15:09 +00:00
cpq
c75eb24eb8
Add proxy client example
2020-12-22 21:01:14 +00:00
cpq
c3aae185df
Add ipv6 server test
2020-12-22 10:16:31 +00:00
cpq
2e87783246
Add IPv6 client test
2020-12-22 09:44:59 +00:00
cpq
fbab767b9f
Fix mg_prefix job
2020-12-21 12:39:03 +00:00
cpq
7bc38b5eaa
Add examples build, fix prefix build
2020-12-21 12:33:27 +00:00
cpq
b93456f512
Do not create socket until resolved
2020-12-21 12:26:44 +00:00
cpq
ddb700eee5
Fix openssl build
2020-12-20 21:50:46 +00:00
cpq
1052ee0766
Fix openssl build, and add openssl test
2020-12-20 21:45:58 +00:00
cpq
29534218d7
IPv6 related refactoring
2020-12-20 16:55:33 +00:00
cpq
d7abd53062
Always send MG_EV_CONNECT on TCP connect
2020-12-18 15:13:19 +00:00
cpq
aede72fa37
Refactor HTTP client
2020-12-18 14:29:30 +00:00
cpq
b0a5165b44
Uload coverage
2020-12-18 11:47:56 +00:00
cpq
4919f792f2
Make build badge a link
2020-12-18 11:32:59 +00:00
cpq
d5927f5d50
Remove travis - migrated to Github Actions
2020-12-18 11:31:31 +00:00
cpq
e68330e045
Rename workflow
2020-12-18 11:26:17 +00:00
cpq
b5d5b3763f
Add workflow badge
2020-12-18 11:24:36 +00:00
cpq
b6a6687c1e
Rename workflow
2020-12-18 11:24:06 +00:00
cpq
3843b670a5
Fix typo
2020-12-18 11:14:21 +00:00
cpq
249efdd378
Add windows test
2020-12-18 11:12:08 +00:00
cpq
18ce1669fc
Add mac test
2020-12-18 11:09:03 +00:00
cpq
e8d3b8030e
Install mbedtls
2020-12-18 10:56:35 +00:00
Sergey Lyubka
a752abf318
Create test.yml
2020-12-18 10:41:27 +00:00
cpq
d3ebcaf5d2
Remove unneeded defines that break vc2015 build
2020-12-18 09:48:28 +00:00
cpq
0abb8322d9
Disable noisy debug
2020-12-18 09:48:05 +00:00
cpq
99ed58ec4d
Better docstrings
2020-12-18 09:08:28 +00:00
cpq
04450ec659
Update http server example to showcase SSL
2020-12-18 09:01:14 +00:00
cpq
82a378e519
Add extra param to http_reply()
2020-12-17 22:47:55 +00:00
cpq
29d31ba919
More boundary checks for mg_dns_parse()
2020-12-17 19:14:17 +00:00
cpq
4519ea568d
Add conditional for SSL_use_certificate_chain_file()
2020-12-17 12:12:46 +00:00
cpq
9f88f31f01
Add timer example
2020-12-17 11:44:30 +00:00
cpq
4bdea2b467
Add README to the esp32 example
2020-12-17 11:24:28 +00:00
cpq
2252a74cd7
Note on UDP
2020-12-17 11:19:13 +00:00
cpq
d1fa7b88e0
Disable brew update
2020-12-16 14:05:36 +00:00
cpq
9ecf42578c
Fix screenshot link
2020-12-16 10:54:47 +00:00
cpq
754fc25924
Add description & screenshots
2020-12-16 10:54:09 +00:00
cpq
d9551c75b1
Refactor MQTT parsing
2020-12-16 10:14:00 +00:00
cpq
8d45cf6972
Add mqtt-server example
2020-12-15 20:29:47 +00:00
cpq
f176e1ae59
Handle more mime types
2020-12-15 11:58:30 +00:00
cpq
fa8f62fb5d
Squash warnings under linux
2020-12-14 14:05:01 +00:00
cpq
0c142f20d7
Using linux for docker tests
2020-12-14 13:09:56 +00:00
cpq
b641fc6b79
Add esp32 example
2020-12-14 12:58:27 +00:00
cpq
1252a61479
More docs
2020-12-14 09:36:46 +00:00
cpq
5f631c0b96
More docs
2020-12-14 09:35:03 +00:00
cpq
348c579521
Add dns test case
2020-12-14 09:31:23 +00:00
cpq
7ce9cdf0b9
More docs
2020-12-14 09:31:03 +00:00
cpq
09beadb98a
Fix c++ fuzzer build
2020-12-13 16:56:30 +00:00
cpq
5b265a76bd
Add minor case to fuzzer
2020-12-13 16:33:46 +00:00
cpq
c5a4a1c6f2
Remove debug leftover
2020-12-13 00:37:04 +00:00
cpq
88ada54045
More tests
2020-12-12 20:38:09 +00:00
cpq
c5b1c08d05
Use MSG_NONBLOCKING for recv/send
2020-12-12 16:48:47 +00:00
cpq
a0765ade6b
Use -DMG_ENABLE_LINES for fuzzer build
2020-12-12 14:23:28 +00:00
cpq
54250f5fbf
Rename, use hyphen
2020-12-12 10:22:45 +00:00
cpq
f3f397f31e
Add MQTT client example
2020-12-12 10:03:19 +00:00
cpq
d806ed5d5f
Better coverage
2020-12-11 22:58:50 +00:00
cpq
37e9a2ee95
Fix C++ build error
2020-12-11 18:26:54 +00:00
cpq
7ad6a08002
Fix C++ build error
2020-12-11 18:21:29 +00:00
cpq
90686ee5c9
Add ws examples
2020-12-11 17:35:58 +00:00
cpq
85c5577955
mg_dns_parse_name() recursion protection
2020-12-11 14:02:52 +00:00
cpq
30d4a1ad0f
Fix mg_sntp_parse()
2020-12-11 13:16:51 +00:00
cpq
1b551741b8
Fix mg_url_decode fuzz
2020-12-11 09:35:50 +00:00
cpq
369f44adfa
Add version.h
2020-12-10 17:46:26 +00:00
cpq
763f4551d5
More log messages
2020-12-10 17:42:59 +00:00
cpq
42d7865e14
Pre-built desktop server
2020-12-10 17:39:40 +00:00
cpq
cf62702f08
Switch to hivemq
2020-12-10 16:36:24 +00:00
cpq
14ccd78782
Update README
2020-12-10 14:21:38 +00:00
cpq
6c4b5efd98
Add restful and client example
2020-12-10 13:26:05 +00:00
cpq
05a43c563c
Update READMEs
2020-12-08 16:53:35 +00:00
cpq
94d2e86b60
More docs
2020-12-08 16:26:17 +00:00
cpq
d1b8f9e01f
Fuzz-test mg_http_var and base64
2020-12-07 18:52:40 +00:00
cpq
228acefa36
Fix native socketpair call
2020-12-07 10:55:50 +00:00
cpq
d1d8a77bf6
Use socketpair syscall when available
2020-12-07 10:25:28 +00:00
cpq
7ea3293aba
More tests
2020-12-07 08:54:58 +00:00
cpq
082a498afd
Fix badges
2020-12-07 08:08:21 +00:00
cpq
866c987409
Tuning test
2020-12-07 05:46:47 +00:00
cpq
1d0e65d17a
Tuning test
2020-12-07 05:39:07 +00:00
cpq
136a37ef73
Tuning test
2020-12-07 05:18:07 +00:00
cpq
0ce49b5c71
Tuning test
2020-12-07 05:08:21 +00:00
cpq
490ad3834b
Tuning test
2020-12-07 05:00:27 +00:00
cpq
bcc62c96c8
Tuning test
2020-12-07 04:56:50 +00:00
cpq
15d6cb3065
Tuning test
2020-12-07 04:44:23 +00:00
cpq
a490660b38
Tuning test
2020-12-07 04:19:26 +00:00
cpq
72019b7427
Tuning test
2020-12-07 04:18:29 +00:00
cpq
21c0024a2f
Tuning test
2020-12-07 03:59:42 +00:00
cpq
d7a02d13e4
Add test++ linx++
2020-12-07 03:47:37 +00:00
cpq
cb220837b9
Tuning test
2020-12-07 01:27:44 +00:00
cpq
ddaae51d42
Tuning test
2020-12-07 01:12:21 +00:00
cpq
629e55f97d
Tuning test
2020-12-07 01:00:35 +00:00
cpq
909ebad276
Install deps
2020-12-06 23:32:15 +00:00
cpq
cb7743fa39
Move tests -> test
2020-12-06 23:19:56 +00:00
cpq
6197842bca
Merge branch '7.0'
2020-12-06 22:52:11 +00:00
cpq
77d461dcbf
Remove travis build
2020-12-06 22:51:32 +00:00
cpq
47b6060910
Add docs
2020-12-06 21:12:05 +00:00
cpq
47d3fe5af6
Add travis build
2020-12-05 11:58:32 +00:00
cpq
6691a2fdad
Add badges
2020-12-05 11:46:12 +00:00
cpq
746f56f42a
README update
2020-12-05 11:41:23 +00:00
cpq
87de05881c
Add travis build
2020-12-05 11:34:58 +00:00
cpq
f2fba1d200
7.0 refactor
2020-12-05 11:26:32 +00:00
Sergey Lyubka
34d4fb8cf0
Merge pull request #1157 from rojer/qq
...
Add mg_next_query_string_entry_n() and mg_url_decode_n()
2020-10-26 13:25:31 +00:00
Deomid Ryabkov
be64f81eee
Add mg_next_query_string_entry_n() and mg_url_decode_n()
...
Move to mg_util.h so encode and decode are next ot each other.
Pull out mg_next_list_entry_n() for advanced use cases.
Add unit tests.
2020-10-24 22:53:50 +01:00
Sergey Lyubka
9fe1c93c9b
Merge pull request #1143 from rojer/cs_log_lock
...
Add cs_log_{lock,unlock}
2020-08-28 20:46:37 +01:00
Deomid Ryabkov
a4b6d58b24
Add cs_log_{lock,unlock}
...
In implementatiosn that have preemptive scheduelrs these can be implemented
to ensure logging from different threads is properly serialized.
2020-08-28 20:29:13 +01:00
Sergey Lyubka
86f391c701
Merge pull request #1139 from rojer/warns
...
Fix warnings and sync line numbers of unamalgamated sources
2020-08-20 00:45:02 +01:00
Sergey Lyubka
36de38bd11
Merge pull request #1138 from rojer/1135
...
Add missing range check in mg_get_http_header()
2020-08-20 00:44:36 +01:00
Deomid Ryabkov
a308872c88
Fix warnings and sync line numbers of unamalgamated sources
2020-08-19 22:02:50 +01:00
Deomid Ryabkov
a369160296
Add missing range check in mg_get_http_header()
...
h/t BushraAloraini
Fixes https://github.com/cesanta/mongoose/issues/1135
2020-08-19 21:48:45 +01:00
Sergey Lyubka
0a09b46c94
Merge pull request #1128 from rojer/amalgam
...
Sync src with amalgamated versions
2020-07-12 15:32:42 +01:00
Deomid Ryabkov
b0a1cd7b0d
Sync src with amalgamated versions
...
Now src contains exactly what's embedded in mongoose.c and .h, nothing more.
Added `tools/amalgam.sh` to aamlgamate both files at once.
There are no functional changes to mongoose.c, .h in this PR, only slight filename changes.
2020-07-08 02:08:49 +01:00
novlean
73a2b92278
Merge pull request #1124 from cesanta/novlean-patch-1
...
added MWS white paper
2020-06-24 17:08:49 +01:00
novlean
c3bb5bd89e
added MWS white paper
...
Download “9 Things NOT to do when embedding a web server” white paper.
2020-06-24 17:08:35 +01:00
Sergey Lyubka
d22ff2fce7
Really revert 4880069
2020-06-11 19:08:55 +01:00
Sergey Lyubka
fee2980d95
Merge branch 'master' of github.com:cesanta/mongoose
2020-06-11 19:04:45 +01:00
Sergey Lyubka
d6693ed360
Revert 4880069
2020-06-11 19:04:24 +01:00
Sergey Lyubka
4880069775
Fix #1112
2020-06-11 18:38:42 +01:00
Sergey Lyubka
5d217a1262
Merge branch 'dev' of github.com:cesanta/mongoose into dev
2020-06-11 18:29:58 +01:00
Sergey Lyubka
f778d22eac
Make it possible to override default FS update algorithm
...
PUBLISHED_FROM=774a111548da97bd9d195e177b5fb66b0fd66135
2020-06-11 18:27:48 +01:00
Sergey Lyubka
3aa76dcaec
Subst CREDPARAMS
...
PUBLISHED_FROM=545e8dff4ea0bef061c893252c613e3429f56184
2020-06-11 18:27:46 +01:00
Deomid "rojer" Ryabkov
4680573a6b
Fixes for -pedantic build mode
...
PUBLISHED_FROM=d0a15356cf047e579c74869ce3e8fe813752e8c7
2020-05-23 15:55:27 +00:00
Deomid "rojer" Ryabkov
95fcb261eb
Fix processing of keep-alive requests when chunks are consumed
...
PUBLISHED_FROM=136ce2ed4f143d7ee246e5fd1078c431e205bb3a
2020-05-22 23:07:38 +00:00
Sergey Lyubka
5867c67da2
Allow OpenSSL session reuse on 2-way SSL, integrate https://github.com/cesanta/mongoose/pull/877
...
PUBLISHED_FROM=6e2568b963869d062dd51b590f8e536d043c4ca2
2020-05-22 18:56:31 +00:00
Sergey Lyubka
80d74e9e34
Merge branch 'dev'
2020-05-21 16:45:34 +01:00
Sergey Lyubka
43a0b500f5
6.17 -> 6.18
...
PUBLISHED_FROM=7893a216b1f7e86e845122eb425e4fed271244b4
2020-05-21 16:42:09 +01:00
Sergey Lyubka
3d53ed17fb
Allow OpenSSL session reuse on 2-way SSL, integrate https://github.com/cesanta/mongoose/pull/877
...
PUBLISHED_FROM=6e2568b963869d062dd51b590f8e536d043c4ca2
2020-05-21 16:17:14 +01:00
Sergey Lyubka
4ea452307e
Update certs used for SSL test
...
PUBLISHED_FROM=2236ecf7fe06bdaf9a89e697b83ff69e1f8c805c
2020-05-21 16:17:12 +01:00
Deomid "rojer" Ryabkov
e61f20f1ed
Convert amalgam.py to Python 3
...
No mongoose.{c,h} diffs
PUBLISHED_FROM=a995a6d6548a914087969e28908f4e8c9ef1d379
2020-05-09 10:48:41 +00:00
Sergey Lyubka
ca11f5ab49
Fix OpenSSL error issue
...
PUBLISHED_FROM=a3bcdb68f48a4de4a4f55b4399792fdd5211c88d
2020-05-02 11:19:29 +00:00
Sergey Lyubka
000d24d31a
Add http proxy client example
...
PUBLISHED_FROM=443a0d3db63df1b78555a9fa4eff808bef3a9a01
2020-03-25 16:32:49 +00:00
Sergey Lyubka
ef92f2e9c5
Integrate cesanta/dev#1062 - Fix dereferencing in mg_http_free_proto_data_endpoints
...
PUBLISHED_FROM=47fd1a4de07d2c53c994d29c88ac1d3a7f61c1a0
2020-02-21 14:30:21 +00:00
Sergey Lyubka
4e89eac8dd
Integrate cesanta/dev#1074 - Fix typedef bool for MSC
...
PUBLISHED_FROM=f52fe15edd617d9f1ba2aa4051c116e79671554d
2020-02-21 14:24:50 +00:00
Sergey Lyubka
b015e33ea5
Integrate https://github.com/cesanta/mongoose/pull/1096 - dir listing nits
...
PUBLISHED_FROM=a343bd61f98cbcc0f8cab02a62b912e494c27601
2020-02-14 08:30:56 +00:00
Sergey Lyubka
96e762d4a1
Change contributions section
...
PUBLISHED_FROM=676548efdb09989c300693a81dd592fe1cd987b0
2020-02-14 08:30:54 +00:00
Sergey Lyubka
359060a151
mongoose.h 6.17
2020-02-11 12:11:10 +00:00
Sergey Lyubka
af1aff7fbb
mongoose.h 6.17
2020-02-11 12:10:13 +00:00
Sergey Lyubka
517ef216c1
6.16 -> 6.17
...
PUBLISHED_FROM=c0cbd13faf84fdac1f4566be02b596a232b68713
2020-02-11 11:54:54 +00:00
Sergey Lyubka
734c13cdf5
Squash win32 warnings
...
PUBLISHED_FROM=3819e74efb9ac8ff84a68105107afcacaeeab92a
2020-02-11 11:52:07 +00:00
Deomid "rojer" Ryabkov
1bf3ad2426
MQTT ping fixes
...
* Actually drop the connection when no response to ping arrives within the next interval.
* Avoid sending immediate ping when wall time is adjusted, it's usually spurious.
PUBLISHED_FROM=8049280b58edfb94dd0fcb6a1e89ffefe69bcea1
2020-02-11 08:04:02 +00:00
Deomid "rojer" Ryabkov
884b9a4813
Add Content-Encoding: gzip when serving .gz files
...
If file ends with .gz and has known "secondary extnesion", i.e. test.html.gz,
its content type is determined by the secondary extension and content-encoding is set to gzip.
PUBLISHED_FROM=a238763b4424bafabec2e58ccae4522cacdd7c78
2020-02-01 08:33:49 +00:00
Deomid "rojer" Ryabkov
7153690016
Keep the size of the structure the same in non-SSL build
...
PUBLISHED_FROM=8f93bee72bc18efff64354203ee6268f4f8e8768
2020-01-31 11:01:35 +00:00
Deomid "rojer" Ryabkov
f00b3a2b3a
Move ssl_if_data to the end of mg_connection
...
PUBLISHED_FROM=4fb65477b03bedc3206ac286e8236f0f9536f20e
2020-01-31 09:48:30 +00:00
Deomid "rojer" Ryabkov
c2b5e4f3b8
Fix a leak when CA certificate file is invalid
...
Also free up some RAM by not allocating ca_cert when `MBEDTLS_X509_CA_CHAIN_ON_DISK` is enabled.
PUBLISHED_FROM=5e5f4103707de98c929973d2aed0aaedf0bb60da
2020-01-22 10:03:30 +00:00
Deomid "rojer" Ryabkov
bc15e9ce9a
Fix value of MG_MQTT_DUP
...
PUBLISHED_FROM=de1772bd6ea01f3dc467ceebb3b2af5cbe8eb240
2020-01-20 09:33:25 +00:00
Deomid Ryabkov
70dc6d8dc9
Add mg_strcasecmp()
...
CL: Add mg_strcasecmp()
PUBLISHED_FROM=cd2a26fa12473bfa0f5e7a0a1d34fb86562ee082
2019-12-29 19:39:45 +00:00
Deomid Ryabkov
10b11b03a8
Add mg_dns_encode_name_s for non-NUL terminated strings
...
PUBLISHED_FROM=012e2939021d1b275a39632fd2982891d2c98c4e
2019-12-29 19:33:41 +00:00
Sergey Lyubka
cb602f178c
Fix int overflow in parse_mqtt()
...
PUBLISHED_FROM=f9106d2f746c67ae004aeab12685eaf9cd558cd8
2019-12-23 11:13:41 +00:00
Sergey Lyubka
464113c5ae
Sync mongoose changes
...
PUBLISHED_FROM=8b6ebf46728aca40f916dde88e372b4540ed6ea4
2019-12-19 11:12:57 +00:00
Deomid Ryabkov
c34f6c54e7
Fix ota-shadow logic
...
PUBLISHED_FROM=68a57c967f8864946244893c71a397ab4e27d75d
2019-12-07 09:03:26 +00:00
Sergey Lyubka
8fb58ebbca
Lsm
...
PUBLISHED_FROM=5f465d245bb9ada5202cdd23ddc5b9856df26951
2019-11-04 13:48:28 +00:00
Sergey Lyubka
dce60c6dbb
Merge pull request #1054 from M4GNV5/master
...
fix typo in tools/README.md
2019-10-07 09:08:58 +01:00
Jakob Löw
f668d08804
fix typo in tools/README.md
2019-10-01 00:14:11 +02:00
Sergey Lyubka
c41a22195c
Merge pull request #1020 from nliviu/patch-2
...
Fix ASAN build for examples/cookie_auth
2019-09-30 07:46:39 +01:00
Sergey Lyubka
900c05213b
6.15 -> 6.16
2019-09-30 07:44:10 +01:00
Sergey
c5850e4b05
Merge branch 'dev'
2019-09-30 07:41:04 +01:00
Sergey Lyubka
ff4649fe42
Better UI
...
PUBLISHED_FROM=50f0cafa84cd06428f0da376d85766dcf62af9da
2019-07-12 12:33:28 +00:00
Sergey Lyubka
1a38e91042
Next
...
PUBLISHED_FROM=6fa0be81ce429b8db9e3ed572cb4a876b6fb2693
2019-07-12 09:33:26 +00:00
Sergey Lyubka
b6196371bb
Lsm
...
PUBLISHED_FROM=18d9d1e6411db84788c527d1c34ad2adc846df00
2019-06-26 10:33:24 +00:00
Sergey Lyubka
d5beb7ba3f
Merge branch 'dev'
2019-06-13 09:50:09 +01:00
Sergey Lyubka
19acf23c49
6.14 -> 6.15
...
PUBLISHED_FROM=69f3a5f14d4ebce0fb89728fc345f90f1e7b1700
2019-06-13 08:49:37 +00:00
Sergey Lyubka
5cd3291fec
Merge branch 'dev'
2019-06-13 09:45:43 +01:00
Sergey Lyubka
b3e0f780c3
Fix heap-based overflow in parse_mqtt
...
PUBLISHED_FROM=3306592896298597fff5269634df0c1a1555113b
2019-06-13 08:18:14 +00:00
Sergey Lyubka
2bdbfc27f6
Integrate https://github.com/cesanta/mongoose/issues/1008
...
PUBLISHED_FROM=1b7bf2d7318568851e6c8f07451cd3982d9498b6
2019-06-13 07:48:28 +00:00
Sergey Lyubka
3fc61a3edc
Fix mg_resolve2()
...
PUBLISHED_FROM=b0df728a75073c6ea9fc1984bb6a6b463f539347
2019-05-24 12:33:25 +00:00
Liviu
12339bbf4c
Fix ASAN build
...
The ASAN build fails with
```
cookie_auth.c:62:7: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (cookie_header == NULL) goto clean;
^~~~~~~~~~~~~~~~~~~~~
cookie_auth.c:84:10: note: uninitialized use occurs here
return ret;
^~~
cookie_auth.c:62:3: note: remove the 'if' if its condition is always false
if (cookie_header == NULL) goto clean;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cookie_auth.c:65:3: note: variable 'ret' is declared here
struct session *ret = NULL;
^
cookie_auth.c:62:7: error: variable 'ssid' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (cookie_header == NULL) goto clean;
^~~~~~~~~~~~~~~~~~~~~
cookie_auth.c:81:7: note: uninitialized use occurs here
if (ssid != ssid_buf) {
^~~~
cookie_auth.c:62:3: note: remove the 'if' if its condition is always false
if (cookie_header == NULL) goto clean;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cookie_auth.c:64:3: note: variable 'ssid' is declared here
char *ssid = ssid_buf;
^
2 errors generated.
```
2019-05-08 14:54:31 +03:00
Deomid Ryabkov
1fb9f922b0
Fix mgos compile check
...
CL: none
PUBLISHED_FROM=a1320658181aa19cd1a269d7ae62e11b3439ef84
2019-05-03 16:36:08 +00:00
Deomid Ryabkov
b93bc02ab0
Delete mos tool and related libraries from dev
...
Moved to https://github.com/mongoose-os/mos
PUBLISHED_FROM=8a0475678dba38fd6e057b8a530e9d08054ff74f
2019-05-02 12:03:33 +00:00
novlean
747e393a54
updated link to forum
...
PUBLISHED_FROM=784159d816e78f18fbfa6826f18bdea7d88dccbb
2019-04-29 12:40:14 +00:00
Deomid Ryabkov
4e8660a21f
RS14100 fixes
...
CL: none
PUBLISHED_FROM=4d5d68f92d6c082b5b0c25ed8935fc097939001f
2019-04-24 19:16:41 +00:00
Deomid Ryabkov
3fe77fa9a6
RS14100: Optimize flash reads
...
CL: none
PUBLISHED_FROM=49d4f4a3c83520fd6ec9714b74333f75f3a2aa1c
2019-04-24 16:18:28 +00:00
Deomid Ryabkov
b4fbaf7c13
Fix locking in lwip net_if
...
Was not being enabled when it should have been.
CL: Fix locking in lwip net_if
PUBLISHED_FROM=4810e73417c7599f0ea08a09812ed320d02f7cae
2019-04-23 20:03:44 +00:00
Deomid Ryabkov
9884241df8
mg_net_if_lwip: Fix invoking callbacks on tcpip thread
...
tcpip_callback doesn't wait for the callback to run (as was previosuly assumed).
CL: mg_net_if_lwip: Fix invoking callbacks on tcpip thread
PUBLISHED_FROM=930c45f1346f9c3b024e5e684f4a452c762db92b
2019-04-15 16:33:40 +00:00
Deomid Ryabkov
63d7a4fa45
Core dump analysis improvements
...
* ARM
* Provide MSP and PSP
* Provide FreeRTOS task info
* Profide target specification XML (extra regs and FPU / no FPU Cortex cores)
* ESP32
* Use uxTaskGetSystemState instead of uxTaskGetTaskHandles
* General cleanup and refactoring
CL: Core dump analysis improvements
PUBLISHED_FROM=3297ffb2e6069a3a6a598367273bc2183063cf1e
2019-04-10 19:18:33 +00:00
Deomid Ryabkov
8f4b6c41a2
Make FreeRTOS a library, upgrade to 10.2.0
...
All the platforms except esp32 (which uses heavily patched 9.0 from IDF) and esp8266 (doesn't use RTOS at all) are using the same version of FreeRTOS now.
CL: Make FreeRTOS a library, upgrade to 10.2.0
PUBLISHED_FROM=a4f7949a9f1546d23fc183412445859830f02d1a
2019-04-01 19:02:26 +00:00
Deomid Ryabkov
4493d65ec9
RS14100: Flash and FS support, increase CPU and flash clock
...
Run CPU at 180 MHz, flash at up to 100.
CL: RS14100: FS support, increase CPU and flash clock
PUBLISHED_FROM=e9f995bf03e4e36dc66e19a2a2d60ae1675ecaae
2019-03-28 23:18:36 +00:00
Deomid Ryabkov
e5910da300
Deliver EV_CLOSE to the last endpoint handler
...
CL: mg: Deliver EV_CLOSE to the last endpoint handler
PUBLISHED_FROM=02ee2c6627ed9ee1d35022244f71dfe1877ce2c0
2019-03-19 13:15:41 +00:00
Deomid Ryabkov
c277a1d878
Do not amalgamate platform_custom.h include
...
CL: none
PUBLISHED_FROM=4f84111ef76bd609348c439304f46556ce5d4497
2019-03-12 11:48:27 +00:00
Deomid Ryabkov
7820ad3a59
RS14100: Blinky
...
The humble beginning...
CL: RS14100: Blinky
PUBLISHED_FROM=7f1dc4d826122ababae44b52c52ed84b15d0ae5c
2019-03-08 23:03:39 +00:00
Sergey Lyubka
23533b83a4
Allow NULL handler for mg_bind and mg_connect
...
CL: Allow NULL handler for mg_bind and mg_connect
PUBLISHED_FROM=4963d5c022c2c57dd03101d9c7e72ca910c3bb61
2019-03-06 12:33:24 +00:00
Deomid Ryabkov
ab650ec5c9
Merge branch 'dev'
2019-03-04 15:19:32 +00:00
Deomid Ryabkov
8f36597048
Mongoose 6.14
...
PUBLISHED_FROM=3e6e17d1f1cfb05efc37d76279dcbedb7f1add5d
2019-03-04 15:15:35 +00:00
Deomid Ryabkov
d0213ee90a
ESP32: Add support for the 3/4 key encoding scheme
...
* Add calculated redundancy values when writing eFuse blocks 1-3
* Perform 192 -> 256 bit key extension when encrypting images for flashing
Fixes https://github.com/cesanta/mos-tool/issues/37
CL: mos: ESP32: Add support for the 3/4 key encoding scheme
PUBLISHED_FROM=16639fb25d5200550ad2097929239d896e188b5b
2019-03-04 09:18:28 +00:00
Deomid Ryabkov
1e9fabe1ca
Fix handling of WS handshake error response
...
Check response code, make sure it's 101.
Pass http_message to the client to keep it appraised.
This represents a slight change in the API -
in case of an error MG_EV_WEBSOCKET_HANDSHAKE_DONE will now be delivered where previosuly connection would just hang.
Clients that do not examine the argument may for a moment think handshake has succeeded but in fact connection will be closed immediately.
CL: mg: Fix handling of WS handshake error response
PUBLISHED_FROM=645a43d9e5bee216e54411f85827c9b974e9a7d1
2019-02-14 21:19:34 +00:00
Deomid Ryabkov
148d3f0562
STM32F2 and Particle Electron board support
...
CL: STM32F2 and Particle Electron board support
PUBLISHED_FROM=20dede6546e9f99d2829508177924790d87e985a
2019-02-12 13:36:54 +00:00
Deomid Ryabkov
c3057df3f5
Fix mongoose CI test
...
CL: none
PUBLISHED_FROM=9510e460251c250cb6a67a40edc0af515044f9fe
2019-02-08 17:38:56 +00:00
Deomid Ryabkov
0b2e474d52
Improve ESP flasher baud rate setting
...
Use old baud rate and autodetected divider to calculate new divider.
This works better with higher baud rates and drifting clocks.
CL: mos: Improve ESP flasher baud rate setting
PUBLISHED_FROM=7761e756c3ae7cc76e3b9a4fe3e40d06a779b2e8
2019-02-08 17:38:55 +00:00
Deomid Ryabkov
95a36b1759
Log file:line instead of function; add cs_log_set_file_level()
...
cs_log_set_filter() is removed in favor of cs_log_set_file_level() which
allows setting log verbosity of individual files and/or lines.
E.g.: `mg_=1,mjs=1,=4` - level for for everything except mjs and mongoose.
We use the fact that we are usually pretty careful with our file names and use prefixes consistently.
In mos, `debug.file_level` sets the option on boot and `Sys.SetDebug` is updated to parse `file_level` option to change it at runtime.
CL: Log file:line instead of function; add cs_log_set_file_level()
PUBLISHED_FROM=49f18d4d0d3dd224865129a4f8fe6cccd1d9bc12
2019-01-30 12:57:19 +00:00
Deomid Ryabkov
86ffa3a3ea
Properly support MQTT wildcards when matching topics
...
CL: mg: Properly support MQTT wildcards when matching topics
PUBLISHED_FROM=aa60a71d488f4b56dff0951886c8a9a4066fd4f2
2019-01-22 12:19:04 +00:00
Deomid Ryabkov
69e2b2985d
Add mg_strfree()
...
CL: Add mg_strfree()
PUBLISHED_FROM=b80566218986e0607a9d2758bf776a1031b27212
2019-01-16 22:48:59 +00:00
Бобби
c431904b56
Send extra options with OPTIONS
...
CL: Send extra options with OPTIONS. Integrate https://github.com/cesanta/mongoose/pull/657
PUBLISHED_FROM=6ee609a92febd8d908f7713f94fb73657443a09a
2019-01-16 11:33:57 +00:00
Deomid Ryabkov
c2a10601b9
Fix nsleep100 on STM32
...
CL: Fix nsleep100 on STM32
PUBLISHED_FROM=cabb98a0541bac9bb66bfa702d54bf8ff20063e7
2019-01-08 20:43:55 +00:00
Deomid Ryabkov
e9a8e5468d
Convert Python scripts to Python 3, delete unused ones
...
CL: none
PUBLISHED_FROM=4bbc2175634e20a726dd4b2dadff57f945b261d0
2018-12-25 20:38:58 +00:00
Sergey Lyubka
22e602debb
Check for NULL in tcp_recved_tcpip()
...
CL: Check for NULL in tcp_recved_tcpip()
PUBLISHED_FROM=3f5bbc2e35b79d363eac4b99a1f0d17c9b81d4ec
2018-12-21 13:03:48 +00:00
Deomid Ryabkov
455cec67a5
CC3220: Enterprise auth support
...
CL: wifi: CC3220: Enterprise auth support
PUBLISHED_FROM=ce445eb5b740073c9a3f9811f1acd404ce134f2e
2018-12-18 18:19:21 +00:00
Deomid Ryabkov
e2dfac946d
Ensure that user sees all the data before connection is closed
...
If user throttles receive by setting recv_mbuf_limit,
after the net interface reports connection as closed we must wait
for data to trickle through before disposing of it.
There can still b data in the buffers (e.g. SSL).
CL: mg: Ensure that user sees all the data before connection is closed
PUBLISHED_FROM=22be0fa368950a9fdb03cfb00febc7c0a1674b01
2018-12-10 21:04:49 +00:00
Бобби
c198d2e5f1
Make MG_CTL_MSG_MESSAGE_SIZE overridable
...
CL: Make MG_CTL_MSG_MESSAGE_SIZE overridable
Fix https://github.com/cesanta/mongoose/pull/987
PUBLISHED_FROM=b0a7c67297b98f616c9eadcd3c34b8747939c918
2018-12-07 10:04:00 +00:00
Deomid Ryabkov
9a70abef24
Add mbuf_append_and_free() and mbuf_move()
...
CL: Add mbuf_append_and_free() and mbuf_move()
PUBLISHED_FROM=bdf73906dd93b2ebeace160596508e15480b54b4
2018-12-05 21:49:01 +00:00
Deomid Ryabkov
53e1c469a2
Add ability for multipart data handler to provide pushback
...
It can specify how much data was actually processed and the rest will be re-delivered on next poll.
CL: mg: Add ability for multipart data handler to provide pushback
PUBLISHED_FROM=e0168c5064c3a32921c9209bc09f4da2079cd616
2018-12-05 16:02:56 +00:00
Deomid Ryabkov
139c2061a8
Add create-fw-bundle command
...
Replacement for fw_meta.py commands and also supports unbundling .hex files.
General syntax is:
```
$ mos create-fw-bundle -o fw.zip part1:prop1=val1,prop2=val2,... part2:...
```
Example of building a mos fw bundle for ESP8266:
```
$ mos create-fw-bundle -o fw.zip --platform esp8266 --build-info=build_info.json \
boot:addr=0x0,src=rboot.bin,update=false \
boot_cfg:addr=0x7000,size=0x1000,fill=0xff \
fw:addr=0x100000,src=demo-c.bin \
fs:src=fs.bin,type=fs,addr=0x8000,fs_size=262144,fs_block_size=4096,fs_page_size=256,fs_erase_size=4096
```
Example of converting a HEX file to a bundle:
```
$ mos create-fw-bundle -o fw.zip host:type=host,src=hostfw.hex
```
CL: mos: Add create-fw-bundle command
PUBLISHED_FROM=35f52ea53e4b5900463415257323a4c08cf45deb
2018-11-28 20:34:06 +00:00
Deomid Ryabkov
15b361fbac
Add mbuf_clear()
...
PUBLISHED_FROM=754b98b3000b24ad3b3d9cc0b4c480ca005a1c3f
2018-11-23 15:50:55 +00:00
Deomid Ryabkov
3130e59244
Stop reading if connection is closing
...
CL: none
PUBLISHED_FROM=3b74ca02e2960bbbf130f6d95aef679f2917e824
2018-11-02 18:12:34 +00:00
Deomid Ryabkov
93286836f9
Read all available data during recv poll
...
CL: mg: Read all available data during recv poll
PUBLISHED_FROM=b081025b9fb392c988924c7097b5333c38053f6f
2018-11-02 14:50:32 +00:00
Deomid Ryabkov
91b57aa9a8
Add MG_MK_STR_N() and mg_str_starts_with()
...
CL: Add MG_MK_STR_N() and mg_str_starts_with()
PUBLISHED_FROM=f01003efc6aa6ff45fa99c7ad6e5319f5002f22d
2018-10-29 15:50:31 +00:00
Deomid Ryabkov
220231e647
Fix digest auth result comparison
...
Should use length of the exected response, not the response sent by the user.
CL: mg: Fix digest auth result comparison
PUBLISHED_FROM=23375133b8babac0b276b51395917ad975e1bd3c
2018-10-15 16:47:18 +00:00
Deomid Ryabkov
c438bb0bc5
Make mg_rpc more easily portable
...
CL: none
PUBLISHED_FROM=2e77d72cdf82454349a7fe29cc77bd0b90ac4369
2018-10-09 12:04:12 +00:00
Deomid Ryabkov
95afa323c0
Merge pull request #978 from cesanta/dev
...
Mongoose 6.13
2018-10-08 14:06:45 +01:00
Deomid Ryabkov
bc56353a79
Mongoose 6.13
...
CL: none
PUBLISHED_FROM=32418b7da17a68193e88405547152f58a4dd877f
2018-10-08 12:20:32 +00:00
Deomid Ryabkov
1ffccdb7b2
Remove a spammy log line
...
PUBLISHED_FROM=b3ec2b3b43a464700a6e6d75b7336f823549cce3
2018-10-04 15:48:48 +00:00
Deomid Ryabkov
e79fe4b8f0
Update mbedTLS to 2.13.1
...
CL: Update mbedTLS to 2.13.1
PUBLISHED_FROM=bd1216f727605a901f062a044c0c0ca762f4a6d1
2018-10-04 10:06:35 +00:00
Deomid Ryabkov
aaf1fc3a4a
Schedule a poll when LwIP reports TCP data sent
...
PUBLISHED_FROM=0cf3029d9a9b851882325e2298b878bc83fc2d33
2018-09-28 11:03:47 +00:00
Deomid Ryabkov
8b42353039
Check HTTP chunk size, ensure it's reasonable
...
CL: mg: Check HTTP chunk size, ensure it's reasonable
PUBLISHED_FROM=d9f6babd314c092b42ce9e7fe31d6b30a38366a2
2018-09-27 12:51:21 +00:00
Deomid Ryabkov
05c687e251
Fix handling of keepalive HTTP requests/responses
...
Clean the HTTP connection state when ia request/response has been fully
buffered and handler invoked.
Fixes https://github.com/cesanta/mongoose/issues/971
CL: mg: Fix handling of keepalive HTTP requests/responses
PUBLISHED_FROM=70c854aa306aacb9161f6ee48841f38dc0312e6b
2018-09-27 12:51:18 +00:00
Deomid Ryabkov
492b8f6950
CC3200: Fix boot loader regression
...
Go back to Ubuntu 16.04 and older gcc-arm (4.9.3).
Boot loader just won't run when compiled with newer GCC (7.x).
It's likely that it can be fixed with compile switches but I couldn't figure it out quickly, so going to just downgrade for now to get it back to workign state.
CL: CC3200: Fix boot loader regression
PUBLISHED_FROM=b70b03bd17e03c7dae02328b32b855f3ca3ad6a9
2018-09-25 20:32:35 +00:00
Deomid Ryabkov
8ccee82059
Add mgos_gpio_blink()
...
CL: Add mgos_gpio_blink()
PUBLISHED_FROM=a5d2e2f44413d1ab363abeeaf0fb497bd8f63d6d
2018-09-25 20:32:33 +00:00
Deomid Ryabkov
b99a94a652
Fix build w/o logging
...
PUBLISHED_FROM=694346bd6562c55e5ab00886df47f7cbfb0a3720
2018-09-25 11:34:05 +00:00
Deomid Ryabkov
41e5d7e471
Use mbedTLS from mongoose-os-libs/mbedtls
...
mbedTLS is just another lib now
CL: Use mbedTLS from mongoose-os-libs/mbedtls
PUBLISHED_FROM=bae4739d22e871bd268b8a3233dbb69634770243
2018-09-20 20:38:11 +00:00
Sergey Lyubka
1adea37c45
Integrate https://github.com/cesanta/mongoose/pull/667 , fix documentation
...
CL: Integrate https://github.com/cesanta/mongoose/pull/667 , fix documentation
PUBLISHED_FROM=80a939fc3276b89c29716e7373f674dba86769ee
2018-09-20 15:34:36 +00:00
Deomid Ryabkov
98f6c8aa4f
Trim recv_mbuf when we know the size of the data
...
CL: none
PUBLISHED_FROM=e354b67ab6f8246af50c601f5f70d36c029601ea
2018-09-17 16:04:00 +00:00
Deomid Ryabkov
341ae53e85
Update mongoose.h (amalgamation)
...
PUBLISHED_FROM=1fbe72f99bda5745c4b9b9def0601bdc5bf70e65
2018-09-14 21:19:15 +00:00
Sergey Lyubka
291fc024cd
Docs nits
...
CL: Docs nits
PUBLISHED_FROM=1a2fc8080d94673acf300c6f07aba3a1e6272295
2018-09-14 08:03:58 +00:00
Deomid Ryabkov
f63d833a33
Update STM32 build image
...
* Update CubeL4 to 1.13.0
* Rebuild OurTLS with `-DMBEDTLS_X509_CA_CHAIN_ON_DISK`
* Add `-Wextra` and fix build issues
CL: Update STM32 build image
PUBLISHED_FROM=a7eacff7580bab6c6e40bdaf6164df575a717c55
2018-09-11 11:49:08 +00:00
Deomid Ryabkov
ab035901f8
ISM43XXX networking support (TCP, UDP client)
...
Listeners still TODO
CL: ISM43XXX networking support (TCP, UDP client)
PUBLISHED_FROM=b58ba88b9e6bd7b55ccb607d0b69cea98cb52fa5
2018-09-11 06:34:08 +00:00
Deomid Ryabkov
20f54059ad
STM32: Make LWIP optional
...
CL: STM32: Make LWIP optional
PUBLISHED_FROM=eebffe7800a74d7b69aafd95e476b2e90328be98
2018-09-06 11:27:58 +00:00
Deomid Ryabkov
563c31303e
Add net_if_null, a no-op net interface
...
Can be used for cases where device has no networking but mongoose is still needed for its event loop.
CL: mg: Add net_if_null, a no-op net interface
PUBLISHED_FROM=e79b4a8667508bbde1437dda9dad77ce3a3aa630
2018-09-06 08:34:17 +00:00
Deomid Ryabkov
421e099f2b
Refactor mg polling
...
* Change return type of mg_mgr_poll to return number of events
* Add mg_mgr_min_timer
* Refactor main poll loop to remove LwIP-specific stuff
CL: Refactor mg polling
PUBLISHED_FROM=dc94618b32fa3c84a2f053bd04d134297780ec82
2018-09-06 06:34:18 +00:00
Бобби
955d4a3129
Fix file upload on windows
...
CL: Fix https://github.com/cesanta/mongoose/issues/962 - file upload on windows
PUBLISHED_FROM=85688eee147a1df468cca92f4ac61526ce9c02bf
2018-08-21 15:06:40 +00:00
Deomid Ryabkov
b84981ad03
STM32 OTA support for L475-IOT01 and DISCO-F746
...
A smattering of other related changes
CL: STM32 OTA support for L475-IOT01 and DISCO-F746
PUBLISHED_FROM=e7142337086d09ba21437455b22d00db47ab33f1
2018-08-18 07:49:30 +00:00
Deomid Ryabkov
777b8e94e2
Merge branch 'dev' (Mongoose 6.12)
2018-08-13 19:30:06 +03:00
Sergey Lyubka
6df642623a
Delete CONTRIBUTING.md
2018-08-13 19:28:18 +03:00
Deomid Ryabkov
0a3e186f11
Mongoose 6.12
...
CL: Mongoose 6.12
PUBLISHED_FROM=8008e4db2f6d94d972fb6e1077525e262c8744aa
2018-08-13 14:41:42 +00:00
Deomid Ryabkov
c2d83a9db0
Don't touch send_mbuf when sending MQTT messages
...
h/t @M4GNV5
Fixes https://github.com/cesanta/mongoose/issues/943
Closes https://github.com/cesanta/mongoose/issues/944
CL: mg: Don't touch send_mbuf when sending MQTT messages
PUBLISHED_FROM=da7b4f8acec2e403caa4addd5739d036a6a74c76
2018-08-13 14:04:49 +00:00
Deomid Ryabkov
f33d3a4e02
Fix body length calculation in mg_handle_cgi
...
Fixes https://nvd.nist.gov/vuln/detail/CVE-2018-10945
CL: mg: Fix body length calculation in mg_handle_cgi
PUBLISHED_FROM=0c30cf36fdb67c75f6148468701e23d6ee72d953
2018-08-13 13:05:22 +00:00
Deomid Ryabkov
86b8a56b05
Add host name verification for OpenSSL
...
Closes https://github.com/cesanta/mongoose/pull/955
CL: mg: Add host name verification for OpenSSL
PUBLISHED_FROM=e35dd636ba7ce63116f0a38031074d22f6cd5dac
2018-08-13 13:05:21 +00:00
Бобби
ac6ec15aed
Make esp8266 compilation a little less verbose
...
CL: Make esp8266 compilation a little less verbose
PUBLISHED_FROM=0ec1412ea32243f263d52fbe0877ecca1efc5aef
2018-07-23 15:26:47 +00:00
Deomid Ryabkov
31632c6361
Fix build with CS_ENABLE_STDIO=0
...
Closes https://github.com/cesanta/mongoose/pull/945
CL: Fix build with CS_ENABLE_STDIO=0
PUBLISHED_FROM=7d15f17fc42241facdba5b1004b5b7f3dda599dc
2018-07-12 20:42:45 +00:00
Deomid Ryabkov
98c99279c3
Fix warnings on newer versions of GCC
...
PUBLISHED_FROM=f1d25145446057fed9e8d634ca637364ca43a5e8
2018-07-09 08:34:29 +00:00
Deomid Ryabkov
cdb8d7b692
Add mg_strstrip: trims whitespace at the ends of s
...
CL: Add mg_strstrip: trims whitespace at the ends of s
PUBLISHED_FROM=a7e10054ac25fa2b3a878876da93a6b30d9507b3
2018-07-07 14:04:42 +00:00
Deomid Ryabkov
93ac3e19f0
Stringify multi-word macros correctly
...
Use vararg macros for this.
PUBLISHED_FROM=735c40b79dedef17a1fdbb5b846e984df0ae7018
2018-07-03 15:05:23 +00:00
Deomid Ryabkov
6a51af9efe
Fix a bug in mg_mgr_init_opt with opts.num_ifaces
...
h/t @YankunLi
Closes https://github.com/cesanta/mongoose/pull/939
CL: mg: Fix a bug in mg_mgr_init_opt with opts.num_ifaces
PUBLISHED_FROM=a87518b3505429a3cf9cd6d84b3b781e7dbdcfd5
2018-06-27 08:50:07 +00:00
Deomid Ryabkov
9d73b3470b
Add LFS (littleFS) library
...
CL: mos support for LFS (littlefs) https://github.com/ARMmbed/littlefs
PUBLISHED_FROM=e72957b4fb2c78949af4cf6d5bfef135ddba9fd9
2018-06-26 16:49:42 +00:00
Deomid Ryabkov
1c8449cea6
Fix pipelining issue with multipart upload
...
Do not clear buffer at the end of multipart request to allow following request to proceed.
Closes https://github.com/cesanta/mongoose/pull/940
CL: mg: Fix pipelining issue with multipart upload
PUBLISHED_FROM=cc7d38b126eaa863553ee4e124cfafcd72030fcf
2018-06-26 12:05:04 +00:00
Deomid Ryabkov
3bbbd41196
Add missing CC3220 sub-header to mongoose.h
...
CL: Add missing CC3220 sub-header to mongoose.h
PUBLISHED_FROM=a143485b629109c6e16c66b035f02f7552f76129
2018-06-21 16:34:56 +00:00
Deomid Ryabkov
339bbee0df
mg_file_upload_handler: Support multiple files
...
curl -F file1 -F file2 ...
Add a unit test and fix a minor memory leak when returning an error.
CL: mg_file_upload_handler: Support multiple files
PUBLISHED_FROM=5c4bf2be676346fb782e80f50f79df6a6721ac88
2018-06-20 13:35:31 +00:00
Deomid Ryabkov
9ba6eb716d
mg_lwip: Fix race during clean conenction teardown
...
Set CLOSE_IMMEDIATELY flag when destroying conn.
This avoid some races in LWIP adapter.
CL: mg_lwip: Fix race during clean conenction teardown
PUBLISHED_FROM=5c67982390dfaf83527e85d1291f64c6050aa932
2018-06-18 16:35:04 +00:00
Deomid Ryabkov
d949c19c7e
mgos_nsleep100 impl for ARM-based platforms
...
startup cleanup on CC3220
CL: none
PUBLISHED_FROM=0998fad82fbcdbde30dca42833f2e48d148592bf
2018-06-06 08:04:33 +00:00
Deomid Ryabkov
1299d6118f
Add MG_HIDE_SERVER_INFO
...
Closes https://github.com/cesanta/mos-libs/pull/2
CL: Add MG_HIDE_SERVER_INFO
PUBLISHED_FROM=ed8a5b65f1c8238df414cd1c1f8bb1f579082f55
2018-05-17 16:20:44 +00:00
Deomid Ryabkov
244ff92e78
Minor build optimization
...
PUBLISHED_FROM=9997c64ed0c713b5b8b29df7a49b532e880eac53
2018-05-10 19:05:40 +00:00
Deomid Ryabkov
53f34dea04
Fix TZ on ESP8266
...
CL: Fix TZ on ESP8266
PUBLISHED_FROM=435a501a8b52524bccb67bb5a8ae7e09dfb4d44a
2018-04-26 15:26:39 +00:00
Sergey Lyubka
1f5c3fac31
Delete CONTRIBUTING.md
2018-04-17 15:08:35 +01:00
Sergey Lyubka
7014258c8d
Remove copyright notices - that explained in the CLA.
...
CL: none
PUBLISHED_FROM=9cb4b915906d471ef5de4e0825567d0b942d3f7b
2018-04-17 11:45:31 +00:00
Deomid Ryabkov
1614e7ba8d
Restore FFI-ability of struct mg_str
...
mgos_dlsym needs to include mg_str for ffi_exports to be able to use it
PUBLISHED_FROM=a2dd167c8e8f9e9b7316a856f19a4603080c3632
2018-04-13 17:12:07 +00:00
Deomid Ryabkov
43b5a4e735
Add a special attribute to printf-like funcs
...
Enables extra compile-time checks
CL: none
PUBLISHED_FROM=9f7d658fbda5c721cf40293bf29967bb056d0437
2018-04-13 17:12:06 +00:00
Deomid Ryabkov
43191db63e
Fix boot loader UART baud rate on soft reboot
...
Also remove `-O3` optimization flasg, it negates `-Os`. Saves ~400 bytes.
CL: none
PUBLISHED_FROM=f40f42e4f54a8e0e003ab65ec8f5838c2d932876
2018-04-11 18:35:15 +00:00
Deomid Ryabkov
e89be2e944
Add mg_url_encode_opt()
...
CL: Add `mg_url_encode_opt()` - a parametrized version of `mg_url_encode()`
PUBLISHED_FROM=17fa57a7a5325b51b6e3aef3855eac4e82c35782
2018-04-10 11:04:31 +00:00
Deomid Ryabkov
c2fbff6d0e
Fix mg_http_parse_header
...
Per standard, cookies are delimited by `; `.
CL: Fix mg_http_parse_header: treat ";" as a delimiter.
PUBLISHED_FROM=039243c30f5fabf4a4700a43506f841b3268306a
2018-04-10 10:19:36 +00:00
Deomid Ryabkov
b8eca17c55
Reamalgam mongoose.{c,h}
...
PUBLISHED_FROM=8828792097bd19774472b8a2e61420565684d174
2018-04-03 16:08:21 +00:00
Sergey Lyubka
4650e491df
Apache license to common/
...
CL: Apache license to common/
PUBLISHED_FROM=901e9e4b12a31289b3515d1f86dd56a7f0f35c5e
2018-04-03 11:49:59 +00:00
Deomid Ryabkov
3e33e57707
Mongoose net_if and ssl_if refactoring
...
A major cleanup, disentangling net_if and ssl_if.
Pulled a lot of common logic into the core and reduced size of net_if implementations.
CL: Mongoose net_if and ssl_if refactoring
PUBLISHED_FROM=29bd4dcb264a1fd96b3dd164e2d880e1c2c0921e
2018-03-30 23:19:49 +00:00
Deomid Ryabkov
c80f4c5313
Fix an edge case in multipart HTTP upload parsing
...
Consume buffer as soon as we know there is no boundary there, no need to delay until next chunk arrives.
This prevents stall where buffer fills up in one go and next chunk never arrives.
CL: Fix an edge case in multipart HTTP upload parsing
PUBLISHED_FROM=025f9001d272df2a75ece22b199b1944d5db9840
2018-03-30 19:35:20 +00:00
Deomid Ryabkov
132ecbec2f
Fix Mongoose and Frozen include paths
...
In preparation for making moving to lib.
Reduce amount of makefile copypasta a bit.
CL: none
PUBLISHED_FROM=70a016491f9605e37708385bdd698f48a8d64119
2018-03-28 14:12:23 +00:00
Deomid Ryabkov
0a90cab44a
Improve mbuf allocation behavior
...
* Limit total amount of headroom, in absolute terms (`MBUF_SIZE_MAX_HEADROOM`).
* If unable to allocate with headroom, fall back to allocating the required minimum.
* For mOS, set default `MBUF_SIZE_MULTIPLIER` to 2 to avoid floating point operations.
Since max headroom size is now capped to 128 bytes, this will not result in much of a bloat.
PUBLISHED_FROM=11d4fc65a46a805bb7c8960f89a3d0b753c58bb8
2018-03-22 07:49:57 +00:00
Serge A. Zaitsev
d16dbc197f
mongoose: fix http pipeline
...
mongoose: fix formatting
mongoose: fix formatting
mongoose: remove debugging messages
PUBLISHED_FROM=1194e018001cc5f2b598096593d7aac4ec8dc04d
2018-03-20 16:41:56 +00:00
Serge A. Zaitsev
127f27e375
mongoose: unit test for http get pipeline
...
PUBLISHED_FROM=00e8634913232eb2e50a0d739f85e81706dbc400
2018-03-17 16:35:04 +00:00
novlean
6523cc4da0
2018
...
PUBLISHED_FROM=63ce52177f5f13cb76f0fcb4689efb65a04318a2
2018-03-12 21:20:20 +00:00
novlean
2516da1c89
updated to 2018
2018-03-12 16:49:45 +00:00
Serge A. Zaitsev
0ae2b82b60
freshen: early attempts to make ota and config work
...
freshen: implement ota rollback
freshen: api for rpc
freshen: implement rpc api (without transport)
PUBLISHED_FROM=9f935f676161c81464a0dc53d5d8d085b2437ffb
2018-02-27 14:19:33 +00:00
Sergey Lyubka
dab526936f
Add missing test files to mongoose repo
...
PUBLISHED_FROM=9a81cc34aa0039a75c851bc3685055f46936252e
2018-02-23 11:19:42 +00:00
Бобби
780077d118
Fix mg_socketpair for lwip + UDP
...
CL: Fix mg_socketpair for lwip + UDP
PUBLISHED_FROM=6dd09136b3837016026523fb34acb5cc893cadbe
2018-02-18 16:49:38 +00:00
Deomid Ryabkov
ad8f1d88d4
Fix buffer size passed to inet_ntop()
...
Fixes https://github.com/cesanta/mongoose-os/issues/394
CL: Fix buffer size passed to inet_ntop()
PUBLISHED_FROM=4a6702527627ccbb780f45200274b09a28be69ee
2018-02-13 12:49:53 +00:00
Deomid Ryabkov
a3c4a48ef7
Make sure test assertions are evaluated once
...
E.g. if `ASSERT_EQ(myfunc(), 123)` fails, `myfunc()` would be invoked again to print the actual value.
This can cause confusion sometimes.
To avoid this, we cast arguments to double, which is wide enough for most cases and we provide a variant for 64 bit value types for when it's not.
We also perform a check and fail if argument to the check results in loss of precision.
CL: none
PUBLISHED_FROM=a14551289d92e8a5dead21d16471ebddebe938a8
2018-02-10 12:19:40 +00:00
Deomid Ryabkov
84a11fe3b1
Count both tests and individual checks
...
CL: none
PUBLISHED_FROM=ab7f50e1c68154832e862ebfb4a02d385ef7c6be
2018-02-08 19:20:00 +00:00
Dmitry Frank
2a3cfc9858
Bump mongoose version to 6.11
...
PUBLISHED_FROM=92604e1b7c65009a6214fea9f1b2460df721d38e
2018-02-08 16:51:43 +00:00
Dmitry Frank
b9b20c6494
Implement mg_http_parse_header2()
...
Which is a replacement of (deprecated) `mg_http_parse_header`, but,
similarly to `asprintf`, allocates a new buffer if the client-provided
one is not large enough.
Also use it throughout mongoose code, and thus some header-related
limitations are removed; in particular,
https://github.com/cesanta/mongoose/issues/813 is fixed.
CL: Mongoose Web Server: Deprecate `mg_http_parse_header()` and implement `mg_http_parse_header2()` instead, which allocates a new buffer if the client-provided one is not large enough (similarly to `asprintf`).
CL: Mongoose Web Server: Fix limitations of header value lengths, e.g. when parsing authentication headers such as nonce, etc.
PUBLISHED_FROM=c75b1bbbbdb294ea85075ce69b1368f115fdd1ef
2018-02-07 23:04:29 +00:00
Deomid Ryabkov
a8a7d2cf7e
Minor tweaks for testing
...
PUBLISHED_FROM=d52aea1648ed8ec8dd2e71168884795d995b1826
2018-02-07 20:19:31 +00:00
Deomid Ryabkov
50ecc30b4d
Commonize unit test main()
...
CL: none
PUBLISHED_FROM=ee76407d89f3fcbe3da23810117a374d06af0a25
2018-02-07 16:19:32 +00:00
Deomid Ryabkov
cd89db5c2f
Add a convenience macro invoke subroutines
...
To properly fail a test in a subroutine, return value needs to be passed up.
This snippet makes it short.
PUBLISHED_FROM=2f6328b5eb2921a4caa53d8887c02f73a5d817ea
2018-02-07 14:49:23 +00:00
Deomid Ryabkov
1ed99999bd
Add ASSERT_{TRUE,FALSE} convenience macros
...
PUBLISHED_FROM=3cd6dd7f04b650ca637788d1017b6b5146c79569
2018-02-06 16:49:32 +00:00
Dmitry Frank
4afebdcb2b
Add UDP client example
...
CL: Mongoose Web Server: Add UDP client example
Resolves https://github.com/cesanta/mongoose/issues/886
PUBLISHED_FROM=fcce2f1de3a800147e9246ffa01c428c1b8f552b
2018-02-06 13:34:33 +00:00
Dmitry Frank
c3d9d17e34
Remove "mongoose" prefix from includes
...
In certain files it was necessary to make tests work from public
mongoose repo, so this commit makes things consistent.
PUBLISHED_FROM=694454d0ff007229c65d524a2a2beaf126420f15
2018-02-05 20:20:05 +00:00
Dmitry Frank
7bf5144e62
Make tests work on public repo as well
...
PUBLISHED_FROM=78acb18d597b6f47f31da13087fa6685f21ce445
2018-02-05 14:35:37 +00:00
Dmitry Frank
3eb4eb8074
Fix mongoose docs generation
...
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
2018-02-03 01:20:48 +02:00
Deomid Ryabkov
ab000c684a
Fix includes
...
Even though it makes no prectical difference due to the way amalgamation works
CL: none
PUBLISHED_FROM=6977833f2b469e5b969385ad9ae21a28af76746f
2018-02-03 01:20:47 +02:00
Dmitry Frank
aba60dadec
Add mg_ prefix to mongoose sources
...
CL: none
PUBLISHED_FROM=d6ebe5fa88c61ae3b8569897d9b09d54610bec73
2018-02-03 01:20:47 +02:00
Dmitry Frank
f29457e967
Remove tunneling from mongoose
...
CL: Mongoose Web Server: Remove tunneling functionality which was used by nobody
PUBLISHED_FROM=38b9e8ae7b0a5a1dbba5cff4074843dc681267d3
2018-02-02 21:50:13 +00:00
Dmitry Frank
8742fac5d8
Publish mongoose src and tests
...
CL: Mongoose Web Server: Publish sources and tests
Resolves https://github.com/cesanta/mongoose/issues/745
PUBLISHED_FROM=7ecd7a3c518cfa614a6ba0838678dcb91b75a8c0
2018-02-02 15:49:55 +00:00
Dmitry Frank
0ab1c7ef76
Fail if passed a NULL handler
...
Before it resulted in an endless recursion.
Resolves https://github.com/cesanta/mongoose/issues/871
CL: Mongoose Web Server: Fail if passed a NULL handler to `mg_bind` or `mg_bind_opt`.
PUBLISHED_FROM=376e5d330a643fa530f6a27a422a1500f986c721
2018-02-02 06:35:12 +00:00
Dmitry Frank
47abc641f1
Fix nonce in digest authentication
...
CL: Mongoose Web Server: Digest authentication: Fix nonce validity check (expired nonce or nonce from the future did not cause the the check to fail)
CL: Mongoose Web Server: Digest authentication: Fix nonce request value; it worked before because nonce validity check was broken as well
CL: Mongoose Web Server: Digest authentication: Add `nonce` argument to `mg_http_create_digest_auth_header()`: clients should use the value received from the server's authentication request.
Resolves https://github.com/cesanta/mongoose/issues/809
PUBLISHED_FROM=5e59f90ed6b2a4311ed6763159da81c2aaf6af4c
2018-02-01 22:05:43 +00:00
Dmitry Frank
7519b2ef3a
Improve websocket implementation
...
CL: Mongoose Web Server: Websocket: Respond to Ping with Pong
CL: Mongoose Web Server: Websocket: Properly close a connection with Close frame (in response to a client's close and when protocol failure is detected)
CL: Mongoose Web Server: Websocket: Fix support of fragmented messages
CL: Mongoose Web Server: Websocket: Add support for control frames interjected in the middle of a fragmented message
PUBLISHED_FROM=e2b3794aaacc64633540c493194cccc62afa2077
2018-02-01 13:20:19 +00:00
Dmitry Frank
ce8657f12f
Fix corner case in preparing cgi env
...
`path_info` was dereferenced without checking for NULL, and a few lines
below, it was checked for NULL.
CL: none
PUBLISHED_FROM=9f14dc68c152b9b1119b276f047686d831bace38
2018-01-30 20:39:54 +00:00
Dmitry Frank
8e366916d5
Ensure that the name buffer is null-terminated
...
CL: none
PUBLISHED_FROM=f165b556582f712c2c1c752e01c41d22fe593397
2018-01-30 20:39:53 +00:00
Dmitry Frank
33f53ab000
Don't ignore setsockopt return value
...
PUBLISHED_FROM=f3c1fcf015f6f72eca2eb3d5dad469cd66a837a9
2018-01-30 20:39:52 +00:00
Dmitry Frank
bd15ad4301
Improve err handling in pubsub example
...
PUBLISHED_FROM=7660e252e1ac84bf2245718c548fb00288ff4e47
2018-01-30 20:39:51 +00:00
Dmitry Frank
e5b3b8ad32
Ensure not to overflow buf in udp server example
...
PUBLISHED_FROM=413f5073b0fc267d66ce04d8d40e9e9d7abac94d
2018-01-30 20:39:50 +00:00
Julien Ammous
e116c48bef
Remove redundant initialization
...
CL: none
PUBLISHED_FROM=9d68cdc298c520798468b43a19c84251bd0c21b4
2018-01-30 19:39:08 +00:00
Julien Ammous
7d7bb3b388
Don't use user_data in mqtt server
...
Integrates https://github.com/cesanta/mongoose/pull/884
Closes https://github.com/cesanta/mongoose/issues/883
CL: Mongoose Web Server: Don't use user_data in mqtt server
PUBLISHED_FROM=7785784a766e0ba7514bbba604cde14e7bad3f73
2018-01-30 19:39:05 +00:00
Dmitry Frank
0b4bf13335
Fix mg_parse_multipart in case of malformed req
...
CL: Mongoose Web Server: Fix mg_parse_multipart in case of malformed request
PUBLISHED_FROM=9b33b03e9ab2ca204ad2f8d061df169246644072
2018-01-30 19:39:03 +00:00
Dmitry Frank
228984a3fc
Fix a corner case in receiving UDP data
...
CL: none
PUBLISHED_FROM=9c13882517374644c6d799976f1048f04ae446d7
2018-01-30 14:35:15 +00:00
Dmitry Frank
f084ad8008
Fix pubsub example
...
CL: Mongoose Web Server: Fix publish-subscribe example
PUBLISHED_FROM=04fdb66c1d4eb56798a5be2634f9f9bb2f18f288
2018-01-30 14:35:14 +00:00
Dmitry Frank
255da78bed
Fix socket leak when there are too many open fds
...
CL: Mongoose Web Server: Fix socket leak when there are too many open file descriptors
Fixes https://github.com/cesanta/mongoose/issues/870
PUBLISHED_FROM=c802b6834a54eca37821d46efde192c527e0a6b7
2018-01-30 13:37:42 +00:00
Dmitry Frank
5d5badfcee
Fix memory leak in big_upload example
...
PUBLISHED_FROM=e6ccbd73b27985fbf9949adc3e07c90a75f75603
2018-01-30 12:51:15 +00:00
Dmitry Frank
4cf9f99ae9
Fix docs link
...
PUBLISHED_FROM=2b18b68e500a3d6123e80bd4db19e3b3b9900012
2018-01-30 09:50:44 +00:00
Dmitry Frank
673f25f75a
Include stdbool.h for NRF52
...
Fixes https://github.com/cesanta/mjs/issues/82
Integrates https://github.com/cesanta/mjs/pull/85
PUBLISHED_FROM=2f5f50c25ec1c92fdfb783cd95cb57f0cb20642b
2018-01-29 22:35:15 +00:00
Бобби
961fb96bb7
Fix OOB access in mg_match_prefix_n()
...
CL: Fix OOB access in mg_match_prefix_n().
Made mg_match_prefix_n() return non-negative result.
PUBLISHED_FROM=611454df6a6c55bfa7ddf05e7d268a86fa0457a8
2018-01-27 13:50:13 +00:00
Deomid Ryabkov
d6475fcd19
Fix TCP RX path regression in SSL mode
...
CL: Fix TCP RX path regression in SSL mode
PUBLISHED_FROM=2cfdb33e5f711bbc4b98e2d24ba3377de0f1d3c5
2018-01-18 11:04:45 +00:00
Dmitry Frank
ac538f755f
Close undrained and stuck http connections
...
CL: - Mongoose Web Server: close undrained and stuck http connections
PUBLISHED_FROM=a11656b195dbe2ef8473455a171a583e37cedb2c
2018-01-16 15:20:47 +00:00
Deomid Ryabkov
5b2eb4f0e1
Enable building with CS_ENABLE_STDIO=0
...
h/t @kzyapkov
PUBLISHED_FROM=d15a5a0057f69f2f755af6436e676b1b179d069d
2018-01-15 20:20:36 +00:00
Deomid Ryabkov
10c274c774
STM32 Ethernet support
...
AWS MQTT connection works
Also fixes https://github.com/mongoose-os-libs/ethernet/issues/1 (because why not).
PUBLISHED_FROM=7b0fa8894f2127335d075f2a97fcd37b932006b2
2018-01-12 13:02:29 +00:00
Deomid Ryabkov
eb3b81297d
Use stock ARM GCC and Newlib from Ubuntu distro
...
Standardize common packages in build images, to make better use of Docker image cache.
PUBLISHED_FROM=a080e83cf5dd80feaf7960147dee36413244a92c
2018-01-04 11:56:42 +00:00
Dmitry Frank
80f4133bbf
Get rid of magic numbers in parse_mqtt
...
PUBLISHED_FROM=63cc7ed8c3378bebf209d3620efb09d73675370c
2018-01-02 10:50:38 +00:00
Dmitry Frank
d10fb9451c
Move the recv limit check to mqtt
...
PUBLISHED_FROM=028d6f56ec1cc15484c995335f00d087b590faef
2017-12-29 17:35:29 +00:00
Dmitry Frank
88ae2ecadb
Drain rx_chain before closing the connection
...
PUBLISHED_FROM=08eee4052dd9bbc364875a577409cb78665dee30
2017-12-29 07:50:43 +00:00
Dmitry Frank
85d19dad47
Respect recv_mbuf_limit in lwip
...
PUBLISHED_FROM=470ff0f484bff3e4478651f0b64cc160bba8ebfc
2017-12-28 12:49:54 +00:00
Dmitry Frank
c5cc414181
Improve docs of str_util.h
...
PUBLISHED_FROM=de02f5cc6a9d854e92cf674e5382f793709da831
2017-12-17 14:50:54 +00:00
Dmitry Frank
17703fe3e8
Improve docs for logging
...
PUBLISHED_FROM=72f0892ecfba5b1c3c2a70f0ecd5715578d7ffce
2017-12-16 17:55:53 +00:00
Dmitry Frank
04aeeba2fa
Add inet_ntop and inet_pton to esp8266
...
PUBLISHED_FROM=0a321ace3753a518e299b795fb7a4eed19708bb6
2017-12-14 21:51:00 +00:00
Бобби
4e11d5cdbf
Move shadow to event API
...
PUBLISHED_FROM=cd059adee921dd10fd89100b0e2500ff8d7743eb
2017-12-14 13:32:11 +00:00
Dmitry Frank
be63c0dc89
Improve docs
...
PUBLISHED_FROM=3b75fd8247ba9028e0ef0c3e211e7c1a80013951
2017-12-04 10:06:08 +00:00
Sergey Lyubka
987bc1d580
Use 8k iobuf limit for aws
...
PUBLISHED_FROM=971951e1eeb82078b986cd6e25e52cfc1ccef286
2017-12-02 21:26:35 +00:00
Dmitry Frank
ddd35c0cba
Fail if authn file is configured but doesn't exist
...
PUBLISHED_FROM=2c176091ffb6c7c5cfe8ea4f05b6109e00b33383
2017-11-28 19:35:22 +00:00
Sergey Lyubka
c97b615785
Fix mg_parse_uri()
...
PUBLISHED_FROM=e5b829d93ecf946e5bdbbf33132be7068ffe0dd2
2017-11-28 16:45:52 +00:00
Dmitry Frank
9ab6d084df
Expose digest auth checking functions
...
PUBLISHED_FROM=1bfc6e332f56b68eb6155bb729a97a0d8d5a316c
2017-11-28 10:05:36 +00:00
Deomid Ryabkov
cf8d0a25aa
Rename base64.{c,h} to cs_base64.{c,h}
...
To avoid name clashes.
PUBLISHED_FROM=e6ae32ec48f9b599eace7a9214a1863cdc185fd9
2017-11-24 11:36:12 +00:00
Бобби
0a0852b576
Document mg_match_prefix
...
PUBLISHED_FROM=b85fe1ee1e7bae4528c1240d8531c410728d0709
2017-11-23 11:53:02 +00:00
Deomid Ryabkov
90716417c9
Compatibility with LwIP 2.0
...
2.0 redefined LWIP_VERSION in a way that is no longer compatible with use by preprocessor (boo).
also, tcp_pcb.acked is gone, but we only use it for debug, so it doesn't matter.
PUBLISHED_FROM=776f90a08bd5024fa8a61dae257af6c60ec6710d
2017-11-23 10:05:43 +00:00
Deomid Ryabkov
101afbc9b8
Use weaker but faster cipher suites
...
ECDHE is way too slow on ESP8266 w/o cryptochip, this sometimes results in WiFi STA deauths.
Disable DHE completely because it's just hopelessly slow.
PUBLISHED_FROM=d9c8e95b7d5c992f9e127726c569f187b1e0b453
2017-11-21 15:33:00 +00:00
Бобби
a197646867
Integrate cesanta/mongoose-os/pull/370
...
PUBLISHED_FROM=5bee629477514370f9b670771e786c4f4ddae934
2017-11-09 09:49:28 +00:00
Бобби
00d1d2c0e7
Make mjs & frozen vc98 & vc2017 friendly
...
PUBLISHED_FROM=7cde8b374d5e318b5cdd69fc5b4de86b2a9552f5
2017-11-08 16:04:08 +00:00
Deomid Ryabkov
6e50fe4475
Mongoose 6.10
...
PUBLISHED_FROM=c61fa89018f8cef4f798e094acff8d36c72869f2
2017-10-31 10:01:27 +00:00
Deomid Ryabkov
7942803a75
Fix MQTT SUBSCRIBE parsing
...
Make sure topic is properly NUL-terminated.
Ignore SUBSCRIBE requests with no topic expressions.
PUBLISHED_FROM=a00f39dda44fe63299e971a91a98f8ee57dd2a64
2017-10-30 15:34:22 +00:00
Deomid Ryabkov
a8b74a9021
Fix bug when network conn is closed before CGI
...
NULL out cgi_nc->user_data so it doesn't touch nc anymore.
PUBLISHED_FROM=de2f76981c377d8951fb8e18e8b3d41dbfcf38b1
2017-10-30 14:20:27 +00:00
Deomid Ryabkov
27a9a62843
Fix SimpleLink listener for SSL
...
Must set SSL parameters before invoking sl_Listen
PUBLISHED_FROM=9147e7aa945f75e73d5c7cd7987cb5749025a86b
2017-10-24 07:19:45 +00:00
Deomid Ryabkov
9b268b6c77
Fix timer handling
...
ev_timer_time may remain the same for legit reason, so to prevent looping, instead, reset it before invoking the handler.
To let user know what the initial setting was, pass it as the argument instead of current time (which is kind of pointless).
PUBLISHED_FROM=fa328009f097f9b49b5b0dd13a38ee6d6e6518de
2017-10-21 09:19:42 +00:00
Sergey Lyubka
3b3ac48edd
Fix potential leak in socks client
...
PUBLISHED_FROM=2cb4449d2f36d59db2b0dc37c46b35de6a461810
2017-10-19 13:49:43 +00:00
Sergey Lyubka
598e96a0cc
Make amalgam work on windows
...
PUBLISHED_FROM=92f43c7b0a705ff40c4aea07f2ee0627f8e0e4a1
2017-10-19 13:49:42 +00:00
Бобби
b5dd0e8093
Use verbose flags in both socks client and server
...
PUBLISHED_FROM=d17e96a97e1621e9788844bcd627c3143d37315c
2017-10-19 13:24:30 +00:00
Deomid Ryabkov
9b24fdfd1d
Reformat mongoose
...
PUBLISHED_FROM=5202fa46a6a834bde35168ba566d3dce7c48f453
2017-10-19 13:24:26 +00:00
Бобби
8313896a85
Unbind things from v7
...
PUBLISHED_FROM=d20f138ae37c99a34cc29e7bfb327d7834404d93
2017-10-18 16:05:25 +00:00
Бобби
8193302162
Initial socks5 client & server implementation
...
PUBLISHED_FROM=05d3cca6223c963e7ae89dde3628fa8fad46e6bd
2017-10-18 14:05:13 +00:00
Бобби
6e3e5560d0
Move mongoose docs to https://cesanta.com/docs/
...
PUBLISHED_FROM=ebf5568abe82952ab2751298185a10189098013f
2017-10-16 15:18:24 +00:00
Dmitry Frank
f0c6630a16
BREAKING: Sys config API change
...
Now apps should use getters and setters instead of accessing struct
fields directly, e.g. instead of `get_cfg()->update.timeout` it should
be `mgos_sys_config_get_update_timeout()` to get the current value, and
`mgos_sys_config_set_update_timeout(123)` to update the value.
For now, the config structs are public, but they will be made private
soon, so use accessors to keep your code working.
PUBLISHED_FROM=f7d582421a8d7e4d1ed50a280f2670d8b62f8d45
2017-10-11 11:15:48 +00:00
Deomid Ryabkov
1db747da29
Do not double-count recved bytes
...
Mongoose would report consumed bytes twice if mg_call is invoked recursively (e.g. proto_handler uses mg_call to invoke user's handler).
Reporting twice as much recved as was delivered effectively disables LwIP's TCP throttling and causes buffers to grow too big.
PUBLISHED_FROM=4ad5cd5db4dd54623bd6de2d50d32ddcc9e2b08a
2017-09-14 13:51:03 +00:00
Deomid Ryabkov
8065439f96
Acquire lock when manipulating rx in SSL recv path
...
PUBLISHED_FROM=a34cfa3ebc12daf75d7f24c8d3f3707dcc33d9a2
2017-09-14 11:06:24 +00:00
Deomid Ryabkov
62c896a872
Merge pull request #856 from cesanta/dev
...
Mongoose 6.9
2017-09-13 14:57:33 +03:00
Deomid Ryabkov
2db07dfc3b
Mongoose 6.9
...
PUBLISHED_FROM=9e9047060b688291655ed227d19b7937fa9a147d
2017-09-13 11:36:46 +00:00
Sergey Lyubka
34eb3f1e66
Merge pull request #855 from cesanta/dev
...
Mongoose 6.8
2017-09-13 11:48:50 +01:00
Deomid Ryabkov
9d30e892e9
Mongoose 6.8
...
PUBLISHED_FROM=082d0bf5e9b06b850382ce502c7f5b4d68a6a328
2017-09-13 09:21:30 +00:00
Dmitry Frank
0aaba7a461
Add cs_timegm
...
Which is a slightly modified version from
https://stackoverflow.com/questions/283166/easy-way-to-convert-a-struct-tm-expressed-in-utc-to-time-t-type
PUBLISHED_FROM=b73f920ca42c45473c23337782e815306bdf69f1
2017-09-12 16:20:16 +00:00
Deomid Ryabkov
3d6b568c6e
Prefer ECDHE with CBC over DHE ciphersuites
...
PUBLISHED_FROM=4ddfc25af77247fac7e7d04cc0e56d6f3800f87b
2017-09-07 11:04:38 +00:00
Deomid Ryabkov
2b2816cfe4
Store reassembled WS frame length in proto_data
...
PUBLISHED_FROM=7bbe7dd20dca8435c786dca30200a4973ae0827d
2017-09-06 19:05:00 +00:00
Deomid Ryabkov
2fa18b47db
Fix DNS name uncompression
...
PUBLISHED_FROM=07e820f539fa5feca2ad1cf81faca8404b773a65
2017-09-06 18:05:29 +00:00
Deomid Ryabkov
c8af7cdd27
Check for int overflow when parsing WS frames
...
PUBLISHED_FROM=b7325b38e881455df703b0b628c41931565ccb33
2017-09-06 17:34:37 +00:00
Deomid Ryabkov
f857f6394f
Access QoS field after validating topic length
...
PUBLISHED_FROM=6f2d9849d75ca1ec2b6dade11ccad8d0c5d4b3bd
2017-09-06 15:35:15 +00:00
Deomid Ryabkov
97d733e129
Fix MQTT broker SUBSCRIBE request parsing
...
Add checks on the number of subscribe requests per packet and overall per-session subscription limit.
PUBLISHED_FROM=faaf5c50af31a0694c9308a664f2e418dbb0eb18
2017-09-06 13:23:13 +00:00
Deomid Ryabkov
77e44c7c0e
Harden MQTT variable length parsing
...
PUBLISHED_FROM=e16ee57bc30277e5b5684e53da78e69baaf9f779
2017-09-06 11:49:43 +00:00
Наше вам с кисточкой
abf89d32d9
Make C ws client work with Go
...
PUBLISHED_FROM=263553121b992ec0f66b0275b4e10f4176281812
2017-09-01 08:35:53 +00:00
Deomid Ryabkov
177e05deb2
CC3220: AWS connection works
...
PUBLISHED_FROM=5831462c5be0b79afff32130a1f45784f32bc524
2017-08-31 21:52:31 +00:00
Deomid Ryabkov
eb5645241c
CC3220: WiFi, basic networking support
...
PUBLISHED_FROM=db89a45a536f0234d6d5cf740354c0dbeeff1f26
2017-08-31 15:32:50 +00:00
Deomid Ryabkov
202300952c
CC3220: GPIO, sys_config and mgos_init support
...
```
Using port /dev/ttyACM0
[Aug 30 19:33:02.105]
[Aug 30 19:33:02.114] cc32xx_init c_no_libs 1.0 (20170830-163205/mos8@6587ffd6+)
[Aug 30 19:33:02.123] cc32xx_init Mongoose OS 2017083016 (20170830-163205/mos8@6587ffd6+)
[Aug 30 19:33:02.130] cc32xx_init RAM: 253588 total, 240044 free
[Aug 30 19:33:04.430] cc32xx_start_nwp NWP v3.4.0.0 started, host driver v2.0.1.19
[Aug 30 19:33:04.437] mgos_vfs_dev_open slfs_container ({"prefix": "spiffs.img.0"}) -> 20005a64
[Aug 30 19:33:04.450] cc32xx_vfs_dev_slfs_ 20005a64 spiffs.img.0.0 262144 0xfffffffffffffffe
[Aug 30 19:33:04.457] mgos_vfs_mount Mount SPIFFS @ / (dev 20005a64, opts ) -> 20005a74
[Aug 30 19:33:06.102] mgos_vfs_mount /: size 233681, used: 4016, free: 229665
[Aug 30 19:33:06.108] mgos_vfs_mount Mount SLFS @ /slfs (dev 0, opts ) -> 20005ed4
[Aug 30 19:33:06.114] mgos_vfs_mount /slfs: size 0, used: 0, free: 0
[Aug 30 19:33:06.718] mgos_sys_config_init MAC: 04A316459442
[Aug 30 19:33:06.720] mgos_sys_config_init WDT: 30 seconds
[Aug 30 19:33:06.724] Hello, world!
[Aug 30 19:33:06.728] mgos_init Init done, RAM: 253588 total, 236544 free, 235864 min free
```
PUBLISHED_FROM=7e83c9ddcc642bd324a40e125d6636ece824fb18
2017-08-30 17:49:34 +00:00
Deomid Ryabkov
c7bea65ae7
CC3220 FS support
...
For now, we only support SPIFFS-in-a-box, same as CC3200.
On CC3200SF it should be possible to have SPIFFS on built-in flash, but that is left for later.
PUBLISHED_FROM=dee337c8cd8ed288c22abe9960eef81e6e90cc4a
2017-08-30 16:50:03 +00:00
Deomid Ryabkov
d5a9000d46
Harden MQTT parser some more
...
PUBLISHED_FROM=5e7fcc7bf145aa8e1045e8d627b1c0731bb4341b
2017-08-30 12:49:30 +00:00
Deomid Ryabkov
f62018451f
Fix subscription parsing in MQTT broker
...
Also, do not accept PUBLISH and SUBSCRIBE before a sucessful CONNECT.
PUBLISHED_FROM=b5096cdc2ec5da1358244c428efbbb2e20be1a05
2017-08-30 08:49:35 +00:00
Deomid Ryabkov
0a93e301c9
CC3220: Exception handling, NWP init
...
Also make CC3200 use newer ARM compiler, generates slightly smaller code.
PUBLISHED_FROM=a0be49d7ea864a95886f7110887a59f6f11802d7
2017-08-29 21:49:53 +00:00
Dmitry Frank
6fe9cae62a
Add mg_next_comma_list_entry_n()
...
And mgos_conf_check_access_n()
PUBLISHED_FROM=c7de937b4f5463ca463d604183a4ee831617bd6d
2017-08-27 12:49:28 +00:00
Deomid Ryabkov
38e984a008
CC3220 first steps
...
Achievement unlocked: CC3220 port prints a boot banner.
Then locks up.
Included in this PR is refactoring to pull out common parts to be shared with CC3200.
PUBLISHED_FROM=5fb9d9a00bb9ce7f63dde20bc1876076b76d5257
2017-08-26 17:05:00 +00:00
Our CI Bot
09e4254718
Add mqtt_over_websocket_server example
...
Fixed bug in websocket handshake:
now adding Sec-WebSocket-Protocol header in handshake response.
PUBLISHED_FROM=e4a71ff9dc4aeec63db40cb7f356dc5b25c1215a
2017-08-24 10:34:35 +00:00
Dmitry Frank
d4b55c4ceb
Separate digest auth from HTTP headers parsing
...
PUBLISHED_FROM=f97569ae2f31ab94ce4875eae4d0a198f719c388
2017-08-22 19:51:53 +00:00
Deomid Ryabkov
7d5479985d
Enable LWIP net_if locking on ESP32 (doh!)
...
https://forum.mongoose-os.com/discussion/comment/4620/#Comment_4620
PUBLISHED_FROM=679dd48e078615ef4f57d1879957b734f549ef2e
2017-08-21 14:24:51 +00:00
Deomid Ryabkov
6517af3dea
CC3220 blinky
...
Ignore all the mess, this is just the beginning...
PUBLISHED_FROM=41ab3c5af0b1d07204619dd4d8dc2e84b6a54f32
2017-08-21 07:52:09 +00:00
ruslanvaliullin
7632a5e4af
Fix ignoring DhcpNameServer
...
PUBLISHED_FROM=73d6767e4aaa7249eeb5d76f9e7160be041292ca
2017-08-17 15:51:21 +00:00
ruslanvaliullin
7f20c41dd5
Implement rmdir & sleep func instead macros
...
PUBLISHED_FROM=62c73e5fb4f70e2b5b8824ce092012508640b173
2017-08-17 14:32:36 +00:00
ruslanvaliullin
66b23b11b0
Fix Nmap reset on ESP8266
...
PUBLISHED_FROM=7b9c85e7708721f2c6d0e2fc8ad5c32c61b48854
2017-08-16 17:40:48 +00:00
Deomid Ryabkov
448b44094a
Add automated check for extern "C"
...
Fix headers that didn't have it
PUBLISHED_FROM=ce8140783d4b661f16278a4a5adc957b21965473
2017-07-27 11:19:56 +00:00
Sergey Lyubka
8bbb44f90c
Always send MG_EV_HTTP_CHUNK
...
PUBLISHED_FROM=33957356e1510b73b37768496c74a6bf12630215
2017-07-21 13:34:52 +00:00
Deomid Ryabkov
0fba87c755
Make mg_url_encode public
...
Change the API to heap-allocate the string and get rid of a bunch of fat stack buffers.
PUBLISHED_FROM=c793dc64a9a044a9769d92ea16859f5d704a2181
2017-07-21 12:06:52 +00:00
Sergey Lyubka
fea648496c
Fix https://github.com/cesanta/mongoose-os/issues/318
...
PUBLISHED_FROM=2fc7b59b2edd0f473acd22067439471778acef8e
2017-07-20 08:05:12 +00:00
Sergey Lyubka
944a6b761c
Fix https://github.com/cesanta/mongoose/pull/824
...
PUBLISHED_FROM=ed2c39b9e00a7374af7fed5af0c9acd6c330334a
2017-07-17 14:28:35 +00:00
Sergey Lyubka
f1ae183752
Fix https://github.com/cesanta/mongoose/pull/829
...
PUBLISHED_FROM=6e56c250fe62010e25b6ed489c0d608163ba629c
2017-07-17 14:28:34 +00:00
Sergey Lyubka
a0ece4e969
Fix links for MWS readme
...
PUBLISHED_FROM=c6c31d47eedcfe09b675e3f56d967da5b22809f6
2017-07-17 12:18:57 +00:00
Sergey Lyubka
0bb14abbdd
Nitpick for MQTT example
...
PUBLISHED_FROM=a0dd26c00b41363f1cc58c28f530fbdf272ed146
2017-07-14 10:52:37 +00:00
Deomid Ryabkov
4c37e49274
Disable insecure and deprectaed SSL protocols
...
Also allow disabling conmpression and forcing server cipher list.
PUBLISHED_FROM=5539deec9c2382ba34597872dd7f3a5abc0cc311
2017-07-05 17:04:31 +00:00
Deomid Ryabkov
2a2bc33a89
Add mg_strstr
...
PUBLISHED_FROM=4306e870e2cab854febb6becc198ca2247e2e002
2017-07-05 16:20:32 +00:00
Dmitry Frank
41558bbf64
Fix formatting
...
PUBLISHED_FROM=4d4d49136e13ba8035d452a4f64fcaf48f15bdb3
2017-07-04 19:35:55 +00:00
Sergey Lyubka
4d0cc95ff4
Add JS net api test
...
PUBLISHED_FROM=f2821b104f8f2fc196ce4064b7c9f35ea152368d
2017-07-04 19:04:45 +00:00
Deomid Ryabkov
cfd28a4f7a
Add mg_strchr
...
Write unit tests for some mg_str functions.
PUBLISHED_FROM=1fc7e1d5d5ef259d4023f295aec8651caa3e7e86
2017-07-03 15:05:54 +00:00
Deomid Ryabkov
5a0b6fc35a
Use SSL_CTX_{get,set}_app_data to store context
...
h/t @hendrikw01
Fixes https://github.com/cesanta/mongoose/issues/826
Closes https://github.com/cesanta/mongoose/pull/831
PUBLISHED_FROM=d5e1285bee9bcbb85d581ee62972a2fde7d9c0db
2017-07-03 11:04:40 +00:00
Dmitry Frank
3e59e1c465
Fix formatting
...
PUBLISHED_FROM=1803e726eee7bb64496d70389655083eb70257ab
2017-07-02 20:05:53 +00:00
Sergey Lyubka
ae611a6e55
Clean up v7 from mongoose
...
PUBLISHED_FROM=efa9cc3aaf0c5ae8841e029370f882b615cebf1b
2017-07-01 08:51:09 +00:00
Sergey Lyubka
a7a2e3deb1
Introduce log filter
...
PUBLISHED_FROM=b8f538f87e034452032284d45b78090338e87f72
2017-06-29 14:34:28 +00:00
Deomid Ryabkov
cae0a1cbc0
Fix mongoose amalgamation
...
PUBLISHED_FROM=16ae777c949caf87e7dce428d62fa8878a30d318
2017-06-28 19:13:47 +00:00
Sergey Lyubka
244e5f67d3
Commonize pattern matching functions
...
PUBLISHED_FROM=e69e298a51dbe0f9c47184169ecad06eef0676fc
2017-06-28 18:35:37 +00:00
Dmitry Frank
ff078882d5
Don't define fileno stub in C++
...
PUBLISHED_FROM=98fb6c78d20a98dfba07ba6671bd51a394bbc4ca
2017-06-27 15:19:50 +00:00
Sergey Lyubka
8d76733fad
Make mg_conn_addr_to_str return len
...
Also amend api_net.js to use returned length.
PUBLISHED_FROM=38e15f9587edf28049c5b9e5f126b4db159910e8
2017-06-26 21:02:02 +00:00
Deomid Ryabkov
fb3a5a7d90
Disable cert verification when ssl_ca_cert is '*'
...
PUBLISHED_FROM=578706e48a2c1fbbf5e9aaab3eba743e7d13fa61
2017-06-21 14:23:30 +00:00
Deomid Ryabkov
f374ac5f9a
Do not close already closed connection
...
PUBLISHED_FROM=9e345f2319141f20b89e28a2d29adba21ea213e1
2017-06-20 20:06:18 +00:00
Deomid Ryabkov
02707364f0
Lower conn accept message verbosity to DEBUG
...
Raised in previous commit by mistake
PUBLISHED_FROM=31a73fb610c34ed0c85d081bfa11a8067f216696
2017-06-20 19:14:33 +00:00
Deomid Ryabkov
104106b9cf
Invoke tcp_accepted() on the listening pcb
...
As required by the LWIP API
PUBLISHED_FROM=7bfc6d816aa69f8fdd7592ade48b2d52e2d4991a
2017-06-20 19:14:31 +00:00
Deomid Ryabkov
474e065a30
MAX_PATH_SIZE -> MG_MAX_PATH
...
PUBLISHED_FROM=32bda9e86a11cad3b908d211a1f7bc9d27312874
2017-06-20 18:06:36 +00:00
Deomid Ryabkov
27094896b1
mOS filesystem refactoring: introduce VFS
...
With different filesystem implementations and storage drivers, like grown-ups have :)
This is not currently used to add any new functionality, we still have
only one FS and driver on ESP8266 and ESP32; CC3200 has two: SPIFFS and SLFS.
This will be used soon to implement filesystems on additional SPI flash chips and SD cards.
PUBLISHED_FROM=293960fef82952c505e9b1925aac7724c7308362
2017-06-13 15:35:38 +00:00
Dmitry Frank
cd48bcfd7d
Don't ignore userdata in mg_bind
...
PUBLISHED_FROM=0ffcd770535efa66ff1b6f9201f2caf832bd5055
2017-06-09 19:05:40 +00:00
Sergey Lyubka
5baeba53d7
Reorg docs
...
PUBLISHED_FROM=657a53762ada0ab3fe715a15939eb510a637e37f
2017-06-09 19:05:34 +00:00
Dmitry Frank
3a3b433849
Don't ignore userdata in mg_bind
...
PUBLISHED_FROM=0ffcd770535efa66ff1b6f9201f2caf832bd5055
2017-06-09 16:18:45 +03:00
ruslanvaliullin
a2192ae483
Add mbuf_append result check
...
PUBLISHED_FROM=967a7ff3684e548ddbfe92365f7718a99e14d098
2017-06-07 18:50:24 +00:00
Deomid Ryabkov
023b55f2e5
MQTT client keep alive fixes
...
- Move keep alive management up to the Mongoose library
- Only outgoing control messgaes should reset keepalive timer
- Add unit test
https://forum.mongoose-os.com/discussion/1155/mqtt-keep-alive-compliance-issue
PUBLISHED_FROM=f86e30744ded53a6f7f96afec066b4ff3b4372c0
2017-06-04 21:50:23 +00:00
Deomid Ryabkov
e4309d472b
Annotate cs_log_printf with format attribute
...
This adds compile-time checks for format strings.
Fix issues exposed by this.
PUBLISHED_FROM=b9f820d8ad44fce9186dfdad4fe109fafa5371ce
2017-05-30 12:05:34 +00:00
Deomid Ryabkov
c5452fc2ec
Don't ignore non-merge commits when publishing
...
Merge commits are not explicitly ignored either: they're just naturally
ignored as empty commits.
PUBLISHED_FROM=12871fd4c9b1e9de4e57e13d810bffd98ddba299
2017-05-28 13:22:49 +00:00
Dmitry Frank
f78ee9d42e
Don't ignore non-merge commits when publishing
...
Merge commits are not explicitly ignored either: they're just naturally
ignored as empty commits.
PUBLISHED_FROM=2c814104eedd76ee90813488277ecaaf2baf6315
2017-05-28 13:22:48 +00:00
Deomid Ryabkov
c8416cc17d
NULL out name server field properly
...
Fixes https://github.com/cesanta/mongoose-os/issues/260
PUBLISHED_FROM=e95076915d52edb2298e3ea386281c277e42c89a
2017-05-26 14:44:11 +00:00
Deomid Ryabkov
cf0a969a65
ESP8266 and ESP32 build image updates
...
ESP32: 2.0-r6
ESP8266: 2.0.0-1.5.0-r5
This brings updated mbedTLS with support for on-disk CA chains:
https://github.com/cesanta/mbedtls/compare/esp32_2.0-r5...esp32_2.0-r6
ESP8266 gets bigger rollup (ESP32 got those changes earlier, seems ok):
https://github.com/cesanta/mbedtls/compare/esp8266...esp8266_2.0.0-1.5.0-r5
Saves ~1.5K RAM for now, but will allow adding more roots to ca.pem without wasting RAM.
Refactored docker build for ESP8266 in the same way as was done earlier for ESP32.
PUBLISHED_FROM=db8eb0f91875d02266a8baaf1141c0d65eb59674
2017-05-25 17:20:18 +00:00
Deomid Ryabkov
06670d3401
Fix double-removal of send_mbuf data with SSL on
...
Other minor fixes.
Also decrease idle poll interval to 100 ms, as a workaround for some cases of incorrect next poll delay computation.
Added HW tests for SSL fetches.
Fixes cesanta/mongoose-os#262
PUBLISHED_FROM=4d19f845768b4b3b990d25959d4211972368d7fc
2017-05-19 16:20:00 +00:00
Deomid Ryabkov
acfc66cd60
Correctly report bytes sent via SSL
...
This prevented hexdump from showing data sent over SSL when using LWIP net_if
PUBLISHED_FROM=aa520a27bdd21294484c52bf33c8580f3b4bad65
2017-05-11 10:07:09 +00:00
Deomid Ryabkov
6f140202ad
Fix LWIP net_if when RTOS is used; use for ESP32
...
All calls to core LWIP APIs should go through the tcpip thread.
PUBLISHED_FROM=ebe8c7f043394a75a46810f2b6626582c63b9e68
2017-05-09 16:27:53 +00:00
Sergey Lyubka
cfe77a3d58
Move struct http_message::body
...
Rationale: this is the optimisation to make JS FFI-ed API
work nicer. We don't have strucuture introspection now,
and do not generate offsets automatially. Thus, using a
stable well-known location of the parsed message body is
better, in case of number of HTTP headers macro changes.
PUBLISHED_FROM=55bf25ac77060a9c81dfecd6601f037562530801
2017-05-06 11:26:53 +00:00
Sergey Lyubka
a0527a7f0e
Fix esp8266 rtos example build
...
PUBLISHED_FROM=80055394237617605c57a07ac29c43d5197cbf5c
2017-05-05 10:25:41 +00:00
Sergey Lyubka
c90cffa688
Fix docker invocation
...
PUBLISHED_FROM=064b5e508017b0115239fc880f21ca08b9422a25
2017-05-05 09:55:12 +00:00
Deomid Ryabkov
d7a633bfa3
Fix timers when polling loop gets delayed
...
Past due timers should be brought forward to restore interval.
PUBLISHED_FROM=dbe1b8b98804cf8de81e1dbe814222422363278f
2017-05-03 12:51:15 +00:00
Deomid Ryabkov
0ea3cdd228
Implement sending stdout and stderr to MQTT topics
...
Configured via `debug.std{out,err}_topic`
PUBLISHED_FROM=66c581c38c5039aa9ecc406f8aac0b7e3c6541fc
2017-05-02 21:23:58 +00:00
Deomid Ryabkov
ddef065493
Enable SNTP on CC3200
...
PUBLISHED_FROM=cea0fc4db21f5b68fd3e779334989fef84a1637a
2017-05-02 21:05:40 +00:00
Ruslan Valiullin
ac857d18db
Add mg multithreaded example
...
PUBLISHED_FROM=8a3424ba6260b0351d7c06270dc141d804ae7f77
2017-05-02 15:55:53 +00:00
Deomid Ryabkov
663e928d65
Fix mg_strdup_nul
...
PUBLISHED_FROM=25bc4d20016bcb71c4e2e4b7be8d2d0566fdfa2e
2017-04-27 14:39:46 +00:00
Deomid Ryabkov
189cd8c5f6
Add mg_assemble_uri
...
PUBLISHED_FROM=533e134a48e0fca55509c3eb16b0a6b64c1188e8
2017-04-27 13:50:33 +00:00
Deomid Ryabkov
692f436b3d
Make mg_connect_ws accept http:// URLs
...
As well as URLs without prefix
PUBLISHED_FROM=ee298f6575603c8b384888633fe16413695ba70d
2017-04-27 10:51:31 +00:00
Deomid Ryabkov
2e65ce8272
Fix mg_parse_uri for URIs with fragment but no qs
...
PUBLISHED_FROM=8fb53581e8979c28026f9c2bcacb89de740c18cf
2017-04-26 14:50:38 +00:00
Deomid Ryabkov
a35e5bd966
A function to make a NUL-terminated copy of mg_str
...
PUBLISHED_FROM=c1310b7d62f3ad6e2f24fea9f5229588c56b0bbe
2017-04-25 10:47:30 +00:00
Deomid Ryabkov
83fe5a17f3
Make mg_connect_{http,ws} use mg_parse_uri
...
Remove the specialized URI parser, clean up code a bit.
Fix parsing of URIs with IPv6 hosts (http://[2001:2:3::4]:567/ )
PUBLISHED_FROM=968ad97585d928123106ce3828920ee073113f83
2017-04-24 14:59:52 +00:00
Deomid Ryabkov
49bbfaf130
Fix mg_lwip_if_get_conn_addr when there's no pcb
...
Connection may not (yet) have a TCP or UDP PCB associated with it.
mg_lwip_if_get_conn_addr should not crash in this case.
PUBLISHED_FROM=fd0ed683b18b3f549135c9d79eeadfc7348ab05a
2017-04-21 19:33:17 +00:00
Sergey Lyubka
cd9c7dcbec
Correct negative AAAA answer with NSEC RR
...
PUBLISHED_FROM=c7e3132d55e603f159019e3f0290e01b189e75e0
2017-04-19 12:57:45 +00:00
Deomid Ryabkov
f868fc861b
Enable hosts and resolv.conf lookups on UNIX only
...
Not relevant for other platforms
PUBLISHED_FROM=65b8959ee677555e2fb330c84d443e0a93d9fd1c
2017-04-18 22:39:24 +00:00
Deomid Ryabkov
84907d5bc4
Ignore tcp sent cb when there's no asscociated nc
...
TCP ACK may arrive after the we've corresponding mg_connection has already been closed.
Fixes cesanta/mongoose-os#235
PUBLISHED_FROM=8164b86131ef08c1b2a6a08630920d600b3f91ac
2017-04-18 14:38:08 +00:00
Deomid Ryabkov
1cee8a16b9
Fix mg_socket_if_get_conn_addr for UDP sockets
...
Remote address is not associated with an outgoing UDP socket.
Instead, it is stored in mg_connection.sa
PUBLISHED_FROM=16f82ee8a69b995d684ec96b8db6b5591cd400db
2017-04-18 12:41:54 +00:00
Deomid Ryabkov
57e32b87c7
Fix MQTT will_message length calculation
...
PUBLISHED_FROM=d2400f6ef4837411586fb27db0b1fa03d94283c6
2017-04-17 07:24:54 +00:00
Ruslan Valiullin
6926655513
add to cgi doc note about zombies
...
PUBLISHED_FROM=fb1796f11a595befd160bd5ab1088b6e39f16757
2017-04-15 06:44:43 +00:00
Ruslan Valiullin
8354319e72
websocket_chat added MG_EV_HTTP_REQUEST
...
PUBLISHED_FROM=6f5e1b4a97ada21025f892d3348808bffb469dfa
2017-04-14 12:57:30 +00:00
Deomid Ryabkov
f9596cc1db
Perform endpoint auth check on multipart requests
...
https://github.com/cesanta/mongoose-os/issues/229#issuecomment-293613426
PUBLISHED_FROM=1c34db7ab2598eca1db0266cc6cdd31c32a16fff
2017-04-12 16:59:49 +00:00
Deomid Ryabkov
b2e2ad9a45
Fix hexdump on ESP8266, deliver MG_EV_SEND [...]
...
[...] after handing data off to LWIP, do not wait for ACK.
We don't do it in net_if_socket, don't do it here either.
Also prevents multiple send attempt on the same send_mbuf data.
PUBLISHED_FROM=4e5a677ebda84af1514f34299e53ce856a537883
2017-04-12 15:54:29 +00:00
Deomid Ryabkov
a07fb2be51
Log DNS failures in mOS
...
To aid disagnosing cases like https://forum.cesanta.com/index.php?p=/discussion/397/retries-connecting-to-aws-broker
PUBLISHED_FROM=98680b594dbed42234fc53050c9df292feb32f35
2017-04-11 15:51:27 +00:00
Deomid Ryabkov
7f259f2a79
Add optional digest auth to mOS HTTP server
...
If http.auth_{domain,file} are configured, all HTTP requests require valid digest authorization header.
This applies to files served by mg_http_serve as well as synamic endpoints such as /update and /rpc.
mongoose-os#229
PUBLISHED_FROM=824d594147cfeb2428b463d24478b207839aa5e2
2017-04-11 10:39:45 +00:00
Deomid Ryabkov
7c0493071f
Fix a typo
...
PUBLISHED_FROM=183a1bb571d0e2f5c23181107d30417f73c1eeb1
2017-04-11 11:22:42 +01:00
Alexander Alashkin
c60fe0c6f6
Fix crash in multipart handling
...
Close cesanta/dev#6974
PUBLISHED_FROM=4d4e4a46eceba10aec8dacb7f8f58bd078c92307
2017-04-11 11:22:18 +01:00
Sergey Lyubka
8ce34af9f3
Clean send_mbuf in mg_if_sent_cb, fix hexdump
...
PUBLISHED_FROM=3d222e548a3323b957376666e6702b408843b5a3
2017-04-11 00:06:03 +00:00
Sergey Lyubka
82761bb875
Bobify format targets
...
PUBLISHED_FROM=2c1d372e4db856e23266c29195c07968abc2ec81
2017-04-10 22:50:30 +00:00
Deomid Ryabkov
08a10a8af5
Handle multiple MQTT messages per RECV event
...
PUBLISHED_FROM=fc98c51254dd94d3f443fb66e49449da7d9e754c
2017-04-10 15:51:13 +00:00
Dmitry Frank
bd130136bc
Commonize arg checking in cfunctions
...
Add `mjs_check_arg()` which checks whether argument is provided, and
checks its type. It simplifies code and makes it smaller (because
error strings are not ad-hoc, so they are not duplicated)
As part of that, also commonize type stringifying: implement
`mjs_stringify_type` and reimplement `mjs_typeof` on top of that.
Use `mjs_check_arg()` in `mjs_string_slice()` and
`mjs_string_char_code_at()`.
PUBLISHED_FROM=0b72cf479738ff405d991cbd4bf9e75edda0f111
2017-04-10 10:09:07 +00:00
Ruslan Valiullin
fb04203b72
Fix eintr, zombie
...
PUBLISHED_FROM=f6d7d0f9c6de8ffeeb3bcd8aace6c1434281ddf7
2017-04-09 16:07:59 +00:00
Deomid Ryabkov
4172c190e5
Fix MQTT handshake; change to version 3.1.1
...
Differences between 3.1 and 3.1.1:
https://github.com/mqtt/mqtt.github.io/wiki/Differences-between-3.1.0-and-3.1.1
None of them are breaking.
PUBLISHED_FROM=cf2abd28deb1dabf787e07bcfdb335ff72462865
2017-04-08 07:21:01 +00:00
Deomid Ryabkov
920abd627b
Minor SNTP fixes
...
PUBLISHED_FROM=03d04996f160f777339eec9528f2f187e1051ff9
2017-04-07 11:10:37 +00:00
Deomid Ryabkov
02b7399f9a
Fix a typo
...
PUBLISHED_FROM=183a1bb571d0e2f5c23181107d30417f73c1eeb1
2017-04-03 14:20:16 +00:00
Alexander Alashkin
b8402ed073
Fix crash in multipart handling
...
Close cesanta/dev#6974
PUBLISHED_FROM=4d4e4a46eceba10aec8dacb7f8f58bd078c92307
2017-04-03 09:25:12 +00:00
Deomid Ryabkov
06c5c4d2a4
Handle NULL tpcb in mg_lwip_tcp_write
...
This can happen if the underlying LWIP TCP PCB has been destroyed (we got tcp_error_cb).
PUBLISHED_FROM=7a060aa4ca2a0c5a818fe9bc6b08cd0733c0ef8f
2017-03-30 15:32:33 +00:00
Alexander Alashkin
57a4ec31d1
Fix MinGW compilation
...
PUBLISHED_FROM=66b2dee87dc50de5f2891dee789beec89c3f6fb4
2017-03-30 12:18:56 +00:00
Alexander Alashkin
511c9a6d4a
Add simple mongoose/esp32 example (w/out mOS)
...
PUBLISHED_FROM=0e407a2fb328107540d753123fe027f43860d0ef
2017-03-29 13:53:25 +00:00
Ilia Penev
8ec47111d5
Fix COAP compilation
...
PUBLISHED_FROM=0a0ef6f68d743cbba91d9ba911f1c5be69e6aac7
2017-03-29 12:47:33 +00:00
Alexander Alashkin
8b67274cc0
Fix mg_get_http_var retval
...
PUBLISHED_FROM=257deff5ea20302627e77a0f29cf2359276a41d4
2017-03-24 13:24:37 +00:00
Dmitry Frank
af22fb7a06
Include mg_mem.h into str_util
...
PUBLISHED_FROM=990564aa54946b2a5b52d3a9c31f80b8e93c6b44
2017-03-23 22:07:22 +00:00
David Hargat
df5fff5e72
Consistent MG_MALLOC, MG_REALLOC and MG_FREE calls
...
PUBLISHED_FROM=e7f306b5d1a1366d3ec71fa238c5e18c03aadf8d
2017-03-23 18:54:06 +00:00
benrubson
d9243d1c0b
Fix MD5 disabling
...
PUBLISHED_FROM=bb03593fb2abfb79daa3118b786428ee3e693e3d
2017-03-21 10:50:32 +00:00
Alexander Alashkin
2fb145d39d
Fix DISABLE_MD5 and DISABLE_SHA1 naming
...
PUBLISHED_FROM=2babde0d0c6add14aa500f4bf1c833715d979c6c
2017-03-21 10:24:11 +00:00
Yiming Sun
14094aaef7
Fix typo
...
PUBLISHED_FROM=56fdeaf4965ef26c398267c8656735bb52e45085
2017-03-21 08:50:43 +00:00
Alexander Alashkin
ec752645ee
Remove ajax_upload
...
PUBLISHED_FROM=599ccd99e7bf422cac5e8b1f5ccebe3cac2780e8
2017-03-21 07:35:52 +00:00
Sergey Lyubka
ceb2f1da41
Update upload example
...
PUBLISHED_FROM=a28c1da3f0dd597792439246313ca39984ab7536
2017-03-20 17:23:38 +00:00
Alexander Alashkin
aab857a66e
Add ajax_upload to big_upload
...
PUBLISHED_FROM=7c919ba3a2afa74cec9947e78299b4bb7a64b4bc
2017-03-20 16:55:31 +00:00
Alexander Alashkin
066be0fe30
Add ajax_upload example
...
PUBLISHED_FROM=c5691d4321fff2e03f689b0195abd1ec6a188418
2017-03-20 10:51:24 +00:00
Alexander Alashkin
380e87ddfa
Honor DNS server from DHCP
...
PUBLISHED_FROM=10772301ef115c31ada3521ff4235c33a421b782
2017-03-20 09:53:12 +00:00
Alexander Alashkin
e9a7a2af18
Fix WinCE compilation
...
PUBLISHED_FROM=51d68829414739b04fafc9198d86b817c38d71d2
2017-03-17 15:19:29 +00:00
Deomid Ryabkov
a83e7d8c42
Properly shut down the SSL connection
...
By sending close_notify
PUBLISHED_FROM=028a001cb9470a16cc7a6544805bfb042a435779
2017-03-15 23:12:57 +00:00
Dmitry Frank
bf7dd7ac63
Add separate userdata for each http endpoint hdlr
...
PUBLISHED_FROM=29a204c2c7f35724b6f1e8435edb94869da2362c
2017-03-15 17:43:19 +00:00
Dmitry Frank
0fc3370859
First step towards separate userdata argument
...
PUBLISHED_FROM=93fe1cc2c5e2513509511a81e5919cbd37056b10
2017-03-15 00:52:59 +00:00
Deomid Ryabkov
c416012f97
MGOS SNTP support for ESP8266 and ESP32
...
PUBLISHED_FROM=8e07541e7a3b951dcfd08381b46f6143773eae45
2017-03-13 17:53:35 +00:00
Deomid Ryabkov
d3a8862bd8
Make interface vtables const
...
Frees up a bit of ram on ESP
PUBLISHED_FROM=0ea046cc63704481bca138b3096937669b94733d
2017-03-11 00:11:56 +00:00
Deomid Ryabkov
08353731ef
Fix MQTT PUB{ACK,REC,REL,COMP} and UNSUBACK flags
...
Flags should be 0 for all of these, except PUBREL (flags = 2).
PUBLISHED_FROM=46bf63fe12020d4cb493e52ceb3bae0291484b40
2017-03-08 00:23:14 +00:00
Deomid Ryabkov
16700244b0
Fix parsing of MQTT QoS > 0 PUBLISH messages
...
Message ID comes after topic, not before.
PUBLISHED_FROM=1ec2a56e290b67061b18c745671dc7f089b9cc0d
2017-03-07 23:52:42 +00:00
Deomid Ryabkov
49ca223e9c
Minor memory optimization
...
Release pbuf sooner: after copying data from, before invoking user code
PUBLISHED_FROM=b877c96ef602bbca26762b18b9dde17eb880d1f9
2017-03-07 17:19:47 +00:00
Sergey Lyubka
38efe632ae
Squash warning
...
PUBLISHED_FROM=72d80f8ed2c10866b44d56d8133c76b22bc105b0
2017-03-06 21:51:43 +00:00
Deomid Ryabkov
39a3bb7e44
Log method and URI in mg_http_handler
...
PUBLISHED_FROM=34c3e49d523b0f5c7056f91e4b422f21f5694df9
2017-03-02 09:36:08 +00:00
Alexander Alashkin
920e8d9145
Add shims for mongoose file operations
...
PUBLISHED_FROM=b5b12cdf4273f21dbcdac9bfb6a06063152914c9
2017-03-01 10:06:47 +00:00
Alexander Alashkin
aed6d05d8c
Do not test reassembled buffer for WS_OP_CLOSE
...
PUBLISHED_FROM=0e8de208b553b63c8367f66893389587bd17359f
2017-03-01 10:06:46 +00:00
Alexander Alashkin
d85d95a40b
Fix potential out-of-bound
...
PUBLISHED_FROM=71b40189bcedbe9338915c1aad939835125dad26
2017-03-01 10:06:45 +00:00
Alexander Alashkin
b5dd54a404
Fix doc typos
...
PUBLISHED_FROM=1bdacf793b35ebe70d0a3a9d64260dd2bd135c73
2017-03-01 06:19:58 +00:00
Yiming Sun
f7c0a2ee15
Fix server_example.md
...
PUBLISHED_FROM=dfbfeaae983daa0412964ac0402759f632bf7aeb
2017-02-28 11:05:31 +00:00
Yiming Sun
874b5bfdbf
Fix comment in mongoose.h
...
PUBLISHED_FROM=35e8f18aa611b45c271d0178d9197291bfa9726d
2017-02-28 10:50:21 +00:00
Yiming Sun
71d09722be
Fix http_client doc
...
PUBLISHED_FROM=f415ddbac47e3069d3ab29467a23f6b8dab0066f
2017-02-27 20:20:33 +00:00
Dmitry Frank
349d25dccf
Fix # matching logic
...
E.g. given the expression `foo/#`:
- `foo/bar` matches
- `foo/` should not match
- `foo` should not match
PUBLISHED_FROM=40f3290cb9a478b22d9f1ab6382884b5de70e266
2017-02-24 15:35:20 +00:00
Dmitry Frank
3942914945
Fix subscription to wildcard topics
...
`mg_mqtt_match_topic_expression()` and friends are public now.
So far, only `#` is supported.
PUBLISHED_FROM=20c031bcf34be84771c4a9c456318634eb9a517c
2017-02-24 14:21:33 +00:00
Dmitry Frank
60c16bbb5d
Fix mos docker image name
...
PUBLISHED_FROM=91016ab1629a65976d2cc2f00aec4e1667cb4a8f
2017-02-23 21:35:24 +00:00
Sergey Lyubka
70b5f4130e
Add http post example
...
PUBLISHED_FROM=94f830a5fa4b806fb2cf60c93a9e8744022ff8d7
2017-02-23 17:50:14 +00:00
Sergey Lyubka
17cfecc5c3
Mongoose examples fixes
...
PUBLISHED_FROM=b47a5b6987ee8d9e7c9bae2bd4d2943d2e7f76a9
2017-02-20 10:05:57 +00:00
Deomid Ryabkov
ebdd18769b
Add core dump and exception handling to RTOS port
...
PUBLISHED_FROM=dba64da598b45469c7fd458865c75d3eb6853c2d
2017-02-19 10:05:31 +00:00
Deomid Ryabkov
f974fddd2a
Fix ESP8266_RTOS example; add mos flashing
...
PUBLISHED_FROM=d87814d40f0acdc7a96fbd132c2157ccb499c7c6
2017-02-17 14:51:49 +00:00
Dmitry Frank
b1a46da309
Implement Array.prototype.length
...
We don't have a real Array.prototype of course, just `[1,2,3].length`
behaves like we do.
PUBLISHED_FROM=456379377652cb60fc6f9521d8d358480237c58a
2017-02-17 14:51:48 +00:00
Deomid Ryabkov
81879be4be
RTOS stability improvements
...
PUBLISHED_FROM=2992473e6c05c1dc95878cc549eccba7abcedccf
2017-02-16 16:05:22 +00:00
Deomid Ryabkov
0a094d4c1f
Decouple mg_lwip_accept_cb from mg_if_accept_tcp_cb
...
Must be invoked on mongoose main task, not on LWIP
Also request immediate poll oif there is data to be sent and space to
send it.
PUBLISHED_FROM=53576651452d8d7193da9e63f5b97f6f8729c45b
2017-02-16 12:19:23 +00:00
Deomid Ryabkov
66a96410d4
ESP8266: Add RTOS SDK port (MGOS_ESP8266_RTOS=1)
...
PUBLISHED_FROM=ca5332e63700274ed9aeea9d9d1802e89fa788fa
2017-02-16 11:05:34 +00:00
Deomid Ryabkov
d4b23f08b6
Implement client support for TLS-PSK
...
For both OpenSSL and mbedTLS
PUBLISHED_FROM=0bfd5f128b4c4c062cb6f0ca0da9b30790aa8bf8
2017-02-15 08:20:53 +00:00
Deomid Ryabkov
d6d956b9d8
Do not prefix successfulresponse with "Error: "
...
It's confusing
PUBLISHED_FROM=9158ccd920dabf92963e76aa96a988753b9c427d
2017-02-13 15:05:11 +00:00
Deomid Ryabkov
383b2a48c5
Update logo in connected_device examples
...
PUBLISHED_FROM=6319df7f49dc921ddb672ba9789dfbbff8c25d9f
2017-02-13 14:05:04 +00:00
Sergey Lyubka
ab1c464950
Fix https://github.com/cesanta/mongoose/issues/765
...
PUBLISHED_FROM=f7f8ce9421d96a5f0d90afe4c930c53662b4e907
2017-02-11 04:50:44 +00:00
Deomid Ryabkov
f20b5191f2
Check UDP pbuf for being NULL
...
cesanta/mongoose-os#186
PUBLISHED_FROM=30460b56211eb0dff4d05bff45f256ac1da2caf4
2017-02-10 02:35:08 +00:00
Deomid Ryabkov
fc113d64f5
Add mg_hexdumpf: mg_hexdump that outputs to a file
...
PUBLISHED_FROM=f0fe58c9f01ef0c7b491ed0e5f51b983e4119507
2017-02-09 10:33:33 +00:00
Deomid Ryabkov
6f6b12bee7
Lower verbosity of a debug message
...
PUBLISHED_FROM=6ff979319c31363df16cedf99b2432bd83db1473
2017-02-09 10:21:15 +00:00
Deomid Ryabkov
4e6c2867da
UDP fixes: move recv callback into event loop, ...
...
...and fix a leak where UDP connections with SEND_AND_CLOSE set would not be closed
PUBLISHED_FROM=d60f1fc037e8e57671c7d3146fabc1f068bbb514
2017-02-09 10:21:12 +00:00
Alexander Alashkin
54989e819a
Fix multipart parsing
...
Close cesanta/mongoose#770
PUBLISHED_FROM=ae55988f1c6ccdff172b8db405adb36c91289d95
2017-02-08 10:54:46 +00:00
Dmitry Frank
bf505bb68d
Update readme of nrf examples
...
And also fix `flash` target for nrf51
PUBLISHED_FROM=decc6242380eb7070bfbcb26c57780e756588cc3
2017-02-08 08:25:32 +00:00
Deomid Ryabkov
4072062b72
Add MG_SSL_IF_MBEDTLS_MAX_FRAG_LEN
...
And set to 1024 for mOS.
PUBLISHED_FROM=ee3a66ad935cfb50355ebd7bae59c8230914878d
2017-02-08 08:25:31 +00:00
Alexander Alashkin
d6ba37dc3c
Correct msg len for chunked encoding
...
Close cesanta/dev#6485
PUBLISHED_FROM=172ab4f18f1fb3e6110ad03eea18a7f87f2e531a
2017-02-07 12:25:06 +00:00
Alexander Alashkin
a58d21aa28
Add overrun protection to mg_sock_to_str
...
Relate to cesanta/mongoose#780
PUBLISHED_FROM=145d94c52be03ac2d909eae8166774ffd40f0df1
2017-02-07 12:25:05 +00:00
Alexander Alashkin
6e8d4129b2
Use _exit in CGI. Close cesanta/mongoose#779
...
PUBLISHED_FROM=bfe62d3824ee3a6e66b7d1a57ee7bad3b726649d
2017-02-07 11:09:49 +00:00
Alexander Alashkin
2485a8f8d9
Fix signs comparison. Close cesanta/mongoose#774
...
PUBLISHED_FROM=a875606de6f4b2c202b25ce20efcb1ca33eb75b8
2017-02-07 08:25:31 +00:00
Sergey Lyubka
1ae908f6d5
Add mqtt codec
...
PUBLISHED_FROM=f780559966a6a955603e05aeaa5dde8455bff991
2017-02-06 17:39:02 +00:00
Alexander Alashkin
6b923bdff1
Add stm32/cube to hwtests
...
PUBLISHED_FROM=478792d0479ba2154f0a65eea066f6ae6f235f84
2017-02-06 17:25:16 +00:00
Alexander Alashkin
d39969d1e6
Restore links to mongoose/examples
...
PUBLISHED_FROM=67dc5d1ed30dc2500032be73dcdb214bd62c59d0
2017-02-06 14:09:01 +00:00
Alexander Alashkin
eaef5bd133
Revert "Stop publish examples to mongoose repo"
...
This reverts commit 1a17e17c462bdd4e1d26d8742f8b7087273e04c2.
PUBLISHED_FROM=80028de308c9a021955d1425d2bfee8feb85f193
2017-02-06 14:08:59 +00:00
Sergey Lyubka
7cc7df8c0e
Merge pull request #778 from cesanta/remove_examples
...
Remove examples
2017-02-03 10:23:29 +00:00
Alexander Alashkin
551f393da7
Remove examples
2017-02-03 12:17:07 +02:00
Sergey Lyubka
e81f8373a2
Update mongoose docs
...
PUBLISHED_FROM=cfd0018a5824c5ccac532558be86c17cda64ce50
2017-02-02 14:24:49 +00:00
Sergey Lyubka
dfa83f2c85
Fix TCP close sequence
...
PUBLISHED_FROM=ed6cf7fd63b6f80d5c37ab93899ecd09bac6102b
2017-02-01 20:26:46 +00:00
Alexander Alashkin
91bdbc5193
Fix warn in mg_lwip_if_poll
...
PUBLISHED_FROM=0bcb3e892e1ba2329aef5d17375fe4d3879dc666
2017-01-31 13:39:29 +00:00
Alexander Alashkin
707b9ed2d6
Remove mg_enable_multithreading. Close cesanta/dev#6511
...
PUBLISHED_FROM=7864ffa26cb553f5d4a93248f67c288327ec23b0
2017-01-30 13:55:49 +00:00
Alexander Alashkin
cd6b846e22
Fix mongoose/mbed compilation
...
PUBLISHED_FROM=c754e6961fc197d3057740169f55025b305b6936
2017-01-30 13:10:47 +00:00
Alexander Alashkin
807e4ea6ec
Fix STM32F4_CC3100 Mongoose example compilation
...
PUBLISHED_FROM=7a67a67d2f0007e241e4ccb57bc24a43ba20bfde
2017-01-30 12:09:43 +00:00
Alexander Alashkin
507e8bfac9
Drop Arduino support
...
PUBLISHED_FROM=85768c0d2536d9c31885a5127710b9756e3229a3
2017-01-30 09:39:15 +00:00
Deomid Ryabkov
2ea63a0ea6
Limit len of prefix; makes log tidy w/ long names
...
PUBLISHED_FROM=570530179da327f8bb156bbbd7c557014c1630c1
2017-01-30 09:24:48 +00:00
Deomid Ryabkov
7988acbff4
Raise log level of mbedTLS socket evs to LL_DEBUG
...
PUBLISHED_FROM=ed0ac4133342c733977e7884a6bbadab7ee74127
2017-01-26 12:38:30 +00:00
Alexander Alashkin
b8c3740446
Map STM32 pins to MOS pins
...
PUBLISHED_FROM=6724de19c28f972a785b0d5e7dd4b41889e04850
2017-01-25 09:08:43 +00:00
Deomid Ryabkov
7bdbd80552
Fix ESP32 encr. OTA; clean up {open,read,close}dir
...
Fixed a bunch of things to make OTA work on ESP32 with flash encryption:
writes to app aprtitions must be 32-byte aligned and mod 32 in size.
When merging filesystems during update, use spiffs_vfs_* functions so
that old fs is properly decrypted.
Refactored cs_dirent stuff: SPIFFS support moved to spiffs_vfs.c,
added dirent.h on ESP8266 and CC3200 which includes cs_dirent.h
Define DIR and dirent only if asked (ESP8266, CC3200, WIN32).
PUBLISHED_FROM=58b0d05cdc41b1a9e02d341e2a1cdcb012829232
2017-01-24 12:53:35 +00:00
Alexander Alashkin
577ad2599c
Enable additional services for stm32/cube
...
PUBLISHED_FROM=b22a136bc630b7cf4a62fd9d91b85e0e939a7f82
2017-01-18 15:10:28 +00:00
Alexander Alashkin
4d9f8168b8
Change Mongoose version to 6.7
...
PUBLISHED_FROM=e18f33e14f4c0e1cb004aa264dd64ca5a0056190
2017-01-17 09:08:53 +00:00
Deomid Ryabkov
f1d0b451b1
ESP32: Update esp-idf
...
cesanta/esp-idf is rebased onto espressif/esp-idf#aece3d6fc62fd91d3c5a87e0ab2ddb5ac51d8ff0
A few wifi changes and VFS support for directory-related functions.
PUBLISHED_FROM=7823db802945122aa1b5453da8abd8e380cbf2fa
2017-01-13 00:44:47 +00:00
Dmitry Frank
ac921d4657
Improve includes in the amalgamation script
...
Now it also tries to find the included file relatively to the "parent"
file. This is required for amalgamation of the frozen into mjs, since
`frozen.c` includes `frozen.h` instead of `frozen/frozen.h`.
PUBLISHED_FROM=8f670a1509a30cfdfb22e454b7851f4cf28fb98d
2017-01-13 00:24:43 +00:00
Alexander Alashkin
f046434f3b
c_hello/stm32-cube, part 2
...
PUBLISHED_FROM=1f767c1383c1dcd366e667681aebd41c30a102f3
2017-01-11 23:07:59 +00:00
Alexander Alashkin
58b9ee41fa
Use LWIP in stm32/cube
...
PUBLISHED_FROM=da389ddabf96918fd1bc022e0696dbb4542c71c1
2017-01-11 12:37:44 +00:00
Alexander Alashkin
d28d7a67f2
c_hello/stm32-cube, part 2
...
PUBLISHED_FROM=fe7230811b7f12286c5ac6de1ef8fb068cd61145
2017-01-10 18:38:24 +00:00
Deomid Ryabkov
20370e65d6
Fix parsing of SSL cipher suite specs for mbedtls
...
The list of cipher suites must be retained while the context is alive.
PUBLISHED_FROM=a3a82e42c1214c54ae1a40fbc49bc26bca32c053
2017-01-10 13:38:08 +00:00
Deomid Ryabkov
67626d49c9
Add ssl_cipher_suites to mg_{bind,connect}_opts
...
Optional specification of SSL/TLS cipher suites.
PUBLISHED_FROM=e8968c6c7a92f10514d3ee575c2fb9be862e6cf8
2017-01-09 23:53:00 +00:00
Deomid Ryabkov
cd9e179fcb
Format for previous commit
...
PUBLISHED_FROM=609ef3587e4293b0cdbf865cfc466bbb85233361
2017-01-09 17:04:03 +00:00
Deomid Ryabkov
0ba28e6153
Raise verbosity of some log messages
...
These are not spammy and help debug issues with serving files
PUBLISHED_FROM=84b0ee174314373d472678a14ca87f575fda6e14
2017-01-09 17:04:02 +00:00
Alexander Alashkin
de791765b2
c_hello for STM32/cube, part 1
...
PUBLISHED_FROM=13fe18cb6c92e5dd6d9e319c35e256e2b206a110
2017-01-09 17:03:57 +00:00
Alexander Alashkin
e79121acb7
Fix link in documentation
...
PUBLISHED_FROM=d4337a442a8f5728826eb109bdca41ca03a18d2a
2017-01-09 17:03:46 +00:00
Dmitry Frank
4bdec5c1c1
Rename mongoose-iot to mongoose-os
...
URLs like mongoose-iot.com are left intact
PUBLISHED_FROM=b8502b163c26a2cb54598db57ba094333fe7cf54
2017-01-09 17:03:38 +00:00
Deomid Ryabkov
fa39d2f2fa
Remove a dead submodule entry
...
PUBLISHED_FROM=0b6e19e41c12675a487cb61c4f6e0aaba0be0758
2016-12-23 15:37:41 +00:00
Deomid Ryabkov
c55d06ed57
Add directory listing support ot ESP32
...
PUBLISHED_FROM=336d6b28d6165ece75d25911058ffdd075a3c191
2016-12-23 12:37:07 +00:00
Deomid Ryabkov
3829873552
Support MIOT app builds for ESP32
...
PUBLISHED_FROM=44bcbb87c326a4e05e96dc0b094fd9dd1a9d4276
2016-12-21 21:47:06 +00:00
Deomid Ryabkov
54ebcc5bd8
Minor fixes to socket support when used with LWIP
...
- LWIP UDP sockets are always writable and they are not reported as
such by select() (bug? featuyre?). TCP sockets are ok.
- Always deliver MG_EV_POLL, whether we have other fd_events or not.
Otherwise MG_EV_POLL would not be delivered at all to perma-writable
UDP sockets (as they are on LWIP).
- Ignore EAGAIN/EWOULDBLOCK errors while connecting, this happens
during SSL handshake.
PUBLISHED_FROM=3b1ee0d2b0c672512da5c9d6141aba1112983426
2016-12-21 13:06:21 +00:00
Deomid Ryabkov
7782500dbb
Commonize bitbang I2C master and use it in ESP32
...
Until issues with hardware I2C are resolved
PUBLISHED_FROM=78bced9f18b5bfbf547de06f813bf98c82eea6ea
2016-12-20 16:05:58 +00:00
novlean
86ec6bb2f8
updated for mOS
2016-12-20 14:59:08 +00:00
Alexander Alashkin
02499d672b
Build c_mqtt/stm32 - part 1, with stubs
...
PUBLISHED_FROM=de4b9f3e9eeafa75bb8919abacd86fb23fdefc1b
2016-12-15 14:06:50 +00:00
Alexander Alashkin
8c2e641ed7
Simplest c_hello/stm32
...
PUBLISHED_FROM=3a22eb96ff011ef8327cd1b78b56a3af86ba2c84
2016-12-14 16:22:16 +00:00
Dmitry Frank
29c53082eb
In cs_simplelink, check if MG_NET_IF is defined
...
PUBLISHED_FROM=20c87885c8f778139d3df20507d6870070bcc787
2016-12-14 13:21:54 +00:00
Deomid Ryabkov
2fa988fc7b
Bring up main task, start MG loop and load config
...
PUBLISHED_FROM=7c81ec28457cda3a503e4ab01fc8593e474df4b8
2016-12-13 17:51:33 +00:00
Alexander Alashkin
72f1d444d3
Fix miot compilation in C++ mode
...
PUBLISHED_FROM=42997efb3ddc462c33d2cf7e8ef0e922797d9901
2016-12-13 15:21:26 +00:00
Deomid Ryabkov
7dcc94202d
SPIFFS libc integration refactoring; ESP32 support
...
Factor out common part of SPIFFS libc interface support from the CC3200
port and reuse it for ESP32. Minor cleanups.
PUBLISHED_FROM=19ad4049372f83046abd8eba29cfc7c2cc405671
2016-12-13 10:37:09 +00:00
Sergey Lyubka
a447ae5eab
MQTT parsing fix
...
PUBLISHED_FROM=41f43cb0e707259740de3346308f746c2a3778fd
2016-12-13 10:37:06 +00:00
Dmitry Frank
54ad1e4e47
Prepare pic32 docker image and xc32 makefile
...
This PR does not include `fw/platforms/pic32` since it's too dirty.
PUBLISHED_FROM=db50ba389202da80355aafe5f2c1ceeca7bffe41
2016-12-12 21:35:49 +00:00
Deomid Ryabkov
39ea91cfc2
Test building with MG_ENABLE_FILESYSTEM=0
...
Fix errors so it builds.
PUBLISHED_FROM=db9fc9ef997d6b1847117e8db9aefdc7e540f4cc
2016-12-09 23:35:54 +00:00
Dmitry Frank
5ebff5d15e
Rename pic32_harmony -> pic32
...
PUBLISHED_FROM=00ca7b2adabde94a683ac4d33be1f2bdbb17772f
2016-12-09 22:06:14 +00:00
Dmitry Frank
731512a947
Define mg_file_upload_handler() only if needed
...
Namely, define it if only `MG_ENABLE_HTTP_STREAMING_MULTIPART` and
`MG_ENABLE_FILESYSTEM` are on
PUBLISHED_FROM=3094738a4b76ceb09a3c2374e8d9d914b71c3441
2016-12-09 16:06:17 +00:00
Alexander Alashkin
304dbca63d
Fix miot-mbed errors and warning, part 3
...
PUBLISHED_FROM=2f6fb7ea5abdcd4ca9b06956172938ee3bc28459
2016-12-09 12:36:00 +00:00
Dmitry Frank
18ff0fafe0
Implement stringify macro
...
And use it for `FW_ARCHITECTURE`. This is needed because with
Microchip's xc32, `-DFOO=\"bar\"` results in `FOO` being `bar`, not
`"bar"`, so we have to stringify differently.
PUBLISHED_FROM=d0aeebb55ef9e0e92a7f750104cd6600e0d9c636
2016-12-08 22:22:24 +00:00
Alexander Alashkin
25de791424
Fix miot-mbed compilation, part 2
...
PUBLISHED_FROM=bd87b901b7c1c1a4f9b0f875f0b024b672121d4a
2016-12-08 19:21:53 +00:00
Alexander Alashkin
6e88c9cfd1
Fix WEAK redefinition in mbed
...
PUBLISHED_FROM=6abc158f198f5bd032e5ab06cc0ba3373434cdbe
2016-12-08 16:21:37 +00:00
Marko Mikulicic
9937e88985
Fix comparisons
...
PUBLISHED_FROM=4d86de7f73ef9d4c0f236e1fe1201e5de792f19f
2016-12-07 18:05:56 +00:00
Sergey Lyubka
57f964a139
Add mqtt last will
...
PUBLISHED_FROM=fb856714ead67390dfd7ce9d208ae5ae19ce7c6d
2016-12-07 17:21:56 +00:00
Dmitry Frank
cbd5835112
Include sys/types.h for PIC32 port
...
On PIC32MZ, this is required to get `ntohl` and friends.
PUBLISHED_FROM=82ab532cd3757df6f79215f3eaca90cd87f6c965
2016-12-02 16:06:42 +00:00
Alexander Alashkin
fba32acb73
Replace memcmp with strncmp in mongoose
...
PUBLISHED_FROM=3c5859f06ab838bba7c95c4878c4e7e883329810
2016-12-02 13:51:30 +00:00
Sergey Lyubka
2fdb1f78a2
Fix amalgamation conflicts: POC
...
PUBLISHED_FROM=5b63325ade34b9032476fc88ac407816990f1cfc
2016-12-01 22:21:14 +00:00
Alexander Alashkin
ea2069df51
Fix coredump in mg_reverse_proxy_handler
...
PUBLISHED_FROM=ca0ae588290f133ef7640ca538847a63c0cb544b
2016-12-01 09:21:11 +00:00
Alexander Alashkin
7267fc757d
Fix mg_stat
...
PUBLISHED_FROM=e6fb19c5256b6d43359f21b325e16b415152f26f
2016-11-29 13:36:55 +00:00
Alexander Alashkin
ea7d69060d
Replace fopen with mg_fopen
...
PUBLISHED_FROM=764ea806a5d31bd545a5d99de80e2ee0234ebcab
2016-11-29 13:36:54 +00:00
Alexander Alashkin
6e5e2eb694
Restore HTTP errors descriptions
...
PUBLISHED_FROM=26becdaf7dd61481b88b166ea87d44a7bc796660
2016-11-29 11:22:06 +00:00
Deomid Ryabkov
51466df7b9
Check for SEND_AND_CLOSE after HANDSHAKE_REQUEST
...
Assume handshake request was declined if either MG_F_CLOSE_IMMEDIATELY _or_ MG_F_SEND_AND_CLOSE is set.
PUBLISHED_FROM=60af32a3f8890e826205465b9add2f58b1d46e5f
2016-11-28 15:51:14 +00:00
Deomid Ryabkov
d6259332d4
Fix use-after-free
...
Free keys and cert before conf, not after
PUBLISHED_FROM=5628f56eb6973a779179d641fb425d0f14db39cf
2016-11-28 15:21:18 +00:00
Deomid Ryabkov
260229a4d1
Free certs and keys on client TLS connections
...
Renegotiation is disabled, so we don't need them.
Reduces per-connection usage when idle by 3K.
PUBLISHED_FROM=24b2ac9557107f7da412dae6a42257c9b7c812d5
2016-11-28 12:05:41 +00:00
Deomid Ryabkov
7776df241c
Enable server name verification on mbedTLS
...
PUBLISHED_FROM=54774944d5402a5d6a351b4609428940c0ad20ea
2016-11-28 08:50:42 +00:00
Deomid Ryabkov
e17fdcb077
Minor memory shavings on ESP8266; ~2.5K less
...
- Only allow one TCP segment in flight. Each segment is 1.5K and it
adds up. This may increase latency, but memory is precious on ESP.
At teh same time, optimize use of tcp_output: do not send a new segment
on every write, only call tcp_output at the end of connection
processing during poll.
- Build LWIP with DNS disabled. We have our won resolver, and LWIP's
allocates large static buffers (1K).
- mbedTLS: Deallocate peer's certificate at the end of SSL handshake,
reduces idle SSL connection footprint by ~1.5K.
Some tweaks to the heap log viewer (which made all the above possible).
PUBLISHED_FROM=6e84bba64eacb2d737561e09313918104921ea80
2016-11-27 17:21:29 +00:00
Deomid Ryabkov
d96629cdf4
Add support for PEM certs on SimpleLink
...
Also performs trnasparent SPIFFS -> SLFS cert copy.
If the file's extension is .pem, convert it to DER format and put on SLFS.
PUBLISHED_FROM=364caab21969ca28a05802c4dde93a11d1e0feda
2016-11-25 19:30:05 +00:00
Dmitry Frank
0c79fcfbd0
Add a flag to prevent a tunnel from reconnection
...
Also fixed a memory leak on reconnect: previously, each reconnect was
creating a `struct mg_connection` which was never reclaimed
PUBLISHED_FROM=eefdcf557e032ac81d5ed3aba55ac912e400148e
2016-11-25 11:36:14 +00:00
Alexander Alashkin
9125830de6
Fix stkovf in mg_resolve_async_opt
...
PUBLISHED_FROM=8e37c51c6b0bf7d0782f3a997360827471b95d2e
2016-11-25 08:21:38 +00:00
Alexander Alashkin
55963d0c9a
Fix typo in platforms_esp
...
PUBLISHED_FROM=b17ef5bc8ec801fca91c89af5f97767a55911952
2016-11-24 13:21:09 +00:00
Deomid Ryabkov
44f7b91826
Fix use of SLFS from TI libc "device" interface
...
PUBLISHED_FROM=e1bb89268dfc4d51880b89b07fb2f69cb49e053b
2016-11-24 12:50:52 +00:00
Deomid Ryabkov
731ea5d50d
Increase debug level of stat() and open() messages
...
Useful for debugging at level 3
PUBLISHED_FROM=b6a4565df0de0dccf37c182c71d2f4c852f2291a
2016-11-24 10:21:58 +00:00
Alexander Alashkin
9e517fde00
Implement SNTP client
...
PUBLISHED_FROM=ac54bcbc81a9ee688e8b90e261172be76a9fbacd
2016-11-24 09:51:58 +00:00
Dmitry Frank
1ff61837ac
Fix mg_http_common_url_parse
...
The only client of `mg_http_common_url_parse` (namely,
`mg_connect_http_base`) expects `port_i` to be the index in the address
string at which the port was added.
PUBLISHED_FROM=b095926b5485e4674e3c59ff8481171831fb61ae
2016-11-23 18:06:50 +00:00
Deomid Ryabkov
3a8464e4b8
Reinstate fs_slfs_rename stub
...
Needed by TI libc for use with add_device
PUBLISHED_FROM=ff0713c5f4d04810894d8e1a82aaac25aa101365
2016-11-23 11:07:11 +00:00
Marko Mikulicic
39b0b8e2fd
Fix clang formatting
...
PUBLISHED_FROM=ea64670e42ae58bbe26abee5d928f2afcd83bd46
2016-11-23 08:06:09 +00:00
Sergey Lyubka
3a61186491
Ubreak v7 build - add missing includes
...
PUBLISHED_FROM=01d691c9e06486cab0903b8db98e56fffc3fb234
2016-11-22 16:21:38 +00:00
Deomid Ryabkov
2180e1786c
Allow use of absolute paths on SLFS
...
If the path starts with /, do not drop it.
There are no directories on SLFS, but use of /pretend/paths/to/files.txt
is common. What we do drop is the ./ prefix (added by mongoose when document_root=.)
PUBLISHED_FROM=5108bc078dfaf8f8afa4db554b4769d9d7b8a103
2016-11-22 15:52:04 +00:00
Deomid Ryabkov
8fb5e8ef19
mbedTLS support for LWIP net_if
...
PUBLISHED_FROM=a733ba6e06887a448f96f92679f6f8adbe9c61f7
2016-11-22 13:21:42 +00:00
Ilia Penev
a8f54d1851
Integrate PR170
...
PUBLISHED_FROM=f1a804466bea6d6d77103525d76ef7b819b63477
2016-11-22 08:05:55 +00:00
Deomid Ryabkov
c9721d4d7f
Re-enable amalgam tools publishing
...
PUBLISHED_FROM=f7fb01509b3f3982724cc3b05e357d8dd385a546
2016-11-21 22:36:43 +00:00
Marko Mikulicic
c848372bbe
Rename tools/amalgam to tools/amalgam.py
...
PUBLISHED_FROM=7c6cb5517d0d2b13f29af29c511dd7f0baa5acc6
2016-11-21 22:19:19 +00:00
Marko Mikulicic
a23daa1547
Move mg_a*printf to common
...
PUBLISHED_FROM=cccd28ef43ec4e08fa52340ce78bda10db5ac27a
2016-11-18 15:36:00 +00:00
Sergey Lyubka
9dba6c806b
Add endpoint to list tunnels
...
PUBLISHED_FROM=f45d9832a884374f6f9ea3f2e0a8c9465f214896
2016-11-18 12:21:11 +00:00
Marko Mikulicic
fc635a9340
Move mg_ncasecmp and sister to common string utils
...
PUBLISHED_FROM=182c43c3bd82190cb816c8ebaddccc13a94950d0
2016-11-17 11:21:17 +00:00
Alexander Alashkin
81f738af3f
Fix mg_http_common_url_parse
...
PUBLISHED_FROM=51c44c445309aa0850b227949a0a0a6be433d08c
2016-11-17 11:05:57 +00:00
Alexander Alashkin
f6165d23e4
Fix stack overflow in mg_hexdump
...
PUBLISHED_FROM=5025692f3f4593b3ea38af51f8f49e1ac4df6b88
2016-11-16 17:36:14 +00:00
Alexander Alashkin
e4a4b6f260
Fix coredump in mg_tun_destroy_client
...
PUBLISHED_FROM=56ff5afe805e4680e02183a8c3887ea60ee5ebfe
2016-11-16 12:21:31 +00:00
Dmitry Frank
0ceee1dc05
Rename mg_ -> miot_ under fw
...
`MG_ENABLE_...` macros are not yet renamed because it involves some
logic change: e.g. instead of defining `MG_ENABLE_MQTT`, one should
define `MIOT_ENABLE_MQTT`, which should imply `MG_ENABLE_MQTT` as well.
Macro refactoring is going to be done in another PR.
PUBLISHED_FROM=f8b66d5772846126b94223a729a6bd87897f8de6
2016-11-15 14:36:10 +00:00
Alexander Alashkin
8a6cf95fad
Fix mg_match_prefix
...
PUBLISHED_FROM=4fdfa61e7b3b62083b0ac8fe74dd2dd3793f50fe
2016-11-15 13:36:31 +00:00
Dmitry Frank
37a7031f4e
Minor formatting fix
...
PUBLISHED_FROM=c56b4ae00c454e6931ab29b095641bf0222f860c
2016-11-15 09:51:14 +00:00
Dmitry Frank
8874f3de9d
Fix simplelink SSL context
...
It wasn't checked for `NULL`, and on CC3200 NULL dereferencing addresses
doesn't cause a crash, so it worked by pure luck: ctx->ssl_key was 0.
After `mg_` to `miot_` refactoring it's not the case anymore (presumably
because linker arranged objects in a different order), so this bug shown
up.
PUBLISHED_FROM=0f1cc73a078c18432c68ae0f9b14dd06b3bb4279
2016-11-15 09:06:03 +00:00
Marko Mikulicic
3c5d48ea13
Promote tun example to a unit test
...
PUBLISHED_FROM=0454cdeec5c7120eb4bf905fdd5b7abdcb4003c2
2016-11-14 18:06:04 +00:00
Sergey Lyubka
a0d98b7a39
Fix msvc6 build
...
PUBLISHED_FROM=196199fd02ec9b20d1e76d1414bfafa624f9ebce
2016-11-14 17:51:07 +00:00
Marko Mikulicic
74b75899d3
Make cc3200 sprintf workaround smaller
...
in light of the root cause discovered by rojer
and addressed in cesanta/dev#5882 for the http connection code path.
PUBLISHED_FROM=aea563150a0411cbe3fdc6f7911529f3136cc76f
2016-11-14 17:06:31 +00:00
Deomid Ryabkov
240eca0b68
Avoid passing NULL to %.*s
...
CC3200 (TI's C library) doesn't like it
https://e2e.ti.com/support/development_tools/compiler/f/343/t/554883
PUBLISHED_FROM=d0e9fb7ebb7d189d1a76451d609f1f1861c7a837
2016-11-14 16:20:08 +00:00
Marko Mikulicic
cd54b18de3
After establishing tun, remove http proto handler
...
PUBLISHED_FROM=8449d4df2a4caf7afc0f9b50f85bb01d79b8c4eb
2016-11-14 16:20:04 +00:00
Deomid Ryabkov
65e01dbabc
Initial support for mbedTLS
...
PUBLISHED_FROM=edb1063d3fd64e3c732f16b8bf101c065cdacddd
2016-11-14 16:20:02 +00:00
Deomid Ryabkov
62276ce63e
Add digital signature to test key usage; 2048 bit
...
Digital signature key usage is required for the key to be used for (EC)DHE.
PUBLISHED_FROM=b33366d484aff2c478b2f44b85dba33d04d3a808
2016-11-14 16:20:01 +00:00
Deomid Ryabkov
f67fe352cf
Pull out common SSL interface
...
Currently only OpenSSL API impl, but the plan is to add more.
PUBLISHED_FROM=c85b26fa2312047768bdcf3eca583e60862aba90
2016-11-11 20:51:01 +00:00
Marko Mikulicic
4805797752
Fix hexdump memory overflow
...
PUBLISHED_FROM=a6f3f33432ce43b6d4462de623ba61a53e7f18df
2016-11-11 16:05:53 +00:00
Marko Mikulicic
4c038508f2
Extract tun proto name constant
...
PUBLISHED_FROM=574362ea7d90a17cd49963a430559824cfcff802
2016-11-11 10:06:02 +00:00
Marko Mikulicic
15db11c0e6
Fix tunnel teardown
...
PUBLISHED_FROM=2c23e4a4dfc7129da657c5935f06335fc022394a
2016-11-11 08:21:37 +00:00
Deomid Ryabkov
97fe505bb4
clang-format more stuff in common
...
PUBLISHED_FROM=8b5c6f70d5582402f327c4da7baee7cc15ee13aa
2016-11-10 23:50:42 +00:00
Deomid Ryabkov
fd45a6d31b
CS_LOG_TS_DIFF -> CS_LOG_ENABLE_TS_DIFF; ifdef->if
...
PUBLISHED_FROM=48c8d4326ea8a24edd8d1ca011be9e7643219084
2016-11-10 16:21:28 +00:00
Marko Mikulicic
e1a9ad7f82
Overload mg_bind to bind to tunnel
...
PUBLISHED_FROM=f554cc63dfea12455fe5e428c6ce5f3152774f8e
2016-11-10 13:07:17 +00:00
Deomid Ryabkov
296affc6e4
Make Krypton define KR_VERSION; use it to detect
...
PUBLISHED_FROM=ea039cdc30aec44db074871ff6b2d2582f98b5c9
2016-11-10 11:50:56 +00:00
Marko Mikulicic
1889e12b54
Support username:pass authority in HTTP/WS urls
...
PUBLISHED_FROM=39a1c2a271c5cd961670e11c830105c17ba0b2e4
2016-11-10 11:21:43 +00:00
Sergey Lyubka
5e91d919e0
Make mg_register_http_endpoint work for websocket
...
PUBLISHED_FROM=5bf5a007929b3b6275121f3cf949526e881fb482
2016-11-09 17:21:38 +00:00
Marko Mikulicic
5934846852
Make mg_tun_bind take separate user+pass
...
PUBLISHED_FROM=3ee9478275c4b9253b1dd4f98a69cecc89290bce
2016-11-09 15:51:08 +00:00
Marko Mikulicic
5045dfab74
Mongoose TCP tunnel
...
PUBLISHED_FROM=f03b963aaec02574e47c28ee8033551440b94f2d
2016-11-09 15:05:46 +00:00
Alexander Alashkin
499a7d6a37
Fix mg_is_error
...
PUBLISHED_FROM=80481f8dbcb93d04eee51ecc6366949420a61f2f
2016-11-09 13:50:52 +00:00
Alexander Alashkin
f72c3fa9a7
Unbreak PIC32 compilation. Close cesanta/dev#5807
...
PUBLISHED_FROM=cfd7de45e4357a17719501b8ab004c2edbd3e87e
2016-11-09 11:21:02 +00:00
Alexander Alashkin
d0c50632cd
Fixes in MQTT for AWS support
...
PUBLISHED_FROM=2b82f3793b3c6d0cf1266e4cc0e67930f43002c5
2016-11-09 10:05:40 +00:00
Marko Mikulicic
fffb54e2c6
Implementing MG interfaces
...
PUBLISHED_FROM=46496c2d5340a0bbe4fe1c6c9ff187bc65d2d35f
2016-11-08 22:36:13 +00:00
Deomid Ryabkov
8bf3bd48a6
Include sys/param.h on UNIX (to get PATH_MAX)
...
PUBLISHED_FROM=774764f9d316e111912dae1fcaf2933141c59a60
2016-11-07 16:36:05 +00:00
Deomid Ryabkov
dbe976ad3e
Disable parallel builds of the Tiva example
...
Causes issues on Windows - looks like "parallel" makefiles
do not handle spaces in directory names properly.
PUBLISHED_FROM=5d83e737e9f81041db21fd82c32146471eac1764
2016-11-07 14:05:46 +00:00
Deomid Ryabkov
9a8a6b53ae
Minor fix to the LPC example
...
PUBLISHED_FROM=3a99921093957c2ba9c1a0938fa00b3a29784d81
2016-11-06 02:20:43 +00:00
Dmitry Frank
84132b7b2a
Add readme for nRF51 example
...
And pre-create directories for SDK for both nRF51 and nRF52.
PUBLISHED_FROM=00caf156f48da92804c6af8efe323535fbc5497d
2016-11-04 19:35:50 +00:00
Dmitry Frank
e69a7a1b25
Enable warnings on nRF5x examples
...
Now all warnings are disabled on SDK files, and enabled on our
application's files.
Fixed a couple of things in nRF52 which were unnoticed because all
warnings were disabled there from the beginning.
PUBLISHED_FROM=a33ab22d0ce85efea364b80478986b88f4b0a3a2
2016-11-04 19:05:54 +00:00
Dmitry Frank
7f2bdc217a
Fix nRF51 compiler flag for GCC
...
PUBLISHED_FROM=f8b4e8650d72c2ec5525e0510fbc8a80f8645a14
2016-11-04 18:05:42 +00:00
Dmitry Frank
76bb35d5db
Adjust udp_recv callback type for nRF5x
...
PUBLISHED_FROM=66db56192ae710e3f865fef47593b49e0ed4f133
2016-11-04 17:35:37 +00:00
Dmitry Frank
0187f297d1
Make nRF51 example work with GCC
...
Unfortunately it turns out Nordic's examples were able to build with GCC
just because they suppressed all warnings; I had to do the same here
because there are some macro redefinitions of arm-none-eabi-gcc and
lwip.
TODO: resolve that and do not suppress warnings.
PUBLISHED_FROM=e65c7b0f2451f85765d958d7f67eb9262f7bc929
2016-11-04 12:20:35 +00:00
Dmitry Frank
6ff49dc196
Fix nRF51 example and add RTT support to it
...
Now it works in hardware.
PUBLISHED_FROM=f223bde2d2bebe97513ce073eb887552bc3d93af
2016-11-03 22:50:36 +00:00
Alexander Alashkin
cd778396ff
Update mg_coap_add_option doc
...
PUBLISHED_FROM=cded8f36e2833e7c256ba6cbca0ebf1f6012dee7
2016-11-03 17:20:55 +00:00
Marko Mikulicic
0dcb50d39c
Fix doc for MG_EV_WEBSOCKET_HANDSHAKE_REQUEST
...
PUBLISHED_FROM=79d3bc5ba7887e2126b64d2ea804c62606264ce2
2016-11-02 23:50:36 +00:00
Deomid Ryabkov
fd763846e5
TI Tiva TM4C129 support and example project
...
PUBLISHED_FROM=c3d59657adff247f565bf0be59192e32d5d0bbf6
2016-11-02 18:55:04 +00:00
Alexander Alashkin
f4f310cf51
Add WinCE example, update Mongoose for WinCE6.0
...
PUBLISHED_FROM=2a76ccddb62b63caeaca3785a07d7d0b94125eaf
2016-11-02 10:11:20 +00:00
Dmitry Frank
0798b72470
Add names to mg_event_handler_t's args
...
PUBLISHED_FROM=3caea25dec11260561349fa096547bd62ecdb509
2016-11-01 23:25:18 +00:00
Deomid Ryabkov
39a17f8a72
Add text msgs for HTTP status codes 400 and 503
...
PUBLISHED_FROM=1bd3308933354e147c4e8aa375728a1ede6d8ab4
2016-11-01 18:10:46 +00:00
Deomid Ryabkov
78454da3b3
BREAKING: Set MG_F_SEND_AND_CLOSE on UDP conns
...
Long-lived UDP "connections" i.e. interactions that involve more
than one request and response are rare, most are transactional:
response is sent and the "connection" is closed. Or - should be.
But users (including ourselves) tend to forget about that part,
because UDP is connectionless and one does not think about
processing a UDP request as handling a connection that needs to be
closed. Thus, we begin with SEND_AND_CLOSE flag set, which should
be a reasonable default for most use cases, but it is possible to
turn it off the connection should be kept alive after processing.
PUBLISHED_FROM=1677d8024aa9afa7e18d8a04d829b699f7f2f103
2016-11-01 14:26:00 +00:00
Alexander Alashkin
e62dc8f3b2
Handle MG_EV_CLOSE in examples
...
PUBLISHED_FROM=57c62a4123a54ecb455dbf91f3fe562fb0cf2ec2
2016-11-01 08:58:38 +00:00
Deomid Ryabkov
e99088348d
Use ICACHE_FLASH to guess CS_P_ESP8266
...
Also, do not require -DRTOS_SDK and pick socket/low-level event manager
based on LWIP_SOCKET.
PUBLISHED_FROM=d4afbdf8dab62a1c6ac4ca075c4a58887223dba4
2016-10-31 22:57:59 +00:00
Deomid Ryabkov
6a12bd7abc
Wrap LOG and DBG in do { ... } while(0)
...
PUBLISHED_FROM=c4f3d44ed16dba60db3198b90478c1b2e6f2a5c1
2016-10-31 20:11:37 +00:00
Deomid Ryabkov
b39e30fb0c
Example LPCXpresso project for NXP LPC4088
...
PUBLISHED_FROM=ec4c4ec1ca7fee10c67fbba5a603d59fe44a046d
2016-10-31 13:02:01 +00:00
Deomid Ryabkov
92b15395a4
Add CS_P_NXP_LPC - platform def for NXP LPC MCUs
...
PUBLISHED_FROM=d6ed793313a98545d5a89faafc8526b658ffff66
2016-10-28 18:12:08 +00:00
Alexander Alashkin
7411ff1fca
Drop load_balancer example
...
PUBLISHED_FROM=d823db5e8b2831201e22bbdd3188e93bbbbbbb09
2016-10-28 17:33:08 +00:00
Marko Mikulicic
f2e7facbc3
Fix master build
...
amalgamation, ansi C and queue.h usage issue
PUBLISHED_FROM=96a2b8a90d590da0f2d9939c1d2bc7a64d1fe36a
2016-10-28 14:29:58 +00:00
Sergey Lyubka
f1b4f0c463
Fix SEGFAULT in MQTT server
...
PUBLISHED_FROM=6455082726781aab819a7f8645e81adaa7fc7669
2016-10-28 14:12:40 +00:00
Dmitry Frank
c04e3f80b9
Make mongoose compile for nRF51
...
PUBLISHED_FROM=6af3ed56802d2619f673c36059370440a0c06397
2016-10-28 11:08:09 +00:00
Dmitry Frank
717e872fdd
Fix nRF52 Keil project file
...
Keil actually saves project on disk only when the project is closed,
that's why these changes were missing before
PUBLISHED_FROM=d8ebdaa009ff5676bf6c16aaa2fe8356b03d3b8b
2016-10-27 18:37:09 +00:00
Dmitry Frank
dbff932d8b
Improve readme for nRF example
...
PUBLISHED_FROM=7b02f8e7bb85ce1b45f872610645e619de5e313a
2016-10-27 18:23:53 +00:00
Deomid Ryabkov
5c9f463cab
Add MG_EV_HTTP_MULTIPART_REQUEST_END
...
This event is sent at the end of the request
PUBLISHED_FROM=0b841a26320e3edbf73126e2ed8d286d4e5f3fa8
2016-10-27 18:09:57 +00:00
Sergey Lyubka
3a8f47befd
Mqtt: parsing auth info in the connect message
...
PUBLISHED_FROM=017e707ea2bd7b1d1972fbb92e5d98c74e17e9d0
2016-10-27 17:53:17 +00:00
Marko Mikulicic
a3e2a41834
Improve error reporting of mg_connect_http
...
PUBLISHED_FROM=8149fc5ab3c6f7d6ec360473f0e6847040ca820b
2016-10-27 15:22:31 +00:00
Dmitry Frank
b667bd709d
Specify void arguments explicitly
...
PUBLISHED_FROM=345ac55417a9b012e89244d36bfb9ebf8e908637
2016-10-27 12:37:38 +00:00
Marko Mikulicic
a4c668e37a
Expose reverse proxy API for dynamic mounts
...
PUBLISHED_FROM=00772400bce7c15368d91741092ebc8ab0842e19
2016-10-27 12:08:05 +00:00
Marko Mikulicic
900bbe724a
Mongoose forwarding
...
PUBLISHED_FROM=51652f0157bb951a43508f0fe948c62c351e96ba
2016-10-26 14:52:10 +00:00
Alexander Alashkin
f5a2857620
Add PIC32/Harmony http_server example
...
PUBLISHED_FROM=c393396605d5418fda4ff386170bb9a6d6658a93
2016-10-26 13:53:09 +00:00
Deomid Ryabkov
2ef6f7248d
Remove -DNO_BSD_SOCKETS, this macro is not used
...
PUBLISHED_FROM=b860ada45e76b0e04d214fedb04f5a7dd9c7d8f0
2016-10-26 13:07:03 +00:00
Alexander Alashkin
06b430e57f
PIC32 Harmony TCP/IP support basics
...
PUBLISHED_FROM=31f8f61de954fa3a36ebad162bdb730c0db95b58
2016-10-26 12:00:13 +00:00
Dmitry Frank
f061dcf8b6
Make nRF5 example fit better in nRF ecosystem
...
By making dir hierarchy replicate that of examples provided with the nRF
IoT SDK.
Also, example for Keil uVision IDE is added.
PUBLISHED_FROM=1a3d9a54d15eb1acfb1b5d162138576a387ed21c
2016-10-26 12:00:09 +00:00
Sergey Lyubka
99377bdd30
Fix user registration flow
...
PUBLISHED_FROM=bac8c10063215f7f7163f607213d15a3c5f81552
2016-10-26 11:02:09 +00:00
Deomid Ryabkov
c6b5343c9b
Target CC3200 example to production device
...
PUBLISHED_FROM=623dda0737c8426754044880713c1283c4b181b6
2016-10-26 10:39:04 +00:00
Sergey Lyubka
7f4e2a93d0
Sort docs API entries alphabetically
...
PUBLISHED_FROM=73ef8ae768585d3c204e6e022848f49e8f4a8de2
2016-10-26 08:28:07 +00:00
Marko Mikulicic
c151f9bc59
Denoisify mongoose poll logging
...
PUBLISHED_FROM=ec1cb82cc2404cfe2abdf3bd445ddec3d4ff3e57
2016-10-25 16:55:50 +00:00
Deomid Ryabkov
204bf9acec
Krypton + LWIP fixes
...
* Make kr_{send,recv} report status via return code instaed of errno
* Move mg_if_* recv and connect callback invocation out of LWIP
callbacks: these can be nested and we don't want that to happen
to our callbacks. Instead, we post events for the event manager to
process during next poll.
PUBLISHED_FROM=9b3c1de796fae381dea1641807e51d7a897a398e
2016-10-25 15:30:04 +00:00
Dmitry Frank
e3bac87016
Make mongoose compile with ARMCC
...
(It compiles, but doesn't really work yet)
PUBLISHED_FROM=0382d355a343bdab9c9eeed87229efe90c30c40b
2016-10-25 09:56:40 +00:00
Marko Mikulicic
1f09505248
Fix byte order defines under OSX
...
PUBLISHED_FROM=327a8d729519aa0ad953594a32d63fddac4d1ec9
2016-10-25 08:34:47 +00:00
Sergey Lyubka
7f99013179
Make backend build under win32, MSVC98
...
PUBLISHED_FROM=961e25e133eff8ee168557f186713d5babbd0c5f
2016-10-24 21:49:11 +00:00
Dmitry Frank
8d72c2a7b2
Add HTTP example for nRF
...
PUBLISHED_FROM=d9d979057d5269ac32d16545dd2489485bda642a
2016-10-24 11:13:26 +00:00
Alexander Alashkin
c722cfec18
Fix c++11 mg compilation
...
PUBLISHED_FROM=a121a15698884203a573741e73fefaa5923dce4d
2016-10-22 14:32:00 +00:00
Alexander Alashkin
835af2cae1
Fix CoAP/CC3200 compilation
...
PUBLISHED_FROM=00e4c01cc2bccd63b0f18b797e2c0503a489ef6f
2016-10-21 15:57:55 +00:00
Marko Mikulicic
bd2a4097b2
Bump sha pointer to latest simplelink_mbed
...
PUBLISHED_FROM=d0c765e56e926c2f2e57cc95dc3ffbdef93c98c3
2016-10-21 12:13:11 +00:00
Ilia Penev
fcc75c6a3f
Fix CoAP packet size calculation
...
PUBLISHED_FROM=43532ec3951779d17438b457fe6de6dea8f514fd
2016-10-21 12:13:10 +00:00
Marko Mikulicic
e08b234326
ARM mbed STM32+cc3100 demo
...
PUBLISHED_FROM=edf899f7493b70660006fd605f0301a44cd16356
2016-10-21 10:16:47 +00:00
Marko Mikulicic
5bd3df7a0f
Fix mg_time on mbed and make DNS work around epoch
...
PUBLISHED_FROM=c1aeef9dc25baba794b3269b44441c5bafbca5a8
2016-10-20 22:36:39 +00:00
Deomid Ryabkov
5bbf24bf41
Fix line endings in console messages
...
PUBLISHED_FROM=b7cf888512e535fcb81371d797bf8a72440baeaa
2016-10-20 13:36:13 +00:00
Deomid Ryabkov
ace1dc53b2
Fix DHCP message
...
PUBLISHED_FROM=9efa7b516d0541e9f6f8002aa24cf7115f0d9b2b
2016-10-20 12:51:30 +00:00
Deomid Ryabkov
100480a1d5
Tweak NXP example project settings
...
- Enable parallel build
- Generate FW in bin format
PUBLISHED_FROM=ce7d827b42f5619c58287f5c71191c54261d8de1
2016-10-20 12:22:18 +00:00
Deomid Ryabkov
a89a2df603
Fix SDK_PATH
...
PUBLISHED_FROM=df1d2f45c0eea6e3f9b749b539c696684be74155
2016-10-20 11:45:51 +00:00
Deomid Ryabkov
988ad66a12
Add Mongoose example project for NXP Kinetis K64
...
PUBLISHED_FROM=c3e39efb339ed9ae45ac4bbb3bd421704ea5a143
2016-10-20 07:51:19 +00:00
Dmitry Frank
85d6292b8f
Add nRF port for Mongoose
...
Example is not yet added
PUBLISHED_FROM=2732386091a0d4cd8d4c6e64dc16467780ec72a5
2016-10-19 19:22:15 +00:00
Sergey Lyubka
98ab0950c9
Restore Mongoose README changes
...
PUBLISHED_FROM=6f3ba456089f4812ac7e5e1d7456f7f36a7157bc
2016-10-19 14:38:07 +00:00
Deomid Ryabkov
a7f9043072
Add MG_ENABLE_FILESYSTEM to MSP432 examples
...
PUBLISHED_FROM=36289eddbb3c5c172c36ab737e2f23c763058ed2
2016-10-19 13:36:17 +00:00
Deomid Ryabkov
6d8b747ff2
Add MG_ENABLE_FILESYSTEM to CCS projects
...
Update compiler version to 5.2.8
PUBLISHED_FROM=5e9cd9571127d980b9d4dbe78f2aefb78a4d90f5
2016-10-19 12:41:56 +00:00
Deomid Ryabkov
a17eae4142
Enable MQTT client by default
...
PUBLISHED_FROM=cb5d5afe166f637082d4b1d1bce5d9c263e91fd0
2016-10-18 15:51:31 +00:00
Deomid Ryabkov
7b05d70042
CS_P_ESP_LWIP -> CS_P_ESP8266;add CS_P_NXP_KINETIS
...
LWIP part has been finally fully split from the ESP part, and ESP
platform defs reduced to bare minimum. It is now possible to use LWIP
in either low-level or socket mode without any ESP dependencies,
and NXP Kinetis platform is the first to make use of it.
PUBLISHED_FROM=4a9055897609c812296bdab5b4943ffde641ced2
2016-10-18 12:38:06 +00:00
Sergey Lyubka
f328907da4
Return "status": XX for all RESTful calls
...
PUBLISHED_FROM=92e6e136946fd1f376e6ecbeea30f106caccaae5
2016-10-18 11:51:36 +00:00
novlean
1cea7ba487
Update README.md
2016-10-18 11:40:10 +01:00
novlean
6848452149
Update README.md
2016-10-18 11:38:36 +01:00
novlean
f9a1d47f13
Update README.md
...
Updated with changes.
2016-10-18 11:36:25 +01:00
Deomid Ryabkov
492dcdca8d
MG_DISABLE_(DNS|(_SYNC)?_RESOLVER) -> MG_ENABLE_$1
...
Disable sync resolver by default.
PUBLISHED_FROM=dbaed194e5fe211c07564fe6880649a1aee7f662
2016-10-17 19:21:46 +00:00
Deomid Ryabkov
4ef3a778c1
Introduce MG_NET_IF var, replaces MG_NET_IF_*
...
Possible values:
MG_NET_IF_SOCKET (1) - traditional BSD socket API
MG_NET_IF_SIMPLELINK (2) - TI's SimpleLink socket interface
MG_NET_IF_LWIP_LOW_LEVEL - a net_if implementation that uses LWIP's
low-level API, when LWIP_SOCKET is not available.
PUBLISHED_FROM=a5c0aebb7b6bdb1f1f4cb3210763d16f3ab5e133
2016-10-17 18:21:58 +00:00
Marko Mikulicic
31c5ef1bc3
Don't clang-format non checked out things
...
mbed-os is a directory that gets checked out by the mbed cli
(a tool similar in spirit to miot) and it contains a lot of
.c sources, so many of them that clang-format burns your CPU.
While we're at it, also fix check_no_ifdefs when running under a commit
hook.
PUBLISHED_FROM=e5dd457ea3c4f9bd880f2491fb322dffa7abf70a
2016-10-17 17:06:23 +00:00
Dmitry Frank
4656e7b0dd
Don't access nc->ssl if SSL is disabled
...
PUBLISHED_FROM=bdbd9416f73f84a3d8afbffe886d0922c36769d4
2016-10-17 10:07:37 +00:00
Alexander Alashkin
4216cf2ac1
Enable FS for WinCE
...
PUBLISHED_FROM=ec3ed105e29251bdd9b8ad08e8e56c0873ced8ae
2016-10-17 09:22:32 +00:00
Deomid Ryabkov
37e4f51668
MG_DISABLE_SOCKETPAIR -> MG_ENABLE_BROADCAST
...
PUBLISHED_FROM=81b6289a4b54043df557142f0de8cc66bc5190d4
2016-10-17 04:07:06 +00:00
Deomid Ryabkov
1dae0373c8
MG_DISABLE_POPEN -> MG_ENABLE_HTTP_SSI_EXEC
...
PUBLISHED_FROM=55b2b70a688234f6ebcfba37eced20ee5d5387a1
2016-10-16 23:21:56 +00:00
Deomid Ryabkov
e928f36456
MG_DISABLE_HTTP(|_SSI|_WEBSOCKET) -> MG_ENABLE$1
...
Factor out SSI and WS code from http.c
HTTP + WS are enabled by default, but MQTT is built without HTTP
support as a compilation test.
PUBLISHED_FROM=925ed9a55abb193ed7deac1c9675a0e5b35dca50
2016-10-14 17:06:19 +00:00
Alexander Alashkin
fcb94a1742
Port Mongoose to WinCE, part I
...
PUBLISHED_FROM=292d73fa3e90377b1f929ae47ae1073dab5a4089
2016-10-14 13:37:07 +00:00
Deomid Ryabkov
8ff010ca0f
MG_DISABLE_FILESYSTEM -> MG_ENABLE_FILESYSTEM
...
PUBLISHED_FROM=026810475d98df117ab1dadf40276759190aad19
2016-10-14 12:37:13 +00:00
Deomid Ryabkov
241090a82b
CS_DISABLE_(STDIO|HEXDUMP) -> CS_ENABLE_$1
...
PUBLISHED_FROM=9fd0cebfa8df53b5d9574a8d013305ddda5e7a18
2016-10-14 10:22:30 +00:00
Marko Mikulicic
618bef0eb2
Fix stm32f4_cc311 example and add it to CI
...
The build has been broken because MQTT has been disabled during some refactoring
but never caught because this example was never built on CI.
PUBLISHED_FROM=b67051ff948f1ac89448fc707f41cdf5d48cdaaf
2016-10-14 08:37:28 +00:00
Deomid Ryabkov
3b69f5d500
MG_DISABLE_DAV -> MG_ENABLE_HTTP_WEBDAV
...
PUBLISHED_FROM=62267ea0a8e10d8ba7bad590d1a56b179bcffce9
2016-10-14 07:06:13 +00:00
Deomid Ryabkov
b298d46a40
MG_DISABLE_MQTT -> MG_ENABLE_MQTT
...
PUBLISHED_FROM=34e6028b68e286f81be7ba0f8ae73b760f144131
2016-10-13 21:08:22 +00:00
Deomid Ryabkov
75059d1bdc
Rename MG_DISABLE_CGI -> MG_ENABLE_CGI
...
Also factor out CGI-related code from http.c, it's getting too big.
Build tests with -Wundef
PUBLISHED_FROM=a1e82fafba73812c249db0b49c59d1b48417b60d
2016-10-13 19:22:50 +00:00
Deomid Ryabkov
15e9a92798
Run V7 tests with -Wundef
...
PUBLISHED_FROM=e2375c5b10be12a75f6a5f9df56ebe9f5faa9331
2016-10-13 19:07:34 +00:00
Deomid Ryabkov
bafc30bec6
Change from using #ifdef to #if for features tests
...
"#if FOO" still works with simple -DFOO, but gives more flexibility.
Specifically, if user expressed no preference (FOO is not defined),
we can apply reasonable defaults (this is the legitimate use of ifdef).
In short, from now on, please use
#if MG_ENABLE_FOO
instead of
#ifdef MG_ENABLE_FOO
Since we are all used to #ifdef, this change also adds a precommit check
to police this. Specifically, in *.h and *.c files that are Copyright Cesanta,
"ifdef" and "if defined()" are not allowed to be used with macros that contain
ENABLE or DISABLE, unless the like also contains "ifdef-ok".
Hence, if you are sure you want to use ifdef, use this:
#ifdef MG_ENABLE_FOO /* ifdef-ok */
PUBLISHED_FROM=9be829448f53cff575d6cae8b9945fb12531c15a
2016-10-13 18:07:25 +00:00
Alexander Alashkin
0a8f839281
Mongoose 6.6
...
PUBLISHED_FROM=23d031720d8d6e170eab6bd615797f33e36a6701
2016-10-12 10:06:27 +00:00
Deomid Ryabkov
ab48174bac
esp_mg_net_if refactoring: split LWIP & ESP parts
...
esp_mg_net_if was a rat's nest of mongoose net_if and event manager
implementaions and the event loop task for the ESP8266 miot port.
From that, pieces that are related to LWIP support have been pulled out,
separated into net_if and event manager files, and event loop task
has been moved under the miot esp8266 dirrectory.
This is done to facilitate LWIP code reuse. This may not be the end of
it, but it's a start.
Note: custom retransmit logic has been removed for now. Can be
reintroduced later is necessary.
PUBLISHED_FROM=fd5bbf75714583ce95776d4c76b6c5b5dc535364
2016-10-11 18:38:10 +00:00
Marko Mikulicic
4439251f17
Add MBED as platform
...
Currently this allows V7 to be built on MBED; more
work is likely required to port mongoose.
PUBLISHED_FROM=32cd0a38349c8e9019af46d4ce7e1429e660db25
2016-10-11 10:29:41 +00:00
Deomid Ryabkov
f9a6403b11
Add MG_EV_SSI_CALL_CTX
...
This is the variant of MG_EV_SSI_CALL with context of the SSI call being
processed in addition to the tag argument. Specifically, call handler
now gets access to the HTTP request and the name of the file being processed.
MG_EV_SSI_CALL is preserved for backward compatibility.
PUBLISHED_FROM=eeea7487c062505abdb23b6f64994ff7a6b60ff8
2016-10-04 23:51:29 +00:00
Deomid Ryabkov
786f46c655
Update TI compiler to 5.2.8
...
PUBLISHED_FROM=75a0ee6e842da6c8f9e8f1eb85165b64fada0d6a
2016-10-03 15:06:53 +00:00
Sergey Lyubka
5ebd9fe7a5
uart-to-websocket page content changes
...
PUBLISHED_FROM=e8db78b70a80ef63f1f6090b1ad5d16315e8f8c9
2016-10-03 15:06:52 +00:00
Deomid Ryabkov
2302ae5e88
Update TI compiler to 5.2.8
...
PUBLISHED_FROM=75a0ee6e842da6c8f9e8f1eb85165b64fada0d6a
2016-10-03 15:06:16 +00:00
Deomid Ryabkov
8b12263dbc
Fix mg_http_send_redirect doc
...
PUBLISHED_FROM=77cd3df9959b0e3a2550d1581586e69878bbee0d
2016-09-30 13:06:39 +00:00
Alexander Alashkin
376d2666a5
Add PIC32MX/CC3100 mqtt_client example
...
PUBLISHED_FROM=cda885a9dc5d1203b7b59b13ea7fd7934b31260a
2016-09-30 12:39:35 +00:00
Deomid Ryabkov
d90622630f
Link MIOT for Linux statically
...
PUBLISHED_FROM=4f0adab828ebf06dbc3e0c4333bf0053f374b62f
2016-09-30 12:39:32 +00:00
Alexander Alashkin
da447b1067
Add PIC32MX/CC3100 mqtt_client example
...
PUBLISHED_FROM=cda885a9dc5d1203b7b59b13ea7fd7934b31260a
2016-09-30 12:37:08 +00:00
Deomid Ryabkov
460d95afc5
Add mg_http_send_redirect and make examples use it
...
PUBLISHED_FROM=f45e06aeba1c00212078d539b6f74cb8bd054326
2016-09-30 11:22:00 +00:00
Alexander Alashkin
8f522048d8
Use gethostbyname for localhost
...
PUBLISHED_FROM=97c58e8624e0d4fa0f043acf6b20e2a1a5ca1b51
2016-09-30 06:50:52 +00:00
Deomid Ryabkov
147c095105
Report errors in the netcat example
...
PUBLISHED_FROM=f43dc48512ff13028a57571b537c41d9658034b5
2016-09-29 12:05:53 +00:00
Alexander Alashkin
fecb11f2fa
Add CoAP server example doc. Closes cesanta/dev#4917
...
PUBLISHED_FROM=ee7728db61721c0628a00ed702a47f7382ad7cd7
2016-09-29 11:50:59 +00:00
Alexander Alashkin
56e50c2dbe
Add CoAP client example doc
...
PUBLISHED_FROM=51fd5cd50ae8c9fce43d95d06fec2e7582018d00
2016-09-29 11:05:59 +00:00
Deomid Ryabkov
c1b5e9b260
Rename MSP432 example project
...
So they are distinct from CC3200 projects during import
Also update compiler version (5.2.7 -> 5.2.8)
PUBLISHED_FROM=23834212eb51ad068579726a2870e8e6ae87ab9c
2016-09-28 12:51:35 +00:00
Marko Mikulicic
286fa90ee9
Simple mDNS + DNS-SD impl
...
Main TODOs:
1. the spec requires the impl to resend the reply once and
to send gratuitous updates
2. advertise our clubby services as DNS-SD sub-services.
---
Tested with:
1. https://play.google.com/store/apps/details?id=com.grokkt.android.bonjour&hl=en
2. https://play.google.com/store/apps/details?id=com.druk.bonjour.browser&hl=en
3. osx `dns-sd`
Works well enough; it doesn't have some glitches due the fact that we
don't retransmit yet and we don't send gratuitous updates.
PUBLISHED_FROM=38d7a50beb274d4aeeda5b0b58e44dfa0789da84
2016-09-28 08:51:47 +00:00
Deomid Ryabkov
d63fb70c69
Publish the amalgamation tools
...
PUBLISHED_FROM=27ed0bd32e33252495b92361d2943a3450448f62
2016-09-27 15:36:56 +00:00
Deomid Ryabkov
4d76a3be4c
Amalgamation changes - clean up paths
...
Make paths embedded in amalgamated files nice and relative.
This facilitates subsequent clean un- and re-amalgamation.
PUBLISHED_FROM=d83e6000617c54ceaeb78b80c25814996043fe66
2016-09-27 05:06:32 +00:00
Dmitry Frank
d9c612ef2b
Fix miot serial communication on Windows
...
PUBLISHED_FROM=426ff040865ea9626ba62bcbca3aa84fb40fd3ea
2016-09-26 20:21:42 +00:00
Sergey Lyubka
3b3ca1c1b3
Update README.md
2016-09-26 15:46:44 +01:00
Alexander Alashkin
2e748fdbf1
Fix handles leak in CGI
...
PUBLISHED_FROM=6052b7bfec6af33328cbe369da60e9672ebac437
2016-09-23 15:06:46 +00:00
Deomid Ryabkov
6c99691d1c
Add build target for leenoox (using docker)
...
PUBLISHED_FROM=46a7902a727e0ba34c3dbbe5ee04d5119afbaaff
2016-09-23 15:06:45 +00:00
Alexander Alashkin
fd067c8077
Fix handles leak in CGI
...
PUBLISHED_FROM=6052b7bfec6af33328cbe369da60e9672ebac437
2016-09-23 15:06:02 +00:00
Marko Mikulicic
04012760d1
Add small multicast server demo for mongoose
...
PUBLISHED_FROM=c5f6b0c64bc1e43030743b6aae5d06ae231df5dc
2016-09-23 10:21:37 +00:00
Alexander Alashkin
0ec1a141f1
Fix mg_http_parse_headers
...
PUBLISHED_FROM=7e88f60283d499732e8df663814067849d9567bb
2016-09-23 10:21:36 +00:00
Deomid Ryabkov
7414a4fb06
Stop pretending that sl_* API is BSD-compatible
...
PUBLISHED_FROM=355fea9a5a75ac926d4c64d41828ebcd96c04080
2016-09-22 19:51:06 +00:00
Deomid Ryabkov
abbd44e276
Fix WS handshake nonce generation
...
PUBLISHED_FROM=ae8d436db9aee9aec7b5ac1cbee6bc4e32d8c6cf
2016-09-22 16:05:38 +00:00
Sergey Lyubka
13e80e6bd5
Add HTTP examples for MIOT
...
PUBLISHED_FROM=a7ca2e0b705390b32bf2bac44aaaf60c6fcc8522
2016-09-22 14:21:11 +00:00
Deomid Ryabkov
ffa981d172
Update CC3200 sensor demo example
...
PUBLISHED_FROM=9e29cac6a7d4b632b7f4a3ab0fe5411368ad0f5a
2016-09-16 21:20:56 +00:00
Deomid Ryabkov
806f07db67
Fix MG_hello project build
...
PUBLISHED_FROM=450e5c045b6515fba0e0614c6d76a58712c72160
2016-09-15 13:36:09 +00:00
Alexander Alashkin
6746933a3d
Fix Windows compilation
...
PUBLISHED_FROM=04bcd98025263f32d337730cf179bdfc35b683f1
2016-09-15 12:21:53 +00:00
Dmitry Frank
8cb2833fa7
Implement miot dev call
...
PUBLISHED_FROM=40d62ce03a4f739b458076395941e4ad7c932fb3
2016-09-15 12:21:52 +00:00
Alexander Alashkin
1730f3c0c9
Fix Windows compilation
...
PUBLISHED_FROM=04bcd98025263f32d337730cf179bdfc35b683f1
2016-09-15 12:21:21 +00:00
Sergey Lyubka
d6dda04f4f
Update mg_mgr docstring
...
PUBLISHED_FROM=da57dfe52e315dc1901d761289f0445be6e93cea
2016-09-13 11:37:47 +00:00
Artem Bulavin
1b0825ef4b
Docs deployment via docs/make_doc
...
PUBLISHED_FROM=da5f7f80a9876ac4f1889a1176a3048f47980659
2016-09-13 11:37:46 +00:00
Sergey Lyubka
7249b2bd5f
Update mg_mgr docstring
...
PUBLISHED_FROM=da57dfe52e315dc1901d761289f0445be6e93cea
2016-09-13 11:36:17 +00:00
Alexander Alashkin
238bf1a29e
Fix MSVC2015 warnings in mongoose
...
PUBLISHED_FROM=9e2d5c45d112b9e9493d995b12fe989e93d66d5b
2016-09-13 08:51:20 +00:00
Alexander Alashkin
4cbf81da59
Use user timeout in multithreading polling
...
PUBLISHED_FROM=dbf75bfba087f1b0aa0531e5003ba3e69ed1a6ab
2016-09-12 14:21:05 +00:00
Alexander Alashkin
d9b7ec18e7
Add MG_F_ENABLE_BROADCAST option
...
PUBLISHED_FROM=293a54ab09e6879b6f0c36975a137eeaeff92098
2016-09-12 12:36:56 +00:00
Alexander Alashkin
ffed9c4d8c
Copy flags for accepted connection
...
PUBLISHED_FROM=4787d59fdc9f4da525ddfae46e5203d06a596ef4
2016-09-12 10:51:11 +00:00
Sergey Lyubka
0dc0c5a0e0
Add WebSocket support to the netcat example
...
PUBLISHED_FROM=c494ab910d0b1b98ea6ea4024450c60d0abff01d
2016-09-09 22:29:34 +00:00
Dmitry Frank
57f826ece1
Implement miot cloud group add, list, delete
...
PUBLISHED_FROM=4b6f7b6fb4559e085c93f5f8827b8fae1701de70
2016-09-09 22:29:33 +00:00
Sergey Lyubka
729bdebc50
Add WebSocket support to the netcat example
...
PUBLISHED_FROM=c494ab910d0b1b98ea6ea4024450c60d0abff01d
2016-09-09 22:20:58 +00:00
Dmitry Frank
2a541175b5
Use void arguments list consistently in C code
...
On my way, fixed a couple of cases where we had `()` in the header, and
non-empty argument list in the source file.
PUBLISHED_FROM=5519526cf84e2bbd425a726fcc112fea1a95cbf1
2016-09-05 15:51:19 +00:00
Alexander Alashkin
5f93f7162f
Add STM32F4/CC3100 example & Co
...
PUBLISHED_FROM=7f805d89dcb795c9b3ee637ef1dbdcfcf3323469
2016-09-05 15:06:21 +00:00
Sergey Lyubka
3640554503
Add DNS server example
...
PUBLISHED_FROM=0d71533fd475c152c29fe304ca95559512a6059d
2016-09-02 21:06:16 +00:00
Sergey Lyubka
12437fd7fe
Refactor Mongoose documentation
...
PUBLISHED_FROM=e9a4e5c7b4a1d03b93a2a79e29de19e60e919929
2016-09-01 14:35:02 +00:00
Deomid Ryabkov
4120f953c7
Report bind error in simplest_web_server_ssl
...
PUBLISHED_FROM=73e7ed5dd69cbca00ad6f67125915fbfb296770b
2016-08-31 12:30:22 +00:00
Deomid Ryabkov
844c7787f9
Ignore SL_EAGAIN
...
It was observed that sl_Send can return SL_EAGAIN, despite the fact that
we only call write_to_socket if it was reported as writeable.
PUBLISHED_FROM=e4cbacb3f16bb7abb479222d7dcbfbe113a39161
2016-08-29 18:20:54 +00:00
Deomid Ryabkov
0fe9ec1499
C Clubby refactoring
...
Complete rewrite of the C Clubby implementation: it is now modeled after
the Go implementation, with a slight difference that codec and channel
are the same object (something we should probably do in Go as well, as
we only have a single type of channel so far, which is used with all
types of codecs).
This implementation also comes with a new external API,
which is hopefully cleaner and easier to use (see mg_clubby.h).
In this PR I am not adding any new types of channels, but a UART channel
as well as websocket listener channel will be added after this lands.
PUBLISHED_FROM=d545d4bb6434e2a02ad159f9e4b64e594a4797e7
2016-08-29 11:20:54 +00:00
Sergey Lyubka
b3fb21dacc
Add DLL building example
...
PUBLISHED_FROM=20d24793d766ee289c6bde95bd5ad01202cd614b
2016-08-26 09:21:09 +00:00
Alexander Alashkin
2deaf084e4
Fix clang -std=c99 compilation
...
PUBLISHED_FROM=fc3f24d40f92f206e5de4a2fd15100430db87717
2016-08-24 12:50:59 +00:00
Deomid Ryabkov
1b324510cc
Add simplest_web_server_ssl example
...
PUBLISHED_FROM=8945dc72ce22d48c582e7cdd01348494677ac5bb
2016-08-22 22:20:45 +00:00
Artem Bulavin
fd839f1827
Pointer to int casting warning
...
PUBLISHED_FROM=6bf2a710edaae6133d68eaf900ede14bba75ad5a
2016-08-19 09:05:55 +00:00
Alexander Alashkin
f149f4aab1
Remove cs_dbg.h from amalgamated headers
...
PUBLISHED_FROM=993c4b1bec363e3f7975b83710e694792bedf5b3
2016-08-18 14:06:18 +00:00
Marko Mikulicic
af6fc64ab9
Add restart flag to ourci workers
...
PUBLISHED_FROM=f85aaf2215f8323866eab9fb5143407b44fa1959
2016-08-16 17:21:03 +00:00
Artem Bulavin
ff159bf30a
Simple mongoose http urls crawler
...
PUBLISHED_FROM=4eead54610606827963e7c244fcd8ab9a13d4c07
2016-08-16 14:36:11 +00:00
Alexander Alashkin
8cdd19bcae
Call MG_EV_ACCEPT on spawn
...
PUBLISHED_FROM=f1b4ce4334d24bf613db88ccb28cb3668390ce1d
2016-08-16 09:36:05 +00:00
Alexander Alashkin
2efc859829
Fix mt
...
PUBLISHED_FROM=6e33f546c4d096ef03103f6010124e5d568700b0
2016-08-15 16:21:14 +00:00
Alexander Alashkin
d4a8351464
Remove port :5000 from docker.cesanta in Makefiles
...
PUBLISHED_FROM=b2454104b99100f23db0777f874ab8a33727acca
2016-08-12 15:36:30 +00:00
Deomid Ryabkov
5fa544fc78
Make mg_http_serve_file public
...
A way to serve a single, specific file as opposed to the hairy monster
that is mg_serve_http.
PUBLISHED_FROM=6ed1bc487b9d41d212a5907337182f23b040aecf
2016-08-09 10:51:02 +00:00
Deomid Ryabkov
1070dd2d87
Fix overrun in url rewrites, add tests
...
PUBLISHED_FROM=03dc62aa69dddcbe41d5bc5c014de248332da918
2016-08-09 10:06:12 +00:00
Deomid Ryabkov
af98854ce4
Delete old cookie_auth example
...
PUBLISHED_FROM=c118b2796f697e8d5493bb3d534cee7406060c1a
2016-08-08 14:06:05 +00:00
Deomid Ryabkov
7cace648c0
Improve cookie auth example
...
Use templated index page and SSI calls instead of hard-coded html
PUBLISHED_FROM=eade9dfe283952ed5465cd0ff1924f61a14dea0c
2016-08-08 11:28:52 +00:00
Deomid Ryabkov
447bf4adb0
Compile examples with -Werror
...
PUBLISHED_FROM=5a24bda9029db3fc7bf04dc871656d65d551f4ab
2016-08-08 10:36:19 +00:00
Deomid Ryabkov
6572c1c692
Add a cookie auth and session management example
...
PUBLISHED_FROM=243437cf7d48b04aef3896bc4c5d4010975299a4
2016-08-08 10:36:19 +00:00
Dmitry Frank
7b48859f8d
Fix mongoose comment a little
...
PUBLISHED_FROM=542e7c82fa494bef52222495301ab53dce43cd8f
2016-08-04 19:51:10 +00:00
Marko Mikulicic
a6230bafe7
Make unamalgamated build work with bazel
...
PUBLISHED_FROM=c6756bc74e6c25e4c120024e3ee2e3406068ad92
2016-07-30 02:21:16 +00:00
Deomid Ryabkov
cc8f1466c7
Turn on func. sections + dead section elimination
...
In CCS example projects
PUBLISHED_FROM=b3ab112f74ae475cb93bf06fdb7db811bbb99a59
2016-07-27 20:36:15 +00:00
Deomid Ryabkov
69f810febc
Remove debug that slipped into prod code
...
PUBLISHED_FROM=7bacb1af60e85e4ed56a600fa3d1dbba1679db59
2016-07-26 18:39:48 +00:00
Dmitry Frank
e5da7440d7
Bring back JS precompilation to CC3200
...
We haven't actually _fixed_ evaluation of precompiled bcode from
non-mmapped memory: we just never free it. For sane use case (do not
evaluate the same file more than once) it should be acceptable.
PUBLISHED_FROM=a9ca2d8fa72e9c40c93415d060ee8db697caa225
2016-07-26 15:36:00 +00:00
Dmitry Frank
849ec1684a
Apply Mongoose docs edits by Ev
...
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
2016-07-26 15:06:04 +00:00
Alexander Alashkin
4f210cd8eb
Fix error messages and more
...
PUBLISHED_FROM=11c57fc5ece01686e9cecab5e3bfce54a2825836
2016-07-25 17:21:23 +00:00
Evelyn
285f75764c
Update mg_match_prefix.md
2016-07-25 17:37:20 +01:00
Evelyn
3586203753
Update mg_next_comma_list_entry.md
2016-07-25 17:36:46 +01:00
Alexander Alashkin
e406de7e00
Remove extra error message
...
PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
2016-07-25 16:36:18 +00:00
Evelyn
53ed8502c9
Update mg_is_big_endian.md
2016-07-25 17:35:41 +01:00
Evelyn
ac8c756879
Update mg_avprintf.md
2016-07-25 17:35:27 +01:00
Evelyn
07faacdaf9
Update mg_hexdump_connection.md
2016-07-25 17:34:35 +01:00
Evelyn
8464844518
Update mg_hexdump.md
2016-07-25 17:34:03 +01:00
Evelyn
fe2d1ff027
Update mg_sock_addr_to_str.md
2016-07-25 17:33:17 +01:00
Evelyn
8d129e359e
Update mg_conn_addr_to_str.md
2016-07-25 17:33:03 +01:00
Evelyn
39aa56457b
Update mg_start_thread.md
2016-07-25 17:32:22 +01:00
Evelyn
8491d5da8b
Update mg_open.md
2016-07-25 17:31:57 +01:00
Evelyn
681196e2c8
Update mg_fopen.md
2016-07-25 17:31:43 +01:00
Evelyn
836ad5ebab
Update mg_stat.md
2016-07-25 17:31:28 +01:00
Evelyn
a3ea1eddfb
Update mg_base64_decode.md
2016-07-25 17:30:59 +01:00
Evelyn
a2c06ac6ba
Update mg_skip.md
2016-07-25 17:30:04 +01:00
Evelyn
a5c697fa2d
Update mg_coap_parse.md
2016-07-25 17:28:59 +01:00
Evelyn
be199b4fe9
Update mg_coap_send_ack.md
2016-07-25 17:28:05 +01:00
Evelyn
cc15320cfe
Update mg_coap_send_message.md
2016-07-25 17:27:50 +01:00
Evelyn
70bae59ec6
Update mg_coap_free_options.md
2016-07-25 17:27:31 +01:00
Evelyn
d4f3361805
Update mg_coap_add_option.md
2016-07-25 17:26:59 +01:00
Evelyn
332c855d40
Update mg_set_protocol_coap.md
2016-07-25 17:26:43 +01:00
Evelyn
01e3fa4d13
Update mg_mqtt_next.md
2016-07-25 17:26:26 +01:00
Evelyn
15a0f7a00a
Update mg_mqtt_broker.md
2016-07-25 17:26:05 +01:00
Evelyn
a751adba2a
Update mg_mqtt_broker_init.md
2016-07-25 17:25:21 +01:00
Evelyn
10eed010df
Update mg_mqtt_next_subscribe_topic.md
2016-07-25 17:25:00 +01:00
Evelyn
033ca26216
Update mg_mqtt_pong.md
2016-07-25 17:24:19 +01:00
Evelyn
40793cbdce
Update mg_mqtt_ping.md
2016-07-25 17:24:10 +01:00
Evelyn
48a1b2ec75
Update mg_mqtt_unsuback.md
2016-07-25 17:24:03 +01:00
Evelyn
1a55556c66
Update mg_mqtt_suback.md
2016-07-25 17:23:53 +01:00
Evelyn
3edd3ccbe6
Update mg_mqtt_pubcomp.md
2016-07-25 17:23:39 +01:00
Evelyn
194933e037
Update mg_mqtt_pubrel.md
2016-07-25 17:23:30 +01:00
Evelyn
38deaedaef
Update mg_mqtt_pubrec.md
2016-07-25 17:23:15 +01:00
Evelyn
fc3dd5900c
Update mg_mqtt_puback.md
2016-07-25 17:23:06 +01:00
Evelyn
b1213425d0
Update mg_mqtt_connack.md
2016-07-25 17:22:53 +01:00
Evelyn
40f0b450a8
Update mg_mqtt_disconnect.md
2016-07-25 17:22:43 +01:00
Evelyn
0bab3977a8
Update mg_mqtt_unsubscribe.md
2016-07-25 17:22:35 +01:00
Evelyn
2c46760b77
Update mg_mqtt_subscribe.md
2016-07-25 17:22:22 +01:00
Evelyn
878c9ae5ae
Update mg_mqtt_publish.md
2016-07-25 17:22:11 +01:00
Evelyn
c8553de09e
Update mg_send_mqtt_handshake_opt.md
2016-07-25 17:22:02 +01:00
Evelyn
6738858e11
Update mg_send_mqtt_handshake.md
2016-07-25 17:21:52 +01:00
Evelyn
61cd6ab86e
Update mg_set_protocol_mqtt.md
2016-07-25 17:21:43 +01:00
Evelyn
77704b669a
Update mg_dns_send_reply.md
2016-07-25 17:21:22 +01:00
Evelyn
770be613d7
Update mg_dns_reply_record.md
2016-07-25 17:20:33 +01:00
Evelyn
9790366449
Update mg_dns_create_reply.md
2016-07-25 17:19:44 +01:00
Evelyn
89f0a8c530
Update mg_set_protocol_dns.md
2016-07-25 17:18:19 +01:00
Evelyn
f72a06e25a
Update mg_dns_uncompress_name.md
2016-07-25 17:17:35 +01:00
Evelyn
8b975533e5
Update mg_dns_encode_record.md
2016-07-25 17:15:49 +01:00
Evelyn
b32f7a9b57
Update mg_dns_copy_questions.md
2016-07-25 17:14:48 +01:00
Evelyn
e1e0083897
Update mg_dns_insert_header.md
2016-07-25 17:14:27 +01:00
Evelyn
ca08ac0e3c
Update mg_send_dns_query.md
2016-07-25 17:14:13 +01:00
Evelyn
a5b85b4462
Update mg_dns_parse_record_data.md
2016-07-25 17:14:03 +01:00
Deomid Ryabkov
3feab3a16d
No-JS mode refactoring
...
Now JS is controlled with a make variable as opposed to a proproc define.
This allows skipping compiling a whole bunch of files when JS is
disabled, e.g. whole freezing step on ESP, or compiling v7.c on CC3200
which takes a while only to be discarded in its entirety later.
Var name is SJ_ENABLE_JS (note change from disable logic to enable to be in line with other stuff). Default is 1, meaning JS is enabled.
Also changed clubby knob in the same way: SJ_ENABLE_CLUBBY, default is 1 as well.
PUBLISHED_FROM=105277e9536e423d6363a51ff9acea9550a9c496
2016-07-25 15:06:00 +00:00
Evelyn
5d76e57b81
Update mg_set_protocol_http_websocket.md
2016-07-25 15:08:27 +01:00
Alexander Alashkin
9101cd0339
Use lld for ID
...
PUBLISHED_FROM=1246247fc29eb9a75b986ff7bb2d2350a52c03fc
2016-07-22 16:26:31 +00:00
Evelyn
4b2d3f5f5b
Update mg_http_check_digest_auth.md
2016-07-22 16:23:52 +01:00
Evelyn
482a471abb
Update mg_file_upload_handler.md
2016-07-22 16:23:16 +01:00
Evelyn
4d90bb0d02
Update mg_register_http_endpoint.md
2016-07-22 16:22:15 +01:00
Evelyn
202dfc18be
Update mg_serve_http.md
2016-07-22 16:21:47 +01:00
Evelyn
13f4742699
Update mg_connect_http_opt.md
2016-07-22 16:21:30 +01:00
Evelyn
33e769bd75
Update mg_connect_http.md
2016-07-22 16:20:58 +01:00
Evelyn
992f3000ef
Update mg_http_create_digest_auth_header.md
2016-07-22 16:20:04 +01:00
Evelyn
7ea4adae5e
Update mg_url_decode.md
2016-07-22 16:19:38 +01:00
Evelyn
5ed9991135
Update mg_get_http_var.md
2016-07-22 16:18:42 +01:00
Evelyn
dc2527c11f
Update mg_parse_multipart.md
2016-07-22 16:17:58 +01:00
Evelyn
bee95654f3
Update mg_http_parse_header.md
2016-07-22 16:17:08 +01:00
Evelyn
48296bb1cf
Update mg_get_http_header.md
2016-07-22 16:16:21 +01:00
Evelyn
1ee9735354
Update mg_parse_http.md
2016-07-22 16:16:00 +01:00
Evelyn
f8da303ca1
Update mg_printf_html_escape.md
2016-07-22 16:15:26 +01:00
Evelyn
6ae6ee9fd2
Update mg_send_head.md
2016-07-22 16:15:01 +01:00
Evelyn
a11eafc5b3
Update mg_send_response_line.md
2016-07-22 16:13:59 +01:00
Evelyn
efe53b57e4
Update mg_printf_http_chunk.md
2016-07-22 16:13:38 +01:00
Evelyn
e2330944d4
Update mg_send_http_chunk.md
2016-07-22 16:13:20 +01:00
Evelyn
1c18906db7
Update mg_printf_websocket_frame.md
2016-07-22 16:12:07 +01:00
Evelyn
873ceb48bd
Update mg_send_websocket_framev.md
2016-07-22 16:11:32 +01:00
Evelyn
a48b955d89
Update mg_send_websocket_frame.md
2016-07-22 16:11:11 +01:00
Evelyn
b92fae2bfb
Update mg_connect_ws_opt.md
2016-07-22 16:10:30 +01:00
Evelyn
156be17191
Update mg_connect_ws_opt.md
2016-07-22 16:10:12 +01:00
Evelyn
92290cfe81
Update mg_connect_ws.md
2016-07-22 16:09:47 +01:00
Evelyn
29725c97f1
Update mg_send_websocket_handshake2.md
2016-07-22 16:08:59 +01:00
Evelyn
56b9cd14cb
Update mg_send_websocket_handshake.md
2016-07-22 16:07:44 +01:00
Evelyn
3550cc8f48
Update mg_set_protocol_http_websocket.md
2016-07-22 16:03:38 +01:00
Deomid Ryabkov
6a3d01ee6b
Depend on v7.c properly
...
PUBLISHED_FROM=cf49d0d345e4a7607c535f9578b8ed4160f2fccd
2016-07-22 14:31:13 +00:00
Evelyn
27986213aa
Update mg_check_ip_acl.md
2016-07-22 15:23:11 +01:00
Evelyn
a2d07ef983
Update mg_check_ip_acl.md
2016-07-22 15:13:59 +01:00
Evelyn
3cf4e32d9f
Update mg_event_handler_t.md
2016-07-22 15:06:40 +01:00
Evelyn
a54584b716
Update mg_set_timer.md
2016-07-22 15:06:00 +01:00
Evelyn
51907e2642
Update mg_enable_javascript.md
2016-07-22 15:04:58 +01:00
Evelyn
5dd9d37ef2
Update mg_enable_multithreading.md
2016-07-22 15:04:01 +01:00
Evelyn
f900854e0d
Update mg_socketpair.md
2016-07-22 14:54:30 +01:00
Evelyn
d20e94f763
Update mg_printf.md
2016-07-22 14:53:54 +01:00
Evelyn
58de2ad2d7
Update mg_send.md
2016-07-22 14:53:28 +01:00
Evelyn
f30c7b75d0
Update mg_set_ssl.md
2016-07-22 14:52:31 +01:00
Evelyn
c5b8e55e12
Update mg_connect_opt.md
2016-07-22 14:48:10 +01:00
Evelyn
559874fce7
Update mg_connect.md
2016-07-22 14:41:40 +01:00
Evelyn
1875653b34
Update mg_bind_opt.md
2016-07-22 14:41:23 +01:00
Evelyn
6df770e72d
Update mg_bind.md
2016-07-22 14:39:26 +01:00
Evelyn
51d415c8dd
Update mg_add_sock_opt.md
2016-07-22 14:38:44 +01:00
Evelyn
63bf428c34
Update mg_add_sock.md
2016-07-22 14:37:21 +01:00
Evelyn
a5d2772082
Update mg_next.md
2016-07-22 14:36:53 +01:00
Evelyn
43c317ef4c
Update mg_broadcast.md
2016-07-22 14:36:13 +01:00
Evelyn
01ffdb69d0
Update mg_mgr_poll.md
2016-07-22 14:35:08 +01:00
Evelyn
a78f346ac6
Update mg_mgr_free.md
2016-07-22 14:34:04 +01:00
Evelyn
4ae88c859e
Update mg_mgr_init.md
2016-07-22 14:33:30 +01:00
Marko Mikulicic
e8a97f12d7
Skip C build if not changed - step 1
...
Note: this is only the first step; the C sources won't be built until
the second step is done.
The actual build takes about 1.3s on cloud2 which still runs the docker
containers and image layers on the very slow spinning disk. cloud3 has
docker mounted on the SSD disk; measured speedups of 20-30%
PUBLISHED_FROM=c5acef1d64ebc8dca8ed31f51685c8b3090c5767
2016-07-22 12:51:18 +00:00
Evelyn
06aabdefbe
Update mg_mgr_init.md
2016-07-22 13:48:35 +01:00
Deomid Ryabkov
15643f8e67
Use rand() instead of random(), it's more standard
...
Remove the random() stubs from the codebase
PUBLISHED_FROM=0f56ec7dffa0af1f5061a17d8801239d6f0e32a5
2016-07-22 11:06:16 +00:00
Deomid Ryabkov
b987df1974
Refactor sys_config and ro_vars
...
Use the same config mechanism for ro_vars as for sys_config, get rid of a bunch of custom code.
PUBLISHED_FROM=d2be76cb97090669dd6a21e95d0ba821eaa1a313
2016-07-21 16:35:59 +00:00
Deomid Ryabkov
cbe63d43df
Prevent repeated invocation of Clubby handler
...
PUBLISHED_FROM=de348f944de60d116d9d1f5d18e920991c811fa8
2016-07-21 15:22:36 +00:00
Marko Mikulicic
e91a7c9599
Reamalgam after .h edits
...
PUBLISHED_FROM=da1faa9b46cd0ff22dcba6d324b5847c4a0d42d8
2016-07-21 15:06:41 +00:00
Sergey Lyubka
3054952a5e
Add %T to the API ref
...
PUBLISHED_FROM=f6679ea960b3aa0bc9142515548835ee0f78af67
2016-07-21 14:36:12 +00:00
Artem Bulavin
3244df9cd1
Added UI response on authentication, fixed non-clickable buttons
...
PUBLISHED_FROM=a4666982707fcc96cfe6e75903cab9ac225351e4
2016-07-21 14:07:13 +00:00
Dmitry Frank
1f75081f6e
Add build option V7_NO_COMPILER
...
Which disables tokenizer, parser, AST, and compiler. On ESP8266, it
frees 21K of ROM.
PUBLISHED_FROM=ff4c53ace6b9056c595b9e12ef3453330d659775
2016-07-21 13:51:54 +00:00
Marko Mikulicic
2c83a50a8a
Document %.*Q
...
PUBLISHED_FROM=5dc567f8978d5414835f7a2338a78ae9eb683f55
2016-07-21 13:38:48 +00:00
Deomid Ryabkov
1c80fc28ee
Destroy net interface before invoking MG_EV_CLOSE
...
So that socket/connection/whatever is really closed by the time user code is run.
Speed up test_http_endpoints by using appropriate wait conditions.
PUBLISHED_FROM=5fc8a772cc2a9c3b8c9dbddde9f99b41ce4d334c
2016-07-20 14:52:12 +00:00
Sergey Lyubka
810eab9a58
Add SSI doc string
...
PUBLISHED_FROM=73540bf103672916eae35959d5e992a3616a6604
2016-07-20 11:07:37 +00:00
Deomid Ryabkov
256aa0296d
Fix compilation for non-MGIOT projects
...
That don't have CONSOLE_UART defined
PUBLISHED_FROM=7930bb639baf81cff8ce53c6f81e9739668aae08
2016-07-15 13:34:59 +00:00
Deomid Ryabkov
2eb506c5e0
Make console output in SLFS adapter overrideable
...
PUBLISHED_FROM=455184fbe730cf62340046c73ffd8ae4b0e0a2c1
2016-07-15 13:19:51 +00:00
Deomid Ryabkov
9f78a2902b
Fix SSL stuff
...
Do not use CA bundle on CC3200, it doesn't work.
Make ssl_ca_cert = "*" mean "no verification" and make sure
SSL is enabled on the connection when it's required, even w/o verification.
PUBLISHED_FROM=c8710a5d24ecfe174ef45b7f81c114d41faf5c12
2016-07-14 13:19:55 +00:00
Deomid Ryabkov
613ae4ee34
Fix led toggline in CC3200 sensor demo
...
PUBLISHED_FROM=10369c7903f3c9433e8c9f6f9725f014aed5768d
2016-07-13 20:04:48 +00:00
Deomid Ryabkov
ab208b71c4
Do not define rename() when compiling with TI libc
...
PUBLISHED_FROM=e9878fc5d55b0b2da854573a7a84e8e14e2f301d
2016-07-13 19:49:47 +00:00
Alexander Alashkin
68dd8d277d
Get rid of ubjson
...
PUBLISHED_FROM=e6f1dca95ec7ed3795adf493cca9cdcdc07381f5
2016-07-12 20:49:59 +00:00
Deomid Ryabkov
36a1927915
Mongoose 6.5
...
PUBLISHED_FROM=d151a5a0bf34b135a7a2c879f5a6bd5676af275a
2016-07-12 13:20:04 +00:00
Deomid Ryabkov
68437de416
Fix handling of socket write errors
...
PUBLISHED_FROM=7264edfb3b8e4e37f15f2993f479dfe0a9550b1d
2016-07-12 11:04:59 +00:00
Deomid Ryabkov
459cd1b095
Properly override rename on Newlib
...
Newlib implements rename as _link and _unlink, not _rename.
There is no _link on either SLFS or SPIFFS, so override rename directly.
PUBLISHED_FROM=ebb54664f8a3c8664ecab1fac021bef286a0e230
2016-07-11 16:49:56 +00:00
rojer
6f7f774080
Merge pull request #678 from tbfly/master
...
!): Fix for compile error in Android.
2016-07-08 16:51:53 +01:00
Deomid Ryabkov
fc0bf1953a
Fix and improve sorting on Mongoose index pages
...
Remember sorting settings in url fragment, reverse order on repeated
header click.
PUBLISHED_FROM=faa033eddc86d0aafc12a86aea4145646ea2c89c
2016-07-07 15:49:59 +00:00
Deomid Ryabkov
c907e6c5fb
Commonize mg_str
...
PUBLISHED_FROM=0e6a1c1a2356c1e12580e498c64ba7be367f601c
2016-07-06 23:49:57 +00:00
Deomid Ryabkov
29b3950ee7
Handle SimpleLink restarts in Mongoose
...
SimpleLink restart invalidates all sockets.
Listeners are restarted, outgoing connections are closed.
PUBLISHED_FROM=15567dfb822bffbd44d39ba0e69a7ac64fd7a1c8
2016-07-06 13:56:50 +00:00
Deomid Ryabkov
0e0c6b8357
Fix off-by one
...
cesanta/mongoose#677
PUBLISHED_FROM=4b62bdefac08fa3bedf511dc4d6f7463af3325fc
2016-07-06 13:56:48 +00:00
Sergey Lyubka
6f17f3e2c2
Add timers example to mongoose
...
PUBLISHED_FROM=1599cf1d06c8f177918cbcf574c28c9e93d56d39
2016-07-06 13:56:47 +00:00
Lu ZhiHe
df107a272e
!): Fix for compile error in Android.
2016-07-06 14:50:08 +08:00
Sergey Lyubka
b7a0748312
Ditch JSON-RPC from mongoose
...
PUBLISHED_FROM=89b978c02be2f10eb930ff13673d45249fd67763
2016-07-01 11:35:18 +00:00
Alexander Alashkin
421b420a0c
Fix mp+keepalive combination
...
PUBLISHED_FROM=dbfcfa91ad85d6447726d0d7e9fe15709f4c4646
2016-06-29 23:12:25 +03:00
Sergey Lyubka
a478dc5935
Remove old mongoose logo
...
PUBLISHED_FROM=2dd69a5db6ca56215726b563e1551c683f21a768
2016-06-28 16:05:04 +00:00
Deomid Ryabkov
4d65cb1c0f
Make Mongoose's SHA1 algo pluggable
...
PUBLISHED_FROM=bdaeed6628ffb544e31d7fd59475f3a2e78c2967
2016-06-28 10:05:31 +00:00
Deomid Ryabkov
ced823cd95
Add a radio button to teh settins_panel example
...
PUBLISHED_FROM=2daba7380508df24d909f922c5009286b4d8e7cf
2016-06-28 09:27:44 +00:00
Deomid Ryabkov
79325bd219
Lower verbosity of a message
...
PUBLISHED_FROM=3b4cbc497c4a0eee2d46f561c0717415ca85c242
2016-06-27 10:50:32 +00:00
Deomid Ryabkov
5a19135c35
Ignore SL_ENOPROTOOPT w/ DOMAIN_NAME_VERIFICATION
...
Domain name verification feature was added in NWP service pack
(reported version: 2.6.0.5). Older versions do not support it.
There's not much we can do about it, so we just ignore the error.
PUBLISHED_FROM=9495250de1945aae4f2bdf7dddcd7bf1248e24c2
2016-06-24 13:35:33 +00:00
Deomid Ryabkov
290e5f83d4
Switch to TI compiler + UMM malloc for CC3200
...
Frees up ~19KB RAM:
Before:
Code size: 210616
RAM at startup: 48636 total, 34472 free
RAM after sys init: 15024 free
After:
Code size: 195784
RAM at startup: 65096 total, 52980 free
RAM after sys init: 34116 free
PUBLISHED_FROM=32a9cb8fb6d75cf428bc3548dd5684ce6e52c508
2016-06-22 19:05:07 +00:00
Deomid Ryabkov
b535cb319a
Ensure asprintf'd string is NUL-terminated
...
PUBLISHED_FROM=b4062780d22be37acdbecd86e5951245e2908ff8
2016-06-22 16:20:15 +00:00
Deomid Ryabkov
e3a9c6afb4
Mass-fix header guards
...
PUBLISHED_FROM=7e5fc4da88069a6193d911660f522b43ed1a5d40
2016-06-20 10:50:01 +00:00
rojer
3f1a33e4b4
Handle errors better in listening code for CC3200
...
PUBLISHED_FROM=9d4ab680fa672690735b827f56e135330f72beed
2016-06-15 13:35:00 +00:00
rojer
441eaa7f6c
Handle errors better in listening code for CC3200
...
PUBLISHED_FROM=9d4ab680fa672690735b827f56e135330f72beed
2016-06-15 14:32:44 +01:00
rojer
632153a1b4
Fix FNC CLI logging
...
PUBLISHED_FROM=171b25e15cad2c87eb40a8123fe8ea07e34c41f7
2016-06-15 14:32:36 +01:00
Sergey Lyubka
f9d0ad9dc3
Do not leak in mg_connect_ws_opt()
...
PUBLISHED_FROM=e6de3b3747a1cd79c3930c2640fadc8356ffed61
2016-06-15 12:05:00 +00:00
rojer
a67323fc12
Change main code image filename in CC3200 bundles
...
/sys/mcuimg.bin is just another file on SLFS, no reason to give it
special treatment. Preserve backward compatibility with old bundles:
translate sys_mcuimg.bin -> /sys/mcuimg.bin
PUBLISHED_FROM=be89a3d9785046f09279fef9e2bb6604eeaa576e
2016-06-13 15:04:54 +00:00
rojer
1daa5e69b1
Add timestamp to LB log
...
PUBLISHED_FROM=61b87fcee909241d5bdf2ba7407003c0c3cfbd72
2016-06-13 12:34:30 +00:00
Sergey Lyubka
1718490982
Simplify Contributions section in readmes
...
PUBLISHED_FROM=3a14579dabba4088e54350945dc17fd6ebb0d700
2016-06-10 12:34:41 +00:00
rojer
1d4f97bb4c
SimpleLink net_if impl w/ async support; MG_F_SSL
...
SimpleLink sockets are suffciently different from BSD that all the
ifdefs have become too messy to warrant a separate net_if
implementation. As part of this we also implement proper async connect
support.
Added MG_F_SSL to identify SSL-enabled connections in a generic way,
since SSL state can be different depending on the implementation.
PUBLISHED_FROM=9cdb8c880b90683e4a26b972cf439d47d6f60917
2016-06-09 17:49:53 +00:00
rojer
183fc7ced9
clang-format *ALL* the things!
...
PUBLISHED_FROM=faf0beb7545eb426c941fc366b6f87667723eb4c
2016-06-09 11:19:57 +00:00
rojer
dcf1cedec9
SimpleLink SSL support; split cert and key opts
...
SL requires cert and key to be separate files in DER format.
Date verification is disabled for now.
PUBLISHED_FROM=7d76150ed356140728a1e5fd82d8a0456347b7dc
2016-06-09 11:04:56 +00:00
Marko Mikulicic
845e608280
Clean docs while publishing
...
PUBLISHED_FROM=274a19d6988002fb029e614bffea4083002324a1
2016-06-07 20:40:26 +00:00
rojer
d6ecfe7f24
Make error message more clear
...
PUBLISHED_FROM=f8e052f1a256f671de133135901b509d39608a82
2016-06-07 20:40:25 +00:00
rojer
06b6bf6185
Propagate nc->err to err on CC3200
...
PUBLISHED_FROM=db7254b5bf25961a700cbce954ef02d41b176500
2016-06-07 16:43:24 +02:00
rojer
04a38b446f
Fix compilation with MG_DISABLE_HTTP_WEBSOCKET
...
Make restful_server and netcat examples compilation tests:
- netcat doesn't use HTTP, compile it with MG_DISABLE_HTTP
- restful_server doesn't use websocket, compile it with
MG_DISABLE_HTTP_WEBSOCKET
h/t @labourcier, cesanta/mongoose#665
PUBLISHED_FROM=4494ac3cbd81e8314beb557ab301b4b44c4afb89
2016-06-07 16:43:24 +02:00
Deomid Ryabkov
dfde5785a6
Use fw_meta script from the build image
...
PUBLISHED_FROM=996721b6d28ee25fcfcb514d716552c4afa238e1
2016-06-02 22:28:48 +01:00
Deomid Ryabkov
1a61455eef
Magic numbers are magic
...
PUBLISHED_FROM=cec68bab53fc81b4085b81fba0c52e0c42b09f0f
2016-05-31 15:36:25 +01:00
Sergey Lyubka
9f2ecb0144
Minor rephrasing in Mongoose overview doc
...
PUBLISHED_FROM=1562c629ce08004a5243a61eed79e1c3161f1268
2016-05-30 11:17:41 +01:00
Sergey Lyubka
3265060dc8
Add Mongoose overview doc section
...
PUBLISHED_FROM=9fb2260cd76ae30b51db02053f4d2debf4cdf900
2016-05-30 11:17:40 +01:00
Alexander Alashkin
58b8acd68a
Check malloc results, Contribute to cesanta/dev#3726
...
PUBLISHED_FROM=309be4a56754250406dd48f1abd30b68776f5c7e
2016-05-28 19:06:09 +01:00
Sergey Lyubka
3ec09ceedf
Reference media files in doc directly
...
PUBLISHED_FROM=da22d5ea0aa366d7cb9bba838f8e173ae0178f5e
2016-05-28 19:00:05 +01:00
Sergey Lyubka
1ce4aa81ee
Simplify doc generation infra
...
PUBLISHED_FROM=80e77fda1c358294f251ca77d3dd64e8ca9160e5
2016-05-28 19:00:04 +01:00
Dmitry Frank
177e829f4b
Add v7 arg to _mk_ and _get_ functions
...
`v7_mk_undefined()` and `v7_mk_null()` are left unchanged, but marked
deprecated, and `V7_UNDEFINED` and `V7_NULL` are public now.
Xtensa code size with instrumentation: 590400 -> 590432, i.e. 32 bytes.
Xtensa code size without instrumentation: 530848 -> 531760, i.e. 912
bytes.
As objdump reveals, inside v7.c, `v7_mk_number` and others are inlined,
so the extra v7 argument is eliminated; outside of v7.c it's obviously
not inlined.
----
Also, v7_get_int() is added, which currently just casts stored double
value to int
PUBLISHED_FROM=e984b7308faf2380b3de388f238e0fae0aea545d
2016-05-28 18:59:27 +01:00
Marko Mikulicic
b5b672ec89
Implement MQTT connect username/password
...
PUBLISHED_FROM=be604dc6b3650c78daaa02ea4db8cd067069b5e1
2016-05-18 12:07:20 +03:00
Deomid Ryabkov
d41419c8d3
Update the CC3200 build image
...
* Add TI compiler
* Remove cc3200prog, we don't use it
* Update to Xenial (new Ubuntu stable release).
It has ARM toolchain in the repos too, which is nice (no more PPA).
PUBLISHED_FROM=57d6650b438c5665023346abefbc953263e3f87b
2016-05-16 13:57:14 +03:00
Deomid Ryabkov
5e4d9dc17a
Restore REMOTE_ADDR and SERVER_PORT CGI env vars
...
cesanta/mongoose#573
PUBLISHED_FROM=687722f0dbc3c49e6691e01e0d0b1ab2d181bd2f
2016-05-16 13:57:14 +03:00
Sergey Lyubka
4ac688e560
Make mg_http_check_digest_auth() public
...
PUBLISHED_FROM=f00b94cabc2a89d27d5bc78d68d67db0930811b4
2016-05-16 13:57:13 +03:00
Deomid Ryabkov
5d0a5cfe72
Add CPP guards to net_if.h
...
cesanta/mongoose#653
PUBLISHED_FROM=a676dbce6d04b78ca316a4601e9cbb676ecc88d2
2016-05-15 22:07:14 +03:00
Dmitry Frank
d4b81bb911
Refactor v7_to_number -> v7_get_double and others
...
We wanted to avoid `to` since it implies some kind of conversion, but
these functions merely return underlying C entity.
Public API changes:
- `v7_to_number()` -> `v7_get_double()`
- `v7_to_boolean()` -> `v7_get_bool()`
- `v7_to_cstring()` -> `v7_get_cstring()`
- `v7_get_string_data()` -> `v7_get_string()`
- `v7_to_foreign()` -> `v7_get_ptr()`
Private API changes:
- `v7_to_pointer()` -> `get_ptr()`
- `v7_to_generic_object()` -> `get_generic_object_struct()`
- `v7_to_object()` -> `get_object_struct()`
- `to_js_function()` -> `get_js_function_struct()`
- `to_cfunction()` -> `get_cfunction_ptr()`
PUBLISHED_FROM=036ac18d442c1128106292ad3e7a818b177eec6a
2016-05-15 22:07:13 +03:00
Dmitry Frank
23122b327c
Remove old docs, rename docs_new to docs
...
It would be probably good idea to also remove tools/docgen.py and
asciidoc.mk, but asciidoc.mk is still mentioned under `cloud/doc`, which
may contain some useful info which we'll need at least to review before
removing.
PUBLISHED_FROM=faf454d4c52a2f07ea8ac084cf0bd11a0c9c9b3b
2016-05-15 22:07:04 +03:00
Marko Mikulicic
f443c64341
Temporarily disable appdash from docker-compose
...
Until I read the doc and find how to limit the retention,
otherwise it just eats all my ram and cpu and things start to fall
apart.
PUBLISHED_FROM=eb33fb44736f07b992270689217aca4af70513ff
2016-05-15 22:07:04 +03:00
Marko Mikulicic
c84af7d1e2
Use stdint.h on MSVC >= 2012
...
Closes cesanta/mongoose#659
PUBLISHED_FROM=8a2e029715e5e7f9a2c75eea9b55270c51b273ef
2016-05-11 19:30:38 +02:00
Sergey Lyubka
19a28b3c81
Update cs_md5 description according to reality
...
PUBLISHED_FROM=b9c776bac4c8f2456c71b33641601fb38b30347e
2016-05-03 14:17:15 +02:00
Sergey Lyubka
69944c1d3a
Add cookie auth example to Mongoose
...
PUBLISHED_FROM=88bc5059504cfedd078cab277a6d68d1e583fba1
2016-05-03 13:13:08 +01:00
Deomid Ryabkov
81bf4921d4
Compile mg-iot-cc3200 with ARM compiler, step 1
...
Code size: 167144 vs 199440
More changes to come (console support, warnings cleanup).
PUBLISHED_FROM=cbc06efcb354c240654518b493496a69293ebc2a
2016-05-03 13:13:04 +01:00
Deomid Ryabkov
91f6eedb24
Remove the definition of UNUSED
...
It's barely used in our code and conflicts with ont in SimpleLink SDK
PUBLISHED_FROM=ef0fc468d32c9a8e0df888c2de084c08ebe92ea7
2016-05-03 13:13:03 +01:00
Alexander Alashkin
dae150a3a5
Split HTTP HWTest
...
PUBLISHED_FROM=69dc2fadfa0aad32290bd676331b57d0b5595c60
2016-05-03 13:13:00 +01:00
Deomid Ryabkov
8a81dce0c1
Handle orderly shutdown of remote sockets
...
When getting a EOF from remote, do not close immediately, drain the send
buffer.
PUBLISHED_FROM=e06cdaa2abc0d67d5d88bf3e72d887590a7aeccf
2016-04-29 15:16:46 +01:00
Deomid Ryabkov
203d4a79e2
Improved handling of sockets > FD_SETSIZE
...
PUBLISHED_FROM=0bf765bf2248d43514643f335592a77d5875618e
2016-04-29 15:16:45 +01:00
Deomid Ryabkov
b04d47c3a9
Update README for CC3200 examples
...
PUBLISHED_FROM=53ce21efbb0e769089293b1aa11d2b2f3136161d
2016-04-28 13:51:20 +01:00
Marko Mikulicic
8fcd1906a2
Minor cleanup after line numbers feature
...
PUBLISHED_FROM=302ebfe7d711602e75c8db4bc843b0d52a382542
2016-04-28 13:51:19 +01:00
Marko Mikulicic
9939212379
Add c linkage guard to simplelink header
...
Closes cesanta/mongoose#649
PUBLISHED_FROM=deb804a1257f8a6ecc4bf0f877b70c32f1d39e43
2016-04-28 12:19:27 +02:00
Deomid Ryabkov
38752f1327
Add C decls to TI platform headers
...
h/t @kzyapkov, cesanta/mongoose#649
PUBLISHED_FROM=c21158c9476b9a4abd281ec99c7fa62ea5e708b8
2016-04-28 11:59:45 +02:00
Alexander Alashkin
6b51ec3371
Reaggange HWTests, move port(s) number to cfg
...
PUBLISHED_FROM=274bff744d9c3d12285f026d21c1c776946fae20
2016-04-28 11:59:44 +02:00
Deomid Ryabkov
5714056f9f
Update websocket_chat, add websocket_chat_client
...
A number of people asked for a WebSocket client example,
websocket_chat_client is one.
PUBLISHED_FROM=c33e758c0a36a0aa919bdb6ef37ed1478d6b29e2
2016-04-27 17:48:40 +01:00
Deomid Ryabkov
21665e367c
Auto-disable CGI if socketpair is disabled
...
h/t @danielinux, cesanta/mongoose#652
PUBLISHED_FROM=68c9a86280d63d01b6e4cb72aa6cfd766e4d4be3
2016-04-26 21:02:18 +01:00
Deomid Ryabkov
dff844b40a
Fix Mongoose forum link
...
It used to link to the SJS forum category, but should point to Mongoose
category instead.
PUBLISHED_FROM=288e1bf1969c46619360dcd8dfd039cdcbc7a59c
2016-04-26 13:30:09 +01:00
Deomid Ryabkov
54403dfcbc
cesanta/iot -> cesanta/mongoose-iot
...
PUBLISHED_FROM=d73a6fff78a063ffe5aaafe841e89e87e37f85d7
2016-04-26 13:30:05 +01:00
Deomid Ryabkov
61672c7805
Properly handle keep-alive connections
...
HTTP/1.1 connections are keep-alive by default,
HTTP/1.0 are KA only if explicitly requested.
PUBLISHED_FROM=cb2070c2d4e4be6beeab4ae5914b8a01b04bc0cb
2016-04-26 13:30:03 +01:00
Deomid Ryabkov
69bb96113b
Add a bit of branding to our responses
...
Server header and directory index footer
PUBLISHED_FROM=85ced96f70a0241a2970be7613994a3af7238ba9
2016-04-26 13:30:03 +01:00
Marko Mikulicic
51328efb22
Fix srcfs after rename of SJS to IOT
...
PUBLISHED_FROM=cf8cb1dd2319eafdf6b45a1299e4b12d4808a17c
2016-04-26 13:30:00 +01:00
Evelyn
f159666ae3
Update README.md
2016-04-26 11:17:11 +01:00
Deomid Ryabkov
7fdb50807c
Resolve *dir function decl conflict on Win32
...
We used to declare these functions twice: in plaform_windows.h
and cs_dirent.h. Removed decl from platform_windows.h and moved
cs_dirent.h to be privately included by mongoose.c
PUBLISHED_FROM=ab62370409e29e3c62a8b8eab0f75795b5d7ed0f
2016-04-22 16:19:18 +01:00
Marko Mikulicic
890c7b42dc
Bulk rename of SJS to FW
...
PUBLISHED_FROM=03d2fa0b6bf762d09bf5e837cf31e2047bb6eefd
2016-04-22 16:19:17 +01:00
Deomid Ryabkov
55398684cc
Ignore "non-errors" when sending
...
h/t @f00bard
PUBLISHED_FROM=5deab05502797bb6393e8dbbd5684aba4a72a799
2016-04-22 14:23:49 +01:00
Maxim Ignatenko
c85edc38aa
Switch to MySQL everywhere
...
PUBLISHED_FROM=1ab69ecfbd03ad3eef82ef785474744e5b5b2e4d
2016-04-22 14:23:40 +01:00
Deomid Ryabkov
fa368b56ba
Enable compiler optimizations on TI CCS examples
...
PUBLISHED_FROM=43169a199299bfe4ce349ad9d13f29d77d39ff3b
2016-04-22 12:32:43 +02:00
Deomid Ryabkov
41d7520585
Suppress a TI compiler warning
...
PUBLISHED_FROM=63810a48861c6e2b3e3eb8bab981927f6f85dd40
2016-04-22 12:32:32 +02:00
Alexander Alashkin
0f23618324
Disable http test
...
PUBLISHED_FROM=688b64acb8c87e3cd78c79ee2b7667378d697cd8
2016-04-22 12:32:22 +02:00
Deomid Ryabkov
bf9a2b45ef
SLFS file size hint
...
PUBLISHED_FROM=532200881406349585612ea5d59aaa323789a688
2016-04-19 17:44:26 +01:00
Deomid Ryabkov
063c017bb7
Update MG_sensor_demo description
...
PUBLISHED_FROM=7f9ce495d5de71859ad71f2b44db37fa66736835
2016-04-19 17:44:24 +01:00
Deomid Ryabkov
7519a3765b
Minot tweaks to MG_sensor_demo
...
Fix WS connect address
Only update graphs when connected
PUBLISHED_FROM=3a3c4e2d21595f48c811b45fb391f7709dc0bcf7
2016-04-19 13:16:28 +01:00
Alexander Alashkin
56c687b39b
Check for null in DNS handler
...
PUBLISHED_FROM=e8b719d491688032e6395b75d5859ffad7d7ea23
2016-04-19 12:27:49 +01:00
Deomid Ryabkov
083d398631
Only copy questions when creating reply
...
In particular, there may be additional records which should not be copied
PUBLISHED_FROM=6b348868cb62d7b3fc4df0e935ffd5a31a314a08
2016-04-19 12:27:48 +01:00
Sergey Lyubka
466183113f
CC3200 Mongoose example fancy graphs
...
PUBLISHED_FROM=bb28c3e27228d7c1c95899445b7f450636c34949
2016-04-19 12:27:48 +01:00
Deomid Ryabkov
923c432977
Add C++ externs to common headers
...
Closes cesanta/mongoose#649
PUBLISHED_FROM=7d331576ba8f75a7a4ebf833e056dc22f6eda811
2016-04-18 16:06:58 +01:00
Deomid Ryabkov
e433ba8d7b
Clarify debug message a bit
...
PUBLISHED_FROM=c4f72d1b47508cdc560ec345064ecdfc3b529f5a
2016-04-18 16:06:55 +01:00
Deomid Ryabkov
848c884fff
Make sure NWP is stopped before sl_Start
...
In SDK 1.2.0 TI decided to stop resetting NWP before sl_Start, which in
practice means that sl_start will hang on subsequent runs after the first.
See this post for details and suggested solution:
https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/p/499123/1806610#1806610
However, since they don't provide OS_debug variant of simplelink.a and
adding another project dependency will complicate our demo even more,
we just take the required bit of code.
PUBLISHED_FROM=c729c0fcbb240aa90a716edd43888de5881d6731
2016-04-16 10:32:42 +01:00
Marko Mikulicic
0769bbb7ff
Fix mingw warnings
...
PUBLISHED_FROM=a7c1ec51999b29758d2983900add70069927b27b
2016-04-16 10:32:40 +01:00
Marko Mikulicic
7054b09584
Use invalid socket
...
Socket type is unsigned int on windows.
PUBLISHED_FROM=fb406d7542ea4d7a529f87b8a3a5a8ba27f5f934
2016-04-15 14:48:25 +01:00
Deomid Ryabkov
2633628ad1
Add MG_hello for CC3200; upload file form
...
Mg_hello is a simpler example for CC3200
File upload form is served on / if index.html does not exist
and always available on /upload
PUBLISHED_FROM=f844245b26febc4b952e7c52ee4519ddb542072d
2016-04-15 14:48:24 +01:00
Marko Mikulicic
e5ae1c2ea3
Fix SJS websocket constructor
...
Closes cesanta/smart.js#119
PUBLISHED_FROM=b912e99d457dbf21b3f8ccc6a51d0990cc3db833
2016-04-15 14:48:17 +01:00
Marko Mikulicic
d2844580a1
Fix mongoose examples krypton build
...
And add the build to the CI.
PUBLISHED_FROM=b9becbc113e569d7a0e6dcdfd2c34ce704a681bd
2016-04-13 19:19:31 +02:00
Sergey Lyubka
42f5a3e2f7
Use cesanta GA code
...
PUBLISHED_FROM=197c9c874ea950aae8f3fd475d2a3ff836d0caab
2016-04-13 19:19:27 +02:00
Deomid Ryabkov
8a62005a2d
Use _stati64 on mingw64 in 32-bit mode
...
cesanta/mongoose#644 , h/t @spuschhof
PUBLISHED_FROM=2df259156e347b941a75008ce07ea4fc2584dc2a
2016-04-13 12:33:52 +01:00
Sergey Lyubka
616f54c4a2
Better marketing teaser
...
PUBLISHED_FROM=68b1498bba92e6c23e8d8b2628d22b3bf0524be6
2016-04-13 12:33:50 +01:00
Deomid Ryabkov
2140e5992a
Mongoose 6.4
...
PUBLISHED_FROM=5585ece71e9032b1357ea47fa8de626c52405650
2016-04-12 14:21:12 +01:00
Sergey Lyubka
cd38c62430
Fix docs link. Better description
...
PUBLISHED_FROM=e8dbca39825b461ee671c85540fab1100ee5e4d1
2016-04-12 14:21:08 +01:00
Deomid Ryabkov
67ac6ae191
Fix parsing truncated DNS records
...
PUBLISHED_FROM=8b849b5dfd72bb3055df34113ec74e47c620af2e
2016-04-12 14:21:06 +01:00
Alexander Alashkin
7addae0fdd
Unbreak master again
...
PUBLISHED_FROM=192978ebdb0df77c32af8675118c0067f093c0e7
2016-04-12 14:21:05 +01:00
Sergey Lyubka
a3e8ba5506
Direct link to Mongoose binary
...
PUBLISHED_FROM=b0dc34c2ee8c9d3dbdabfaac2eb5ce28b3be9f13
2016-04-12 12:37:05 +01:00
Marko Mikulicic
6a302c38ab
Fix ourci master port
...
It conflicted with Workspace service
PUBLISHED_FROM=bd891e246bfa4b8f47bcbc6c9f7e4401f5f6e052
2016-04-12 12:36:58 +01:00
Deomid Ryabkov
129bb6b1c3
Add MSP432 lib and example
...
PUBLISHED_FROM=57ff02457269938feae805f2972b96b15931d41a
2016-04-12 11:18:37 +01:00
Deomid Ryabkov
c8b09c2238
Move mg_task to SimpleLink platform code
...
It'll be used for MSP432 as well
PUBLISHED_FROM=cb5dcda4cc5d9edc6dea71540d51ab00e252186e
2016-04-12 11:18:37 +01:00
Deomid Ryabkov
76364af243
Fix comment format in http.h
...
Functions decl must follow comment to be correctly documented
PUBLISHED_FROM=6ab035cda470c2c23240db4435abd8c241c71b0d
2016-04-11 10:56:06 +01:00
Alexander Alashkin
0efa8f9d3f
Add UDP echo server Mongoose example
...
PUBLISHED_FROM=c0ea72104da23a97c81c9f671c9b91d9df2541d1
2016-04-11 09:43:08 +01:00
Deomid Ryabkov
f36b452f00
MSP432 port, step 1
...
Doesn't actually work yet, but bits common with CC3200 (SimpleLink) are
moved out.
PUBLISHED_FROM=9d9a51cf7d8262694199c46bfd0ac514fc88889e
2016-04-11 09:43:07 +01:00
Dmitry Frank
0be132f3b5
Improve Android app
...
Now it can talk to backend as well to the demo device: `LCD.AddLine`,
`LED.Set`, `LED.Get`.
PUBLISHED_FROM=40f493cdabe6ad23a6f26a4563366bebb5071529
2016-04-11 09:43:04 +01:00
Deomid Ryabkov
d31d8a764b
Disable SL_INC_STD_BSD_API_NAMING in SimpleLink
...
And only define bits that we need afterwards.
PUBLISHED_FROM=b7e945dd16c7999753104428e29b5f0c1c9e666f
2016-04-08 10:56:18 +02:00
Deomid Ryabkov
68b29b683d
Minor tweak to ESP8266 example
...
PUBLISHED_FROM=8fdac6c95ae29363fa0a8e519f926742531b9d00
2016-04-08 10:56:16 +02:00
Deomid Ryabkov
eee293518c
Add a README for CCS projects
...
PUBLISHED_FROM=3ccf4c043056677cd9c8fbd19e5e36961281af8c
2016-04-08 10:56:13 +02:00
Deomid Ryabkov
c4adc86f5e
Add CC3200 sensor demo CCS project
...
PUBLISHED_FROM=36fb960c2fe3d33ccdb8dbfbe4df6df24a9b1df9
2016-04-08 10:56:12 +02:00
Deomid Ryabkov
3ebda76def
Add a CC3200 CCS Mongoose library project
...
PUBLISHED_FROM=27c466d4b289c1839ecd192e40a661728b546fa2
2016-04-08 10:56:11 +02:00
Deomid Ryabkov
7564623d46
Restore function of CS_DISABLE_STDIO
...
PUBLISHED_FROM=99c1c7a8cfcb84d283e4ed712f4da6879c41209c
2016-04-08 10:56:10 +02:00
Alexander Alashkin
dc6b44571f
Remove extra function from C-clubby
...
PUBLISHED_FROM=db9afcafce26d2048b1a5ebc90bcd1c06f555ed8
2016-04-08 10:56:07 +02:00
Deomid Ryabkov
ccd0167e40
Switch to CC3200 SDK 1.2.0
...
PUBLISHED_FROM=857459178e3af50fa6626379d1f71a725cd3b68b
2016-04-06 08:25:50 +01:00
Alexander Alashkin
7dd1004b93
Fix mg examples
...
PUBLISHED_FROM=dec3ce8a13ff588637601cdb03dbe6196468ba4a
2016-04-06 08:25:50 +01:00
Deomid Ryabkov
19dd02acfd
Remove epoll() support
...
1) It's broken; most likely in more ways than one
2) It doesn't make much sense as long as we maintain MG_EV_POLL and
have to traverse the list of connections anyway.
3) In Mongoose, simplicity trumps performance.
PUBLISHED_FROM=61d2aeee4f74678bc186063c0977e720a8a414cb
2016-04-05 23:50:24 +01:00
Deomid Ryabkov
5e31914dc1
Fix AP configuration on CC3200
...
Factor out MG task for clarity and ease of reuse.
PUBLISHED_FROM=18f1aedd3c227b43a49f59a67076905917dd6cab
2016-04-05 23:50:23 +01:00
Deomid Ryabkov
8296e0f485
Do not allocate connection state for MG timers
...
PUBLISHED_FROM=c7cd64eea0ab7553450c452ac30bdd7a5032cbbe
2016-04-05 23:50:19 +01:00
Alexander Alashkin
afa5e3f469
Enable SSL in SJ/WS
...
PUBLISHED_FROM=d7b3e083c7a7d5095c8e61bb6183ae7e6e068858
2016-04-05 23:50:16 +01:00
Alexander Alashkin
f57fcbcb50
Implement connect_ws_opt and connect_http_opt
...
PUBLISHED_FROM=dcec33211d4c7933bd0a78fdb572556df93e51d2
2016-04-05 23:50:12 +01:00
Alexander Alashkin
ce53e9dd2b
Fix multipart handling for small files
...
PUBLISHED_FROM=b43cb8ca061d50ea8c0b6b20287b9382a4a6be22
2016-04-05 23:50:09 +01:00
Alexander Alashkin
55c2634416
Check listener when reusing UDP conn. Closes cesanta/dev#3139
...
PUBLISHED_FROM=f03f8fad30faee62f290d37b0b909ef49f301b80
2016-04-05 23:50:08 +01:00
Deomid Ryabkov
fe0d340c03
Tighten Mongoose footprint defaults
...
Explicitly loosen them on the "big" platforms.
PUBLISHED_FROM=b4786428402c5da55738d3f7085ab12acf884e74
2016-04-05 23:50:07 +01:00
Alexander Alashkin
5a02c9dbed
Fix create and close conn for UDP. Closes cesanta/dev#3162
...
PUBLISHED_FROM=071fb54d90750143751c1badc52757f0ba90bdb5
2016-04-05 23:50:05 +01:00
Marko Mikulicic
2c4ffcf70d
Rename build dir to .build
...
This allows the bazel `BUILD` file to coexist on case insensitive
filesystems such as on OSX.
PUBLISHED_FROM=35def41bea62ddc623966e26814adddbf53315d5
2016-04-05 23:50:05 +01:00
Deomid Ryabkov
53c3e1338f
Update SPIFFS to 0.3.4+
...
PUBLISHED_FROM=24a6704cdc2433f79e6995d2d83a3e1aac04a8d6
2016-04-05 23:50:04 +01:00
Evelyn
79454a9072
Update README.md
2016-04-04 14:05:44 +01:00
Evelyn
21c2c5650b
Update README.md
2016-04-04 13:58:57 +01:00
Deomid Ryabkov
81ee559905
Roll CC3200 support into mongoose.{c,h}
...
This is less than ideal, but will do for now.
PUBLISHED_FROM=86cdc7eb8567b23520169976fb8a2103353b9416
2016-04-01 03:14:41 +01:00
Deomid Ryabkov
4a637a6e9a
Refactor CC3200 example
...
Move data collection out of main.c
PUBLISHED_FROM=0340ebcea62a12275e915f325483603e72ff4183
2016-04-01 03:14:41 +01:00
Deomid Ryabkov
aaf4802d80
Add file upload to CC3200 example
...
PUBLISHED_FROM=126bfdb9369f4bc2f09a21400caf797d995bef5b
2016-04-01 03:14:40 +01:00
Deomid Ryabkov
96310d761b
Make CC3200 SLFS use "SL:" prefix
...
This is to make it compatioble with "devices" used in TI's libc.
Files without any "device" go to SPIFFS.
PUBLISHED_FROM=9adb888951389ccc43974537ee827a8240d79988
2016-04-01 03:14:39 +01:00
Deomid Ryabkov
96150bf568
Commonize file upload and make it part of Mongoose
...
PUBLISHED_FROM=23819ed308aeb8c1d6bdb08f5edd257df458ab38
2016-04-01 03:14:38 +01:00
Deomid Ryabkov
f49df51544
Change mg_match_prefix_n to take mg_str
...
Part of general drive to use mg_str instead of pointer + length.
Adda unit test for mg_match_prefix.
PUBLISHED_FROM=1402506769b0941c6dbe6ae06e03e41df32d6008
2016-04-01 03:14:35 +01:00
Deomid Ryabkov
673796fb3a
Improve HTTP erro reporting (send reason)
...
A few tweaks to TI example
Clean up mbuf_insert code a bit
PUBLISHED_FROM=00ed7aff05d6b760e10c7f14a503eccfc9a284bd
2016-04-01 03:14:32 +01:00
Deomid Ryabkov
482ab33c03
Move printing log prefix into a separate function
...
Reduces code size a bit and makes it cleaner
PUBLISHED_FROM=c08064102dc64f59dcdc1f80655f32e1ed94c850
2016-04-01 03:14:30 +01:00
Deomid Ryabkov
fb53cd37e7
Make it possible to set log file
...
And use stdout for CC3200 demo because
(1) an apparent bug which causes output sent to stderr to be
printed v-e-r-y s-l-o-w-l-y (yes, it is really like that;
https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/501881 )
(2) in CCS it is printed in BLOOD RED, which is annoying
PUBLISHED_FROM=36a86744bc8ea193e99e98670dadc7f3ab6ed53e
2016-04-01 03:14:29 +01:00
Sergey Lyubka
c9fc7a1320
Fix JSON-RPC error formatting
...
PUBLISHED_FROM=9af7e0a2a90fab6e012174c154f62ee29c8b879c
2016-04-01 03:14:27 +01:00
Deomid Ryabkov
5f59b7e747
Enable SSI on CC3200 (w/o exec)
...
Disable CGI automatically, as it's never going to work.
PUBLISHED_FROM=37d7abc54be4637dfec5031bc3398e97a1be3090
2016-04-01 03:14:26 +01:00
Marko Mikulicic
024b24932c
Redo amalgamation
...
Something went horribly wrong
PUBLISHED_FROM=879eac719f4a7feaa2b6ddf87cc86af72cdc1deb
2016-04-01 03:14:25 +01:00
Deomid Ryabkov
604c0b189f
MG_CC3200 -> MG_SOCKET_SIMPLELINK; some cleanups
...
PUBLISHED_FROM=865b94073c5ed088847d05f57c1103119648fcaa
2016-04-01 03:14:25 +01:00
Alexander Alashkin
356f1f5119
Fix connection reuse in mg_if_recv_udp_cb
...
PUBLISHED_FROM=5d248fd465ade7f42293611bc2d60ed72439a489
2016-04-01 03:14:22 +01:00
Deomid Ryabkov
06659844b6
Making Mongoose compile with TI compiler on CC3200
...
Part 1
PUBLISHED_FROM=a949d11b5cc578adf050f1b1d00375a2f91dfc0b
2016-04-01 03:14:20 +01:00
Deomid Ryabkov
57cf363be9
Reamalgamate mongoose.h
...
PUBLISHED_FROM=2a83a296ff67e02c0ed761ae0060d1252c2be89f
2016-04-01 03:14:19 +01:00
Deomid Ryabkov
2fc1ff68cf
Fix receive on UDP connections
...
Should only read on outgoing or listening "connections"
PUBLISHED_FROM=e84ff26b899a5f29ddef29ad6c5ba1d18e76e4ad
2016-04-01 03:14:18 +01:00
Deomid Ryabkov
6c4fecc4f7
TI compiler cannot analyze returns from branches
...
Thinks that mg_ws_random_mask does not return a value.
Help the poor, mentally challenged compiler.
PUBLISHED_FROM=e7c0c47dd2fcbb4e847515892939d69c7a573c2e
2016-04-01 03:14:17 +01:00
Deomid Ryabkov
0991ad7cc8
Minor cleanup
...
TI compiler detects "multipart" as unused
PUBLISHED_FROM=ababf8965a742418cff610df319e4d8c42e02439
2016-04-01 03:14:17 +01:00
Deomid Ryabkov
d03b96b699
Reamalgamate mongoose.h
...
PUBLISHED_FROM=d61816815bd92a70c02ef327572b282426a001a9
2016-03-25 17:11:02 +00:00
Deomid Ryabkov
a690c1442f
Make CC3200 example work with XCC3200HZ
...
PUBLISHED_FROM=42b188c5ae85742681266fee21ec0b0472912743
2016-03-25 17:11:01 +00:00
Deomid Ryabkov
d742b67878
Fix address stringification on CC3200 (SimpleLink)
...
PUBLISHED_FROM=b741acc999d0d2160528b4cb805f315b926ac65b
2016-03-25 17:11:01 +00:00
Deomid Ryabkov
41971a95b2
Add LED status and accelerator data feed
...
It is also possible to control LED by sending a command:
{"t": 1, "v": 0/1/2}
0/1 = off/on, 2 = toggle
PUBLISHED_FROM=da176b70c4cd356c5d56eca58c2926619748d895
2016-03-25 17:10:57 +00:00
Deomid Ryabkov
b6d700077a
Add websocket data feed, send temperature data
...
PUBLISHED_FROM=e56601f99ccf80d8420b4b54b0ef7c272ec4a656
2016-03-25 17:10:56 +00:00
Deomid Ryabkov
c091e6910b
CC3200 build cleanup; commonized fw_meta targets
...
Some yak shaving along the way
PUBLISHED_FROM=09c7cfbd98dcec961970dfad3f38e67912a5b06c
2016-03-25 17:10:54 +00:00
Marko Mikulicic
35f633b533
Fix def_property owning
...
PUBLISHED_FROM=8e2f5f05e6bc7654217b1f5aaa8520366f9d6759
2016-03-25 17:10:51 +00:00
Evelyn
85e4ed7c25
Update README.md
2016-03-25 16:41:32 +00:00
Deomid Ryabkov
3b345a81c4
Add debug info to websocket conns
...
PUBLISHED_FROM=7454716e089be5c54359113cc188215e2475ea29
2016-03-22 12:51:48 +00:00
Alexander Alashkin
a55c48a4ce
Finally remove AVR from mongoose.h
...
PUBLISHED_FROM=23d528a7fcc98abcc4a95fd43a96d9c4ebabc5f7
2016-03-22 11:45:49 +00:00
Deomid Ryabkov
6f4c21c218
Do not bypass auth when handling CGI request
...
PUBLISHED_FROM=9faccf9fedd92d0fb54b7ff660c0cf99c1cbdb74
2016-03-22 11:45:49 +00:00
Dmitry Frank
5060640408
Docs: images are in the same dir as index.html
...
This simplifies writing markdown docs (no need to specify relative path
to images)
PUBLISHED_FROM=039a563b2f7e6a2fbb2a9424ac5315b2496ca184
2016-03-22 11:45:48 +00:00
Deomid Ryabkov
f1cc8379e7
ESP8266_RTOS example tweaks
...
PUBLISHED_FROM=11096f272afc0716e0677c68d58ebf4d4e001a47
2016-03-21 22:45:54 +00:00
Deomid Ryabkov
4f9627c612
CC3200 FS refactoring and basic Mongoose example
...
Moved filesystem-related code out of SJS and into common.
Made it possible to have one, both or no filesystems enabled.
FailFS is now SimpleLinkFS, SLFS (ahem).
Example just serves a "Hello, world!" index page for now.
PUBLISHED_FROM=0e98ee4b8d95782c10791522c42eae5a7ba314f9
2016-03-21 22:45:53 +00:00
Deomid Ryabkov
012f241005
Fix the ESP8266_RTOS example, add it to CI
...
PUBLISHED_FROM=3d58ec06fe3108a81d1c35f8261783690bb12c4d
2016-03-21 22:45:53 +00:00
Marko Mikulicic
ccf67dbf05
Add smart.js repo to srcfs
...
PUBLISHED_FROM=ebcd95607742a327cc0f453681f576982a8f027d
2016-03-21 22:45:51 +00:00
Marko Mikulicic
a43709b4a8
Fix MQTT parsing of nullary commands
...
Closes cesanta/smart.js#619
Also http://forum.cesanta.com/index.php?p=/discussion/35/mixing-up-http-and-mqtt&#
PUBLISHED_FROM=ee040880b75048192c111c602610460071f33066
2016-03-21 13:29:39 +01:00
Alexander Alashkin
e95c074965
Replace strnlen with c_strnlen
...
PUBLISHED_FROM=815cfaea77171761c952966e98466b87b719de06
2016-03-21 13:29:35 +01:00
Alexander Alashkin
4ca73566b6
Reamalgamate mongoose.h
...
PUBLISHED_FROM=441c74c182ef15f3eaeedd19add3411d7e121170
2016-03-21 13:29:34 +01:00
Dmitry Frank
d0b347517c
Fix comment for mg_event_handler_t
...
PUBLISHED_FROM=cd50a664039b4a74cb7d4d08990f415912585f7d
2016-03-21 13:29:31 +01:00
Dmitry Frank
7bed7ff482
Docs are generated for Mongoose
...
Comments in headers are changed a bit: removed adoc-specific stuff,
markdown is used instead
PUBLISHED_FROM=9242cce85cc52a47a197d377e7e23804721a6bb5
2016-03-21 13:29:29 +01:00
Marko Mikulicic
d38b0dbf5b
Add command to extract build info from metadata
...
This will allow to recreate the metadata after patching the FS.
PUBLISHED_FROM=dae228bbf49d71f383e4dc52316cf98aba3914f5
2016-03-21 13:29:24 +01:00
Marko Mikulicic
29d6c4ac04
Fix url path parsing
...
The url parser had two bugs:
- `http://example.com ` -> `GET // HTTP/1.1`
- `foo://bar/baz` -> path is `"baz"` instead of `"/baz"`
Now the path returned by `mg_http_common_url_parse` always
starts with `/`.
Closes cesanta/mongoose#631
PUBLISHED_FROM=f56ed97361ca14ee31d6ed26cf7afe5cd11e0dc5
2016-03-17 13:57:11 +01:00
Deomid Ryabkov
8148b6d037
SJ timer API cleanup; added setInterval and clear*
...
Timers/intervals are now implemented on top of Mongoose.
Got rid of all the platform-specific code (yay!)
Added interval support and ability to clear previously added timeouts.
PUBLISHED_FROM=93866dd80b95b0fa6e137d87f86138330e720154
2016-03-17 10:43:20 +01:00
Deomid Ryabkov
3327e0e871
Make it legal to have a conn with INVALID_SOCKET
...
E.g. a timer-only connection
PUBLISHED_FROM=e8d4d2b6e5e0dfa8e8f987b2ded6b973c39e2919
2016-03-17 10:43:19 +01:00
Alexander Alashkin
0456f0f59b
Fix boundary problem
...
PUBLISHED_FROM=b78c97a337208007e1f622fde072cd59664ef76f
2016-03-17 10:43:18 +01:00
Deomid Ryabkov
72cf78de2c
CC3200 fixes
...
Increase heap size to 44K (13K free after init)
Add File.list() support
Fix a bunch of bugs in file support
Disable sys_init.js, there just isn't enough RAM...
PUBLISHED_FROM=2121b8758f0596da39c3eafcfff36337a1b90b74
2016-03-17 10:43:17 +01:00
Deomid Ryabkov
1d0a89879c
Include Winsock2 headers
...
Contributed by @f4bsch in https://github.com/cesanta/mongoose/pull/626
Submitting here with a minor change: MSDN says that ws2ipdef.h should
not be included directly and users should include ws2tcpip.h
PUBLISHED_FROM=1ebe7eac0cf87b0554432b94049b3d58bf7640f7
2016-03-15 13:35:07 +01:00
Deomid Ryabkov
d1cc952859
Add a tool to fix header guards, apply globally
...
Identifiers starting with _ are reserved, fix those.
Wrote a tool to do it and applied it globally, why not.
PUBLISHED_FROM=db0fa27c90cbfb06ed06469406f9867c5a5bd3c4
2016-03-14 17:42:20 +01:00
Deomid Ryabkov
f56c5b201d
Do not set cipher list if PFS is disabled
...
Remove Krypton TODO: SSL{,_CTX}_set_cipher_list have been added
(but these ciphers are not supported).
Fixes cesanta/dev#2975
PUBLISHED_FROM=25bf330b785f0a61e18ba409069ebccbd50dcf65
2016-03-14 17:36:58 +01:00
Alexander Alashkin
077b9eb7a4
Fix var initialization
...
PUBLISHED_FROM=87ce6442efb2c725025942381c01ae2a2de738c7
2016-03-14 14:32:36 +01:00
Deomid Ryabkov
15c333feb0
Increase buffer size for the range header
...
This should cover 2^64-2^64/2^64
H/T @julee
PUBLISHED_FROM=bcc9f0193ab52375ece00a34c5758ddfe3b628c6
2016-03-14 14:32:35 +01:00
Alexander Alashkin
31c20ab32c
Replace m-part&endpoints mbufs with plain structs
...
PUBLISHED_FROM=b30cf26077b7c6374f0d588e5ef5ba504f979bb3
2016-03-14 14:32:35 +01:00
Deomid Ryabkov
69215cf9eb
Adjust poll timeout if there are timers enabled
...
PUBLISHED_FROM=bbdc998ab4170d55d40d067bab027ae52c9304ec
2016-03-13 15:49:08 +01:00
Marko Mikulicic
f89b51eace
Amalgamation fix
...
PUBLISHED_FROM=b92c75e2fc56d1243187b8516bec54b03a7b1043
2016-03-13 15:49:07 +01:00
Alexander Alashkin
c581b5e532
Add mg/examples-wine to OurCI
...
PUBLISHED_FROM=2781248e982719cda495370a373f66d6e4213d83
2016-03-10 13:11:23 +01:00
Alexander Alashkin
df311203dc
Fix mongoose/examples compilation with mingw
...
PUBLISHED_FROM=46800f43ba03082cc589d70e6118d754f4cdc9d0
2016-03-10 13:11:22 +01:00
Alexander Alashkin
4927195ee4
Use mongoose event to free updater resources
...
PUBLISHED_FROM=3044287fe2623b591ddbf5c619398c21d6753411
2016-03-10 13:11:22 +01:00
Alexander Alashkin
63be1ebd38
Mongoose MSVC2015 warnings cleanup, part1
...
PUBLISHED_FROM=9e173215ed69464d1aa421d43a8fda814f36f96d
2016-03-08 08:44:23 +01:00
Alexander Alashkin
796dc18cfb
Move http endpoints away from mg_conn and more
...
PUBLISHED_FROM=abd5bcf168194f9d38fbcbf3725eaae209e42fc4
2016-03-08 08:44:23 +01:00
Marko Mikulicic
14e116553f
Add mg_connect_ws helper
...
PUBLISHED_FROM=0ff1c9becea2f0842dcf020d2d2ad64a8c5d95ae
2016-03-08 08:44:23 +01:00
Marko Mikulicic
c82ccd6cf7
Simplify http client example
...
PUBLISHED_FROM=64a91c5d261338c7c224340943d63d4b753ee303
2016-03-08 08:44:21 +01:00
Evelyn
0adb080319
Update mongoose README.md
...
PUBLISHED_FROM=fa91aef8133ce514b799c07dcb842fe8ea999d55
2016-03-04 16:09:42 +01:00
Alexander Alashkin
dbb38fffae
Make (http) proto_data persistent
...
PUBLISHED_FROM=8210f4730a3411b3298274d792fc33da79f47b8a
2016-03-04 16:09:42 +01:00
Marko Mikulicic
672a68219a
Fix a few build issues on OSX
...
PUBLISHED_FROM=d6e7ab0b45c960a4ca0bcb56cbc26bc05d641374
2016-03-04 16:09:41 +01:00
Alexander Alashkin
22cb0efd00
Implement FW upload via POST
...
PUBLISHED_FROM=6167cc57df932f6c113d03096eba0af0b456c3c3
2016-03-04 16:09:41 +01:00
Deomid Ryabkov
a68d3d63b2
Make mg_mk_str take NULL, rename MG_STR MG_MK_STR
...
PUBLISHED_FROM=77f24c29667ca2aed3ad8a5102d7e1264f84228b
2016-03-04 16:09:39 +01:00
Evelyn
cf48c7280a
Update README.md
2016-03-03 10:27:45 +00:00
Evelyn
1295973028
Update README.md
2016-03-01 10:41:24 +00:00
Evelyn
d5b9eda0f2
Update README.md
2016-03-01 10:40:14 +00:00
Evelyn
41c078d25c
Update README.md
2016-03-01 10:36:33 +00:00
Evelyn
5614224e7d
Update README.md
2016-03-01 10:04:57 +00:00
Evelyn
9ba44cb0d5
Update README.md
2016-03-01 10:04:10 +00:00
Deomid Ryabkov
c18828af7b
Digest auth fixes
...
PUBLISHED_FROM=dda24a5bdb42848a74460865dd23794941b46bd4
2016-03-01 09:53:50 +00:00
Marko Mikulicic
8a5f8439b4
Make sure iobuf is renamed to mbuf everywhere
...
PUBLISHED_FROM=b1049c57352286abda168df521002cfc87136fd6
2016-03-01 09:53:49 +00:00
Deomid Ryabkov
8f0374569e
Increase buffer size for cnonce
...
PUBLISHED_FROM=0dcb2aba0c00da6803227c775e2178230c195f5f
2016-02-29 19:14:53 +00:00
Deomid Ryabkov
09dde636d2
Fix image
...
PUBLISHED_FROM=1dc0b60738c763dc0d9a939c255c7fbd431e96e5
2016-02-29 14:56:25 +01:00
Deomid Ryabkov
d347247bf3
Add POST file upload to SJ web interface
...
PUBLISHED_FROM=b9575b2dd1da21b40bbfbf98d7c0cf835442c46a
2016-02-29 14:56:25 +01:00
Alexander Alashkin
a6c66fb669
Implement multipart streaming in MG (edition 2)
...
PUBLISHED_FROM=de89316ca3b53b8eb46ea69e88b5fbd277c80dc2
2016-02-29 14:56:24 +01:00
Deomid Ryabkov
b4dbc825b1
Minor fixes to Mongoose
...
PUBLISHED_FROM=8a8692e5cfaab63723fc9e241a50e8f229a26438
2016-02-29 14:56:23 +01:00
Deomid Ryabkov
4a0cc8223e
Add SSL options to mg_{bind,connect}_opt
...
PUBLISHED_FROM=7e28eb43742b76c073c9c2c879c64d7b4d3e9a7e
2016-02-25 12:53:04 +00:00
Marko Mikulicic
7db10857b3
Fix build with clang
...
PUBLISHED_FROM=0cec0e6db4f46a76130fa7b6ec955d4151b28aae
2016-02-25 12:53:03 +00:00
Deomid Ryabkov
7e927b43ad
Initial support for SSL in TCPUART 2
...
PUBLISHED_FROM=93cb3cf49ce9173a7361af17c1bd47858bb2602e
2016-02-25 12:53:03 +00:00
Deomid Ryabkov
9eea072f2a
Add optional log of timestamp difference
...
PUBLISHED_FROM=046ac695f1c771ab156bdd950a8d5cbecbf65bfa
2016-02-25 12:53:02 +00:00
Deomid Ryabkov
aa2ff674db
Call recved when data is consumed from recv_mbuf
...
PUBLISHED_FROM=5fb212ed3114c57182781d441b6886cf83100a76
2016-02-25 12:53:01 +00:00
Deomid Ryabkov
de24bfdf2f
Include limits.h
...
PUBLISHED_FROM=7d50ad891fa2b24e119dd1f34037134effbc8d9f
2016-02-25 12:53:01 +00:00
Sergey Lyubka
2a084c3d98
Add GA hooks to mongoose & smartjs repos
...
PUBLISHED_FROM=3725cf834eb1d2bf12f8d03d7a590de8b1af63d4
2016-02-25 12:53:01 +00:00
Alexander Alashkin
db8df41396
Implement mg_register_http_endpoint
...
PUBLISHED_FROM=357e722e80a2597aa3959756e69db03dc1057ded
2016-02-19 10:14:51 +00:00
Marko Mikulicic
bda05d9372
Import frozen
...
PUBLISHED_FROM=9f6f38e92b5952b9571d73569c2752b6805f15c5
2016-02-15 15:48:12 +01:00
Marko Mikulicic
59bc2af4d6
Add contribution files
...
PUBLISHED_FROM=596d1e99df9c282aa8a0daa65346d8dfd7c583de
2016-02-15 15:48:11 +01:00
rojer
00a23ee330
Good bye osdep.h, you won't be missed
...
PUBLISHED_FROM=f08a8324dfde5f9e22eee0e5e4dbae0e3d45cb3f
2016-02-13 13:59:16 +00:00
Deomid Ryabkov
51ad50a641
Rewrite URI -> path mapping, Windows fixes
...
PUBLISHED_FROM=6088958e92af2b028646816435892828ce9f7625
2016-02-13 13:59:16 +00:00
Alexander Alashkin
148e1926e8
Fix crash in c_vsnprintf
...
PUBLISHED_FROM=020d1b9ea66862f71b08232b827cdd6e97528765
2016-02-13 13:59:15 +00:00
Alexander Alashkin
96c023df41
Add zx/zd/zu support to c_vsnprintf
...
PUBLISHED_FROM=83bf0e541a8541e484a83390108ca73d3af95c38
2016-02-13 13:59:15 +00:00
Deomid Ryabkov
44f37f49a1
Fix line numbering in amalgamated files
...
PUBLISHED_FROM=318aa2504072cc4a480fc92791d13847c2b10e30
2016-02-13 13:59:13 +00:00
Marko Mikulicic
a8a30f6d3f
Add short copyright notice in every source file
...
PUBLISHED_FROM=e3f3ffcd3715811d4bb7b3d0bd48184fbd371b26
2016-02-13 13:59:08 +00:00
Deomid Ryabkov
ba80b1cd55
Add LICENSE file to F&C, update dates
...
PUBLISHED_FROM=497f03d8f49dd383e48f919715126d3d22ada7bc
2016-02-13 13:59:04 +00:00
Alexander Alashkin
b56e985ccc
Use mg_parse_uri in ws, add mg_mk_str function
...
PUBLISHED_FROM=650ce03aaf53f4c501fbb77a3ae0b584278e299a
2016-02-13 13:59:02 +00:00
Marko Mikulicic
67521fd9f6
Fix parse uri
...
PUBLISHED_FROM=9bc251ed259e909a8438f95a82d0a229b5a834cf
2016-02-13 13:59:02 +00:00
Marko Mikulicic
8c394f44b8
Implement mg_parse_uri
...
PUBLISHED_FROM=43d7e3f56cd5d45c8070ab55acdc091e61839681
2016-02-13 13:59:02 +00:00
Marko Mikulicic
77b4fff268
Fix mongoose doc formatting
...
PUBLISHED_FROM=b7b7dd5f9f4b86a9698add4484b948b4088a99c4
2016-02-13 13:59:01 +00:00
Dmitry Frank
f56a0c6075
v7_is_true() -> v7_is_truthy()
...
PUBLISHED_FROM=73acce1507eb41f264f117b0775efea16db42ec1
2016-02-13 13:59:01 +00:00
Dmitry Frank
9ce8486059
Rename v7_create_ -> v7_mk_
...
PUBLISHED_FROM=58f7275b4b250b5bfccaf6539a2915c2c253e95c
2016-02-13 13:58:59 +00:00
Dmitry Frank
04a321150a
Refactor in setting properties
...
PUBLISHED_FROM=d40355050f1a11ca26274c33e48f5175d7b76cb0
2016-02-13 13:58:58 +00:00
Alexander Alashkin
d333c3c09e
Implement fake DAV LOCK
...
PUBLISHED_FROM=0ea0d8623ab3f59de8996f6b18712d1b3fb120f8
2016-02-13 13:58:58 +00:00
Deomid Ryabkov
81d977c720
Introduce mg_time() and use it internally
...
PUBLISHED_FROM=024a2d7849a800381d58460877eacccfc93b1cdd
2016-01-11 12:24:40 +03:00
Alexander Alashkin
f477898c7c
Mongoose 6.1 -> 6.2
...
PUBLISHED_FROM=24146cf7f4cf86cfd76260fb906d50889b9d6f7e
2016-01-11 12:24:40 +03:00
Marko Mikulicic
566193a1eb
Implement freezing V7 object graph
...
PUBLISHED_FROM=1670ce871ed2c9391edb10ff413d3d454997d1fe
2016-01-11 12:24:40 +03:00
Deomid Ryabkov
5d6eeb5d1d
Add a note about Content-Type for form submissions
...
PUBLISHED_FROM=6079258be24fa0255f5a58e4d364be224435394b
2016-01-11 12:24:39 +03:00
Dmitry Frank
d9b9d71b2d
v7_apply() and friends take res as last argument
...
PUBLISHED_FROM=4b064f5e4554c5a016481bf8104c0ba9dd244083
2016-01-11 12:24:38 +03:00
Dmitry Frank
643ee1df14
cfunctions API refactored to return enum v7_err
...
PUBLISHED_FROM=f96a4ab2016c0125c1e94b3c5c9ada2c365bd39d
2016-01-11 12:24:36 +03:00
Deomid Ryabkov
6c4d37ee68
Free previous ssl context in mg_set_ssl
...
PUBLISHED_FROM=9f595222bce1fe8d0917649e36ce3be40eee1775
2015-12-23 17:02:52 +01:00
Sergey Lyubka
97b79cd04a
Add MacOS to mongoose README
...
PUBLISHED_FROM=679b640e3de8b0fbd65b38263093dd6049db4cd3
2015-12-23 17:02:52 +01:00
Sergey Lyubka
56c6229dd6
Update Mongoose readme
...
PUBLISHED_FROM=ac117f203ef11b9c3877a6dd1919e8409d04cdb1
2015-12-22 07:42:12 +00:00
Dmitry Frank
0fe2dd9b48
Added param names to mongoose headers
...
PUBLISHED_FROM=07bd8163c4e1df49ab3dc7a1640efa2adff34e33
2015-12-22 07:42:11 +00:00
Sergey Lyubka
910aee7f7b
Re-enable mongosoe FS support on ESP
...
PUBLISHED_FROM=cfa1c79bb5429feddf38c68c25195b97deef9a62
2015-12-22 07:33:06 +00:00
Sergey Lyubka
97063937ff
Add vanilla forum to forum.cesanta.com
...
PUBLISHED_FROM=bff863108d0fb80a6139ac34be04fb999e18e62e
2015-12-22 07:33:06 +00:00
Sergey Lyubka
7e68b097d1
Close https://github.com/cesanta/mongoose/pull/603
...
PUBLISHED_FROM=ab934b21ed67878f47ccd569d88030e53e914bf7
2015-12-21 08:37:20 +00:00
Marko Mikulicic
4d41dff4fd
Fix includes
...
PUBLISHED_FROM=58d764bb224968d5368b21a8eb572602055cb26b
2015-12-21 08:37:19 +00:00
Deomid Ryabkov
05082cec88
Use sub-second time for timers in MG
...
PUBLISHED_FROM=2b5bd1589465a5f43bc888c689842332cf7cdf98
2015-12-20 17:49:13 +00:00
Marko Mikulicic
f05733da69
Fix COAP example, reduce number of ctx switches
...
PUBLISHED_FROM=7010fff404826c3dfc783d2cbdcbd0936a8a2b85
2015-12-15 11:36:34 +01:00
Marko Mikulicic
3c53909e82
Foolproof Smartjs publishing
...
PUBLISHED_FROM=8ade849890746baa95fd8a5d92baf3dda656a719
2015-12-15 11:28:39 +01:00
Deomid Ryabkov
1e53ec47a9
Peeple TLS support for updates
...
PUBLISHED_FROM=1abdacaece6dc63b6148c605c4c2cc41c3cc4ac6
2015-12-15 11:28:38 +01:00
Sergey Lyubka
17802735d7
Spiffy config for cc3200
...
PUBLISHED_FROM=34b3678cb2510adfd5f26183ae7c16aadb97e6c9
2015-12-14 00:12:12 +01:00
Marko Mikulicic
d2eb67a1ae
Sanitize mongoose headers
...
PUBLISHED_FROM=d3790d175b8d714865c7eb5f12e82d31844a863f
2015-12-14 00:12:12 +01:00
Marko Mikulicic
3f254dd3fc
Simplify include paths
...
PUBLISHED_FROM=4e38db207dc2634e410339c81c5a2a87e8b188b0
2015-12-14 00:12:12 +01:00
Deomid Ryabkov
e139bde6ae
A couple SSL-related fixes for Mongoose
...
PUBLISHED_FROM=03297850f7a620588de851ef86be25e17a04ad28
2015-12-11 13:02:13 +00:00
Sergey Lyubka
5f62951143
Runtime DAV auth disable. Implement MOVE
...
PUBLISHED_FROM=aec49928891972ecd6af9999fe3e1cb5ef00f24c
2015-12-11 13:02:13 +00:00
Sergey Lyubka
2207e87c8f
Fix DAV for non-existent files. Improve logging
...
PUBLISHED_FROM=39a2810ad9bebcf1676b982f7523aa9c2339cc4f
2015-12-11 13:02:12 +00:00
Sergey Lyubka
5bd59c7b70
Shut up spiffs. Proper DAV report
...
PUBLISHED_FROM=125379f6c624b4e938b5d543cb8ed5fe906de98f
2015-12-11 13:02:12 +00:00
Alexander Alashkin
02f6867a2f
Implement %lld in c_vsnprintf. Closes cesanta/dev#2120
...
PUBLISHED_FROM=1f24878425356f625b4f5b2b0fe40ab5f17501ab
2015-12-11 13:02:11 +00:00
Deomid Ryabkov
b93fa3144a
First cut of TLS support for LWIP event manager
...
PUBLISHED_FROM=98cf23ea090ffb4e83edd4d600bee57dfd7d94d4
2015-12-11 13:02:11 +00:00
Alexander Alashkin
a68e0d9a3f
Add WebDAV move stub
...
PUBLISHED_FROM=b1f712862b81dfe8da6547338f77ff3bfefa5051
2015-12-11 13:02:10 +00:00
Alexander Alashkin
cfe80ba9b7
Add WebDAV support to sjs/esp8266
...
PUBLISHED_FROM=a68a2f205cb2f10809183d5160709981585538b7
2015-12-11 13:02:10 +00:00
Deomid Ryabkov
35abfd44dd
Fix windows build
...
PUBLISHED_FROM=3b3788da8c2dcc57897044701c5252ea46db0249
2015-12-08 13:38:05 +00:00
Sergey Lyubka
e98b5a691e
Implement Http_request.setTimeout()
...
PUBLISHED_FROM=7a72e485aad2be859b9452dc1687a922778959d1
2015-12-08 13:38:05 +00:00
Sergey Lyubka
ed24afd172
Connect timeouts for resolving connections
...
PUBLISHED_FROM=068b6f75550b10913d7f13106f9a7f7dce5babec
2015-12-08 12:35:29 +00:00
Deomid Ryabkov
714556de65
Added debug line to mg_mgr_handle_ctl_sock
...
PUBLISHED_FROM=a4c1d105cb4f18d982bd28190691b6ea65ee37fc
2015-12-08 12:35:29 +00:00
Deomid Ryabkov
547ec85b58
Properly disable socketpair-related stuff
...
PUBLISHED_FROM=f3a236470281af80848c8f78163980083190c081
2015-12-08 12:35:29 +00:00
Marko Mikulicic
845d751e87
Fix C String API confusion
...
PUBLISHED_FROM=af34acd81d877bfbd8441c14451d8c81f18c207d
2015-12-08 12:35:29 +00:00
Alexander Alashkin
518a7f8a71
Fix MG DAV
...
PUBLISHED_FROM=132db6ed9c9e1eb9ec19b4f9299448b901b92231
2015-12-08 12:35:29 +00:00
Sergey Lyubka
31323b01bc
Introduce MG_EV_TIMER event
...
PUBLISHED_FROM=2e90ee87eda8bc742e427671bb9df1ce0cd8bc25
2015-12-08 12:35:28 +00:00
Deomid Ryabkov
3a138ecc83
Move more of SSL-specific code into net_if
...
PUBLISHED_FROM=47dc4712c0ea2012c0774ad260f0451371cfe8b7
2015-12-08 12:35:28 +00:00
Dmitry Frank
7294674a8b
Remove custom strnlen for VC 16+
...
PUBLISHED_FROM=9c28b64267408929f5c565b87978816f3a93f06b
2015-12-08 12:35:27 +00:00
Sergey Lyubka
423b978395
Report read-only vars to UI
...
PUBLISHED_FROM=2ca4b52e777a54d9bb05a177e57a8b73bb962fdb
2015-12-08 12:35:27 +00:00
Sergey Lyubka
ecf20ec7b8
Add error_log_file, use extended log format
...
PUBLISHED_FROM=d189b44857723871159826944bde9b87089bb0bd
2015-12-08 12:35:27 +00:00
Sergey Lyubka
c948a509fb
Export mg_url_decode() to public
...
PUBLISHED_FROM=442534f52992be612a98a549e5ab2191081a9d52
2015-12-03 22:05:52 +00:00
Sergey Lyubka
f5ad19d76b
Fix g++ build for mongoose example
...
PUBLISHED_FROM=c581f33e26819d05c9b8484c9dc10c2a3615a34a
2015-12-02 17:04:44 +00:00
Deomid Ryabkov
d665d9e90e
Always Be Closing
...
PUBLISHED_FROM=29ca7cdd9024790bd75892f9f67b3f83a6bd00d1
2015-12-01 18:03:19 +00:00
Sergey Lyubka
a5e10450dd
Mongoose 6.0 -> 6.1
...
PUBLISHED_FROM=22408f9340bbbbf186bd551dd30564efe0c253e3
2015-11-30 12:27:59 +00:00
Sergey Lyubka
e9d79b130d
Add documentation for the mongoose binary
...
PUBLISHED_FROM=71a01298c9bbff9a748ea33e0d148d549e5e6437
2015-11-30 12:27:59 +00:00
Deomid Ryabkov
7951dac9d5
Put getting local/remote address behinf net_if
...
PUBLISHED_FROM=f88056e79b632d9eee288dacf61c2f87ff3ceca5
2015-11-30 12:27:58 +00:00
Alexander Alashkin
6c77351c58
Verify settings before apply
...
PUBLISHED_FROM=ca7b6a9814b88b45d893d8e1386faded27305e9c
2015-11-30 12:27:58 +00:00
Sergey Lyubka
7c4cda622f
Implement port based redirect
...
PUBLISHED_FROM=798a8bc38cb385027d3caae9b954002c1a10d39c
2015-11-30 12:27:57 +00:00
Deomid Ryabkov
d8f8c1cb99
I fail at math
...
PUBLISHED_FROM=c45da0cf83e9573a9fa8234f4dee1b9e4e5b977a
2015-11-30 12:27:57 +00:00
Deomid Ryabkov
d2b9ad570f
Add a custom linker script for 4m flash
...
PUBLISHED_FROM=a92b86588923fb54075b1c3ed8ca8112164c36c5
2015-11-25 12:06:28 +00:00
Deomid Ryabkov
5b36f32996
Add ESP8266 RTOS example
...
PUBLISHED_FROM=892d01b09f5801d3d19e6db1ce22b7916d2f83d5
2015-11-24 00:42:27 +00:00
Deomid Ryabkov
3298030b8e
Changes to make Mongoose compile on ESP RTOS SDK
...
PUBLISHED_FROM=863a47416ee5e30f20f6523374ebd510cc022d99
2015-11-24 00:42:27 +00:00
Sergey Lyubka
6cfc696439
Add helper function mg_send_head()
...
PUBLISHED_FROM=5c9d11d21d34fa72974a021f0342068d87159634
2015-11-24 00:42:26 +00:00
Sergey Lyubka
a93b3a06dd
Change binary download link
...
PUBLISHED_FROM=bc1a39dc8c11bab83c20da2c6e9477da0d17f993
2015-11-20 12:07:52 +00:00
Deomid Ryabkov
79e8d77ea0
Shave the debug yak
...
PUBLISHED_FROM=402d26b6a2797bfe9fb70e48cbde97f3960ef5d4
2015-11-20 12:07:51 +00:00
Sergey Lyubka
d68fab9ee5
Enable threads on Win by default
...
PUBLISHED_FROM=cc4070d618f079ccd1e02e62bba87247e75c74aa
2015-11-20 12:07:51 +00:00
Sergey Lyubka
bda470245e
Support for multiple listeners
...
PUBLISHED_FROM=ad00f31ae8732be2d7fdc7f0968fd04edfd76bb6
2015-11-20 12:07:51 +00:00
Sergey Lyubka
0c95290f93
Add extra headers support (allows CORS)
...
PUBLISHED_FROM=2279e31315bba4d19e2ae568cba94ea5dea3ef6a
2015-11-18 07:44:23 +00:00
Deomid Ryabkov
8989739d32
Use mg_call to invoke user handler
...
PUBLISHED_FROM=cefd472946dfe77ec262c1980eab983a919b6220
2015-11-18 07:44:23 +00:00
Sergey Lyubka
1112981e6e
Fix mg_if_not_modified() logic
...
PUBLISHED_FROM=3eb1455eacc66af83904f56397c0e24b1d4f13bf
2015-11-18 07:44:23 +00:00
Sergey Lyubka
0cf82744ce
Unbreak macos tests
...
PUBLISHED_FROM=a9521579223cfbb68e2b7bcd221335d25dacbb87
2015-11-18 07:44:22 +00:00
Deomid Ryabkov
5cdf838325
Fix error handling in async resolver
...
PUBLISHED_FROM=1e8558ec08f8e72d70163d34e0920f80f74372d1
2015-11-18 07:44:22 +00:00
Sergey Lyubka
6418cad39f
Disable HTTP keep-alive on embedded
...
PUBLISHED_FROM=63bb1ca0f307a4332006d6cd13a35f0be6359174
2015-11-18 07:44:22 +00:00
Sergey Lyubka
46529fd51e
Remove unused MG_F_DONT_SEND
...
PUBLISHED_FROM=beaec58b808fb767b7e491d8b5d6b23a6d5e4e0c
2015-11-18 07:44:21 +00:00
Marko Mikulicic
c09ba40a48
Cleanup make format target
...
PUBLISHED_FROM=5f856af633ca9a10161769caac130fc6452f137f
2015-11-18 07:44:20 +00:00
Sergey Lyubka
47d52896a1
s/uri/url, to conform to nodejs HTTP API
...
PUBLISHED_FROM=32ba0c859ad9df3cf7dc3af8e379e49543e77843
2015-11-18 07:44:19 +00:00
Deomid Ryabkov
d60c99b01c
Make MG debug go to stderr
...
PUBLISHED_FROM=11618b6b2a50c62dd612d241c6b13a9aab357909
2015-11-18 07:44:19 +00:00
Sergey Lyubka
b8aeba06a2
Add unit test for mg_parse_date_string
...
PUBLISHED_FROM=aec7d5e6c6598fbc5141c40c9638cc96d288c8dc
2015-11-18 07:44:18 +00:00
Sergey Lyubka
8a0bc2d614
Mongoose binary - GUI version fix
...
PUBLISHED_FROM=94c2b4c5a40c3519df6caa7561c3935bdf505575
2015-11-18 07:44:18 +00:00
Deomid Ryabkov
e34747d1ad
Handle case of malloc failure in mbuf_resize
...
PUBLISHED_FROM=0cb98ac520b8aeb8bbeb2f23b8c65c62ab256021
2015-10-30 18:38:43 +01:00
Deomid Ryabkov
1a6bc7c514
Fix mbuf_resize(0)
...
PUBLISHED_FROM=7cab7543db990f7f67b53edca4f65ba45b219711
2015-10-30 18:38:42 +01:00
Deomid Ryabkov
ffa0ddfdbf
Make mg_call usable in protocol handlers
...
PUBLISHED_FROM=63ad74b31750a851db090d2f2995ecf5f275538b
2015-10-30 18:38:42 +01:00
Alexander Alashkin
ca55bff1cf
Fix mg compilation
...
PUBLISHED_FROM=ce7fdfebd3ebbf88688514be501b33ad1241743c
2015-10-30 18:38:42 +01:00
Deomid Ryabkov
cfee5c4fdb
Mongoose TCP listener for ESP LWIP
...
PUBLISHED_FROM=e88b17d21ee78a4c2c1c4832db322e19b314206d
2015-10-30 18:38:42 +01:00
Marko Mikulicic
e46185068b
Avoid inlining of esp gcc bug workaround
...
PUBLISHED_FROM=f02283b42d842246c75df848061a80b754a97013
2015-10-30 18:38:42 +01:00
Marko Mikulicic
6ef2fea45e
Workaround lx106 gcc bug stack frame size rounding
...
PUBLISHED_FROM=66906d0e5f6d97b135bd157f5f82dc13bef2fb1a
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
e244dd84a9
Mongoose and LWIP fixes
...
PUBLISHED_FROM=c63992029098108ae62234176d4334207b43dd7b
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
5034937a15
Set more reasonable WS buffer size
...
PUBLISHED_FROM=ecfc284747f1b3eef5c40dd74b4af19f4618edcc
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
060045be65
Un-static a bunch of structs to save ram when idle
...
PUBLISHED_FROM=1a994be80dd46ffd410f88db28816c85b2c2bf79
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
9adfe8d484
espconn is out, Mongoose + LWIP is in
...
PUBLISHED_FROM=c67ea324058d70070f89420c40e57b9df87964b1
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
799cc369e0
Reduce stack usage when parsing HTTP URL
...
PUBLISHED_FROM=682f59e58d8335352cc09987a91e85cc264cf0f8
2015-10-30 18:38:41 +01:00
Deomid Ryabkov
b97d3fea4b
strnlen should return size_t
...
PUBLISHED_FROM=545c7d80380c48332803ef00981763b130a1c1c6
2015-10-30 18:38:40 +01:00
Deomid Ryabkov
2a4ca9d5c3
Introduce a network interface API, refactor UDP
...
PUBLISHED_FROM=6e961e2760b2b64e211978ede5df8ca353ea5512
2015-10-30 18:38:40 +01:00
Deomid Ryabkov
747e40e74e
Fix size_t printing on CC3200
...
PUBLISHED_FROM=65b068a7620e7117c0dffc762d710e08dfbad037
2015-10-30 18:38:40 +01:00
Marko Mikulicic
cf279e7885
Address ignored return values of read and write
...
PUBLISHED_FROM=d76b6b9d91d7af0e916cd81e1213c463757bf924
2015-10-30 18:38:39 +01:00
Marko Mikulicic
cbf968735a
Fix MG_SEND_FUNC/MG_RECV_FUNC rename fail
...
PUBLISHED_FROM=da28a75111abb5fb49b122133a66ae9bdf63f474
2015-10-30 18:38:39 +01:00
Sergey Lyubka
57b35e6007
Add JS HTTP server to smartjs
...
PUBLISHED_FROM=13210e55d9434917549dcbf9a39a5377181f8387
2015-10-21 17:34:55 +02:00
Deomid Ryabkov
1eaabdd8e5
s/dmg/dns/g
...
PUBLISHED_FROM=96dc8b0b4001f2206749a401c615f043fc5f6131
2015-10-21 15:17:11 +02:00
Sergey Lyubka
dcd4e660a3
Serve current dir by default in mg_serve_http()
...
PUBLISHED_FROM=421b4256629b2bccd20ceb127ece02be57085b40
2015-10-21 15:17:11 +02:00
Deomid Ryabkov
96409e74e5
Fix ALL the leaks!
...
PUBLISHED_FROM=0adf7c6c903075d6705693829f8758f8ff67d579
2015-10-21 15:17:11 +02:00
Sergey Lyubka
e28ee097a1
Move mongoose binary to dev repo
...
PUBLISHED_FROM=224a216abc4a7cca50d80f762dca602f54470105
2015-10-21 15:17:11 +02:00
Deomid Ryabkov
2b4e544867
Move "connect done" logic from mg_read_from_socket
...
PUBLISHED_FROM=318cc110d8b012cf75cb02dfc68a8215faa93fe7
2015-10-21 15:17:11 +02:00
Deomid Ryabkov
ee042a3481
Fix SSI parsing
...
PUBLISHED_FROM=c918da948354def5815dfd6b832053f170212c6f
2015-10-16 12:57:02 +01:00
Alexander Alashkin
63075f6846
Add restful_client & restful_server VC projects
...
PUBLISHED_FROM=5ee78f5c907401c93a04f89d6b25b99515aa809a
2015-10-16 10:31:23 +01:00
Alexander Alashkin
7f2e42a06d
Fix MSVC2015 build and add VC project
...
PUBLISHED_FROM=d071ecd0bdcc871cdd18a65c1ebb8b546ff61941
2015-10-16 10:31:23 +01:00
Sergey Lyubka
3fbfa33b9a
Minor nitpicks for big_upload
...
PUBLISHED_FROM=55d4270916f32ce4645965fbd7a031d7f8e1907b
2015-10-13 10:38:36 +01:00
Maxim Ignatenko
179aa75047
Add big_upload example
...
PUBLISHED_FROM=58dfd3cfdbc5f908e5fa10171274f0d5dd256404
2015-10-13 10:38:36 +01:00
Maxim Ignatenko
4658194d08
Properly populate mg_connection.sa field
...
PUBLISHED_FROM=a305c720aee1b159847e10c962b6de7fe08bc787
2015-10-12 12:48:35 +01:00
Marko Mikulicic
b35657814c
Factor our LWIP enabling flag
...
PUBLISHED_FROM=d080ccb2d0daef1103ff7487b5c3f4b65ab97b99
2015-10-12 11:05:33 +01:00
Marko Mikulicic
a2322c77c6
Fix mongoose build
...
PUBLISHED_FROM=ec4a774dfd690876201080ff55bdbec5bd865670
2015-10-12 11:05:33 +01:00
Marko Mikulicic
b50c183c19
Simplify and abstract C func arg access
...
PUBLISHED_FROM=c174439a2d22794497dc35fd46ceb1f6c4e553a2
2015-10-12 11:05:32 +01:00
Maxim Ignatenko
a941687db0
Fix mongoose build
...
PUBLISHED_FROM=aec35861339d336697649fd2020766439b3814ad
2015-10-12 11:05:32 +01:00
Marko Mikulicic
c2eef52b65
Add CLA to mongoose README
...
PUBLISHED_FROM=9987c788e55bc949c06ebf355d51d38ef2d109d6
2015-10-12 11:05:32 +01:00
Claudiu
3e6cbbde04
Fix static function prototype
...
PUBLISHED_FROM=d90d06593ec4531f479053243c72601ee27a3141
2015-10-05 22:27:10 +02:00
Sergey Lyubka
6400536282
Rename v7_get_global_object() -> v7_get_global()
...
PUBLISHED_FROM=91a306d5dbc55d65505904b1a19cca5bbe9f58cc
2015-10-05 22:27:10 +02:00
Sergey Lyubka
776103068f
Add examples for mongoose blog article
...
PUBLISHED_FROM=54f54211919bb2276e02b4d10306ffa5540a9313
2015-10-02 13:10:47 +01:00
Maxim Ignatenko
93beff3b65
Use select() by default everywhere
...
PUBLISHED_FROM=474789b0d7f5076434e5c15c079306243f3a8d81
2015-09-25 16:19:50 +01:00
Marko Mikulicic
22f8d86b05
Makes sure send file releases resources on close
...
PUBLISHED_FROM=451d2dd0b55b9fd7dea441a9279f54d0005c97b1
2015-09-25 16:19:50 +01:00
Marko Mikulicic
3a9a9c7ad0
Enable printf format warnings for mg_printf
...
PUBLISHED_FROM=61a52651a2542cb89b155623781a5fcbf64779f3
2015-09-25 16:19:50 +01:00
Alexander Alashkin
13238b1ad2
Restore win build
...
PUBLISHED_FROM=fe072db3dcc5f92f44d91a81596e33e404887951
2015-09-25 16:19:50 +01:00
Marko Mikulicic
56f661e9c6
Make mg send_http_file work for ESP8266 RTOS
...
PUBLISHED_FROM=10623cfe38e143f7e107a6494baa298c788586f0
2015-09-25 16:19:49 +01:00
Marko Mikulicic
5351f46efb
Mongoose send on esp8266 RTOS_SDK
...
PUBLISHED_FROM=1e97853ebc1c39b01754cf76d875453842e9b36d
2015-09-25 16:19:49 +01:00
Sergey Lyubka
0cd3335b78
Update mongoose download link
...
PUBLISHED_FROM=70a6e34c6630e3ab95d200b173d22529101b61ea
2015-09-22 10:35:55 +01:00
Marko Mikulicic
0611627448
Serve a http file on quantex
...
PUBLISHED_FROM=856d2e0bdaddece638d215c252fabeb9ea2d7809
2015-09-22 10:32:02 +01:00
Sergey Lyubka
f014918435
Add JS support to Mongoose
...
PUBLISHED_FROM=5f319c5c6d965432da063ce7ab495ae24e972755
2015-09-22 10:32:01 +01:00
Sergey Lyubka
51e016089e
Nitpick README update
...
PUBLISHED_FROM=28b3a30ad82432e8e3ca194d7e204acf9a998e94
2015-09-22 10:32:01 +01:00
Sergey Lyubka
8a66ff5278
Mongoose rebrand changes
...
PUBLISHED_FROM=50497043e8d0c10487804263cdcb1cbb260d5a26
2015-09-21 15:19:35 +01:00
Sergey Lyubka
e1dd3f06fe
Rename Mongoose constants: NS_ -> MG_, NSF_ -> MG_F_
...
PUBLISHED_FROM=c9cc54df1883aa17606de2b1ffb30f0cd687d037
2015-09-21 15:19:34 +01:00
Deomid Ryabkov
32ab35f61f
Rename hmac_sha1 -> cs_hmac_sha1
...
PUBLISHED_FROM=3d4fbd8192d04add406e304b113ce5ec0b1c1165
2015-09-21 15:19:34 +01:00
Marko Mikulicic
8ab96ec74b
Implement binary and incremental clubby client
...
PUBLISHED_FROM=ba371b8a3d9dd8afcb771144beb8e5c344c7d6c7
2015-09-21 15:19:33 +01:00
Sergey Lyubka
0730590e35
Fix SSL codepath in restful_server example
...
PUBLISHED_FROM=4cd52839b8d2396f50f94f1ce36fa7b4501dc204
2015-09-21 15:19:33 +01:00
Marko Mikulicic
f7e0b1331c
Implement incremental UBJSON serializer
...
PUBLISHED_FROM=fe0936cbf8c16d5b5cfdf674e8e7181f6b2771cc
2015-09-21 15:19:33 +01:00
Marko Mikulicic
17aa2a7092
Implement streaming base64 encoder
...
PUBLISHED_FROM=af3c6c0e8f9806c1bdc570c06cc6eea9995d6e3d
2015-09-21 15:19:33 +01:00
Alexander Alashkin
7d38d05ca7
Use updated sockets
...
PUBLISHED_FROM=30231da54720c709ce98cd0ab208cf9b06814eab
2015-09-21 15:19:33 +01:00
TheTypoMaster
33bad047f0
Fix typo recieve
...
PUBLISHED_FROM=6e2f4fffb91ff18da94d97aba763acbdde496515
2015-09-09 10:21:21 +01:00
Marko Mikulicic
5234b73c29
Add simple core dumper for ESP
...
PUBLISHED_FROM=ec98516ce6aa1c841344adc7aae20b044b3d349b
2015-09-09 10:21:21 +01:00
Sergey Lyubka
c566e2eba5
Mongoose README
...
PUBLISHED_FROM=f2409461d1ef4eef81b5481914bee5e596e906f8
2015-09-08 14:42:13 +02:00
Marko Mikulicic
e565977481
Merge pull request #568 from cesanta/fossamerge
...
Merge dev branch code named Fossa as next stable Mongoose
2015-09-08 14:39:52 +02:00
Marko Mikulicic
8927c9d22b
Merge dev branch code named Fossa as next stable Mongoose
2015-09-08 14:34:30 +02:00
Marko Mikulicic
28eb251ccd
Merge pull request #567 from cesanta/move
...
Fossa merge
2015-09-08 13:28:38 +02:00
Sergey Lyubka
b99dc95b1d
Fossa merge.
...
PUBLISHED_FROM=12ccba10358075024a1195cd0b0c1ea132aae6a3
2015-09-08 12:26:25 +01:00
Sergey Lyubka
75aadb3e79
Fix links
2015-08-26 11:23:54 +01:00
Sergey Lyubka
b6ecd5fb4c
Update readme
2015-08-20 10:20:02 +01:00
Sergey Lyubka
1e7f55ed84
Update readme
2015-08-20 08:56:14 +01:00
Sergey Lyubka
eeadc5ecff
Updated readme
2015-08-18 12:21:33 +01:00
Sergey Lyubka
568ca42988
Updated readme
2015-08-18 11:26:43 +01:00
Sergey Lyubka
7b758bfc9d
Updated readme
2015-08-18 10:47:23 +01:00
Sergey Lyubka
8ef454b75f
Updated readme
2015-08-18 09:50:00 +01:00
Marko Mikulicic
0a2f2fda5c
Merge pull request #563 from cesanta/sdp
...
Tweak event handler a bit for clarity
2015-08-13 15:42:45 +02:00
rojer
6b440918ec
Tweak event handler a bit for clarity
...
Put cases in the order we expect them to occur
2015-08-13 14:38:41 +01:00
Marko Mikulicic
a73fce945c
Merge pull request #562 from cesanta/sdp
...
Swallow responses to internal pings
2015-08-12 19:45:04 +02:00
rojer
d349bb3cc7
Swallow responses to internal pings
2015-08-12 18:35:18 +01:00
Marko Mikulicic
7c4119a287
Merge pull request #561 from cesanta/sdp
...
Mongoose example for server data push
2015-08-12 18:52:51 +02:00
rojer
8a71ad99e6
Mongoose example for server data push
2015-08-12 17:42:05 +01:00
Sergey Lyubka
41b405d7bf
Remove examples/web_server
2015-07-13 11:14:19 +01:00
Sergey Lyubka
30b80dc5ee
Update example
2015-07-13 11:11:26 +01:00
Sergey Lyubka
524aa2e586
Merge pull request #556 from nesteroff/vs2013
...
Fix VS2013 warnings
2015-07-13 11:03:13 +01:00
Yuri Nesterov
990a1b9ae0
Fix VS2013 warnings
2015-07-12 15:43:54 +03:00
Sergey Lyubka
4cb0c6864e
Merge pull request #550 from cesanta/fixpolar
...
Fix ssl close with polarssl
2015-07-02 17:06:30 +01:00
Marko Mikulicic
5183693951
Fix ssl close with polarssl
2015-07-02 16:26:31 +02:00
Sergey Lyubka
e47506f957
Fix unauthenticated body handling
2015-06-22 12:05:31 +01:00
Sergey Lyubka
824e4dc0e4
Fix file upload iteration
2015-06-19 19:01:21 +01:00
Sergey Lyubka
d033497714
Merge pull request #541 from NickCis/connection_param_fix
...
Possible fix in order not to loose the reference of connection_param pointer
2015-06-10 15:32:28 +01:00
Nicolas Cisco
d8028df29d
Quick fix in order not to loose the reference of connection_param pointer
2015-06-10 01:49:37 -03:00
Sergey Lyubka
564683d25a
Fix timeout for cookie auth example
2015-06-05 18:09:27 +01:00
Sergey Lyubka
30c0a3f201
Propagate select() and socketpair() errors to the user
2015-06-04 11:27:31 +01:00
Sergey Lyubka
08fe9ac518
Fix examples
2015-05-20 10:53:10 +01:00
Sergey Lyubka
14d6f71f82
Fix unit test
2015-05-20 10:50:32 +01:00
Sergey Lyubka
29454e2296
Merge pull request #524 from NickCis/array_variables
...
Implementing array varibles
2015-05-20 10:05:48 +01:00
NickCis
d6cbf9f77d
Fixing C coding style mistakes
2015-05-19 13:54:35 -03:00
Sergey Lyubka
b9fead4d6e
Merge pull request #525 from NickCis/mg_vprintf
...
Adding mg_vprintf and mg_vprintf_data.
2015-05-19 15:54:27 +01:00
Sergey Lyubka
c6a04e1719
Fix #523
2015-05-18 11:50:56 +01:00
NickCis
c839a61fea
Adding mg_vprintf and mg_vprintf_data in order to use va_list like functions
2015-05-15 16:20:33 -03:00
NickCis
c06abbc5f7
Implementing array varibles
2015-05-15 15:49:35 -03:00
Sergey Lyubka
c8e88e1710
Sync fossa struct definitions
2015-05-15 17:20:54 +01:00
Sergey Lyubka
bf7a115bf2
Fix url rewrites
2015-05-11 09:13:46 +01:00
Sergey Lyubka
b8dfb69cf5
Merge pull request #514 from cesanta/fix_setsize
...
Fix default windows FD_SETSIZE, closes #506
2015-04-17 07:10:24 +01:00
Marko Mikulicic
1cd9715095
Fix default windows FD_SETSIZE, closes #506
...
https://support.microsoft.com/en-us/kb/111855 describes
that the user is expected to set the FD_SETSIZE macro
before including winsock2.h
2015-04-17 02:30:22 +02:00
Sergey Lyubka
5c7aeac148
Merge pull request #509 from cesanta/Fix_mjpg_streamer_example
...
Fix mjpg_streamer example
2015-04-13 23:37:27 +01:00
Alexander Alashkin
09a80628e6
Fix mjpg_streamer example
2015-04-13 16:02:52 +03:00
Sergey Lyubka
2ff2c369f7
Merge pull request #505 from eugoss/master
...
Inspect POST buffer in mg_get_var() only if first call of get_var() returns -1
2015-04-10 18:31:15 +01:00
Marko Mikulicic
eef70aaf74
Merge pull request #507 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
2015-04-09 13:04:18 +02:00
The Gitter Badger
89ac97caba
Added Gitter badge
2015-04-09 10:58:41 +00:00
Eugene Ossintsev
c00b236c8d
Fix spelling in docs/ReleaseNotes.md and in comments in mongoose.c
2015-04-09 00:15:40 -04:00
Eugene Ossintsev
eacd3f35e0
Inspect POST buffer in mg_get_var() only if first call of get_var() returns -1
...
In mg_get_var() the first call of get_var() inspects the variables of
the query string. If the requested variable is found but the destination
buffer is too small to hold the variable, return -2 right away. If it's
not found, make the second call of get_var() to inspect the POST buffer.
2015-04-05 23:40:50 -04:00
Marko Mikulicic
8a2aa72571
Merge pull request #504 from himanshupsharma/check_fd-setsize
...
Reverting (socket < 0) checks to avoid Windows build failure.
2015-04-03 11:22:50 +02:00
p_himanshu
7da8f273d2
Reverting (socket < 0) checks to avoid Windows build failure.
2015-04-02 16:47:07 -07:00
Sergey Lyubka
a90a5a2b6a
Merge pull request #503 from himanshupsharma/check_fd-setsize
...
Adding a check to avoid undefined behavior if socket is out of the bound...
2015-04-02 18:28:23 +01:00
p_himanshu
b5b819b4a3
Adding a check to avoid undefined behavior if socket is out of the bounds of FD_SETSIZE.
2015-04-01 22:24:29 -07:00
Sergey Lyubka
821e2b3a75
Merge pull request #501 from xant/upstream
...
safety belt : scan_directory() can return without setting arr to a valid value
2015-04-01 20:22:20 +01:00
Sergey Lyubka
773efb0745
Respect WEBSOCKET_OPCODE_CONNECTION_CLOSE coming from client
2015-04-01 18:37:13 +01:00
Andrea Guzzo
ed1904a75d
safety belt : scan_directory() can return without setting arr to a valid value
2015-03-31 12:52:08 +02:00
Sergey Lyubka
a66663f0f6
Fix non-openssl build
2015-03-31 10:38:14 +01:00
Sergey Lyubka
1104688b02
Fix win32 build no2
2015-03-25 17:29:34 +00:00
Sergey Lyubka
36d95e230e
Fix win32 build
2015-03-25 17:10:58 +00:00
Sergey Lyubka
8a27a95a2a
Fix #460
2015-03-24 09:32:16 +00:00
Sergey Lyubka
2e63b5a5e5
Fix #441
2015-03-24 08:04:46 +00:00
Sergey Lyubka
4cbd113d01
Upload multiple files
2015-03-24 07:52:49 +00:00
Sergey Lyubka
ba5ae74144
Merge pull request #495 from mmicko/master
...
OS2 and Android NDK fixes
2015-03-22 17:03:28 +00:00
Miodrag Milanovic
f2b40e5fae
added comment for time_t change
2015-03-22 17:56:22 +01:00
Sergey Lyubka
8ed682930b
Fix #448
2015-03-21 13:17:24 +00:00
Miodrag Milanovic
86ad7922b0
OS2 and Android NDK fixes
...
Note that in Android NDK st_mtime is long unsigned int
2015-03-21 11:04:57 +01:00
Sergey Lyubka
f7476f53c7
Merge pull request #493 from RobertDiPaolo/bugfix/Visual_Studios_Build_Issues
...
Correctly handle _CRT_SECURE_NO_WARNINGS already being set in project se...
2015-03-20 16:29:11 +00:00
Sergey Lyubka
5d6f7ac8ef
Merge pull request #494 from RobertDiPaolo/bugfix/Memory_Leak
...
Fixed Memory Leak
2015-03-20 16:28:15 +00:00
Sergey Lyubka
f16fa5ed55
Merge pull request #492 from RobertDiPaolo/feature/Add_PATCH_Method
...
Added PATCH to list of valid HTTP Methods.
2015-03-20 16:28:11 +00:00
Sergey Lyubka
c0ba32f7a6
Set NS_DISABLE_THREADS ifndef MONGOOSE_ENABLE_THREADS
2015-03-20 15:33:02 +00:00
Sergey Lyubka
409c12a851
Better logic for port resolving
2015-03-18 17:25:46 +00:00
Sergey Lyubka
bcdcbf20ee
Release 5.6
2015-03-18 17:25:31 +00:00
Sergey Lyubka
8fc5b5a55f
Add contribution section to readme
2015-03-18 15:45:52 +00:00
Robert Di Paolo
7cf28a5623
The 'char *ip' variable was being allocated and zeroed but not being used or freed.
2015-03-18 10:04:08 +00:00
Robert Di Paolo
6668c456ac
Correctly handle _CRT_SECURE_NO_WARNINGS already being set in project settings.
2015-03-18 09:56:01 +00:00
Robert Di Paolo
98f2476751
Added PATCH to list of valid HTTP Methods.
2015-03-18 09:48:17 +00:00
Sergey Lyubka
faeedb2930
Sync main
2015-03-18 09:37:52 +00:00
Sergey Lyubka
c8e8f94ffe
Sync main
2015-03-17 17:35:31 +00:00
Sergey Lyubka
22aeb6111b
Update ReleaseNotes
2015-03-17 17:01:16 +00:00
Sergey Lyubka
2d1d2e6534
SIZE_MAX is not defined on MSVC6, use (size_t) ~0
2015-03-17 17:00:59 +00:00
Sergey Lyubka
05c88a98fc
Introduce -dav_root option
2015-03-17 15:34:56 +00:00
Marko Mikulicic
5224afb946
Merge pull request #485 from dsrosario/fix_remove_double_dots
2015-03-17 16:07:46 +01:00
Dinis Rosário
3bd79c7cd5
Fix remove_double_dots_and_double_slashes removing all the dots leading http server to serve wrong URI
...
If the uri is something like '/js/...jquery.js', remove_double_dots_and_double_slashes will remove the 3 dots and the http server will serves the /js/jquery.js file.
remove_double_dots_and_double_slashes should check if a dot or double dots is followed by a slash (or backslash) and only remove this to avoid disclosure attack.
2015-03-17 16:04:59 +01:00
Sergey Lyubka
c52e0744cb
Squashed warnings after size_t change
2015-03-17 13:18:15 +00:00
Sergey Lyubka
6c09c303d0
Merge pull request #456 from sebgod/fix-win32-examples-using-extra
...
Enable building of example/Makefile on Win32
2015-03-17 11:45:36 +00:00
Sergey Lyubka
b6fde06990
Merge pull request #486 from mmicko/master
...
Compile fix
2015-03-16 16:52:48 +00:00
Miodrag Milanovic
af892c9726
compile fix for visual studio
2015-03-14 09:02:25 +01:00
Miodrag Milanovic
df7ad13680
Compile fix
2015-03-13 20:15:19 +01:00
Sergey Lyubka
057c2d4b42
Merge pull request #484 from davidmilligan/master
...
fix compiler warnings for 64 bit compilation
2015-03-10 18:40:16 +00:00
David Milligan
6c9b43bcf5
fix compiler warnings for 64 bit compilation
2015-03-09 20:01:09 -04:00
Sergey Lyubka
a91438acae
Fix #477
2015-03-09 16:09:05 +00:00
Sergey Lyubka
a6fa51dbc2
Merge pull request #481 from cesanta/web_server_ssl
...
web_server_ssl
2015-03-06 14:39:50 +00:00
Alexander Alashkin
6ceac6c84c
web_server_ssl
2015-03-06 15:08:57 +02:00
Sergey Lyubka
288efe3c23
Add -DMONGOOSE_ENABLE_THREADS to other examples
2015-03-06 09:29:56 +00:00
Sergey Lyubka
5207545a8b
Add -DMONGOOSE_ENABLE_THREADS to proxy server example
2015-03-06 09:28:27 +00:00
Sergey Lyubka
716d524f9b
Add -DMONGOOSE_ENABLE_THREADS to Makefile
2015-03-06 09:25:30 +00:00
Sergey Lyubka
a434bab767
Merge pull request #480 from cesanta/polarssl_examples_1
...
websocket_ssl_proxy sample for polarsll
2015-03-06 09:03:38 +00:00
Alexander Alashkin
e9633a8d2d
websocket_ssl_proxy
2015-03-06 09:32:08 +02:00
Sergey Lyubka
c7b6a6f0ea
Added mg_websocket_printf()
2015-03-05 10:54:51 +00:00
Sergey Lyubka
6cdb9f7ed3
Merge pull request #474 from mmicko/master
...
OS/2 patches by KO Myung-Hun
2015-03-04 17:18:16 +00:00
Sergey Lyubka
4502dd0c86
s/MONGOOSE_NO_THREADS/MONGOOSE_ENABLE_THREADS
2015-03-03 18:59:23 +00:00
Sergey Lyubka
95055f6048
Add winsock2.h include for win32
2015-03-03 18:32:14 +00:00
Sergey Lyubka
2c36532ec4
Merge pull request #465 from doug16rogers/vs9-compile-ipv6
...
Allow for compilation in Visual Studio with NS_ENABLE_IPV6.
2015-03-03 18:28:07 +00:00
Sergey Lyubka
f2b0b9c737
Fix Win32 build in mg_websocket_write()
2015-02-24 13:32:22 +00:00
Sergey Lyubka
b3866439a0
Fix mg_create_server() signature
2015-02-24 13:17:11 +00:00
Miodrag Milanovic
4f2205a667
OS/2 patches by KO Myung-Hun
...
Upstream patch from MAME project
2015-02-24 11:12:09 +01:00
Sergey Lyubka
6cec1d36a8
Merge pull request #463 from CurlyMoo/patch-1
...
Replace obsolete gethostbyname by getaddrinfo
2015-02-19 11:48:35 +00:00
CurlyMoo
4238370ae1
Check for getaddrinfo availability.
2015-02-19 12:09:34 +01:00
Sergey Lyubka
b4924b715e
Merge pull request #473 from mmicko/master
...
Fix for MINGW builds
2015-02-17 16:19:37 +00:00
Miodrag Milanovic
7a0385dcac
Fix for MINGW builds
2015-02-17 11:08:23 +01:00
Sergey Lyubka
44a146faf6
SSL fixes
2015-02-16 18:34:07 +00:00
Sergey Lyubka
53a55da7bc
Add type cast in ns_out()
2015-02-16 18:19:15 +00:00
Sergey Lyubka
bf44277764
Define _XOPEN_SOURCE for MinGW build
2015-02-16 18:17:30 +00:00
Sergey Lyubka
a2e1da6e30
Add overflow checks
2015-02-12 19:12:58 +00:00
Sergey Lyubka
bef3f85ba8
Merge pull request #466 from 0-wiz-0/master
...
Only define _XOPEN_SOURCE on Linux.
2015-02-10 18:07:07 +00:00
Thomas Klausner
eb72a63cca
Only define _XOPEN_SOURCE on Linux.
...
Fixes the build on NetBSD.
The comment says it's only needed on Linux, and AFAIK Linux
is the only operating system that only adds symbols when it's defined;
others, like NetBSD or Solaris, also hide symbols.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
2015-01-29 15:02:26 +01:00
Doug Rogers
f19bbc73cc
Allow for compilation in Visual Studio 9 (2008) with NS_ENABLE_IPV6.
2015-01-29 00:12:35 -05:00
Sergey Lyubka
25326b3b12
net skeleton -> fossa
2015-01-28 12:33:48 +00:00
CurlyMoo
10ee430bfd
Add debug line and adapt to styling guide
...
Replaced tabs with spaces.
2015-01-27 22:55:13 +01:00
CurlyMoo
10d0bfdab4
Replace obsolete gethostbyname by getaddrinfo
...
This also protect against the latest glibc bug
2015-01-27 22:45:34 +01:00
Sergey Lyubka
6b6637c337
Adopt SSL guide to current way of setting SSL cert.
2015-01-21 17:41:45 +00:00
Sergey Lyubka
878acca213
Removed Lua docs
2015-01-21 17:30:30 +00:00
Sergey Lyubka
ace9285966
Updated years
2015-01-19 18:25:14 +00:00
Sergey Lyubka
cdc167b0cc
Merge pull request #459 from joshcriz/patch-1
...
Update Makefile
2015-01-19 16:32:24 +00:00
Josh Criz
a0dd396b95
Update Makefile
...
Fixing typo in 'clean' section
2015-01-16 17:59:08 -06:00
Sebastian Godelet
8082501b9c
Enable building of example/Makefile on Win32
...
Adding example/.gitignore to ignore *.exe
Appending -lws2_32 at the end of CFLAGS_EXTRA if running make on
Windows to enable easy compiling under that platform.
Obsoletes pull request #454
2015-01-10 16:41:58 +08:00
Sergey Lyubka
e4ad3010be
Fix #416
2014-12-30 03:56:29 +00:00
Sergey Lyubka
03a82ef848
Merge pull request #452 from CurlyMoo/patch-2
...
Typo
2014-12-27 18:25:09 +00:00
CurlyMoo
9459d69dcc
Typo
2014-12-27 18:35:09 +01:00
Sergey Lyubka
b28662362d
Merge pull request #449 from ursine/patch-1
...
64-bit length fields on ARM don't work
2014-12-21 20:54:52 +00:00
Sergey Lyubka
66450bf3d1
Merge pull request #450 from sebgod/master
...
mongoose.c: using application/javascript for .js
2014-12-21 16:07:12 +00:00
Sebastian Godelet
478ca05e7a
mongoose.c: using application/javascript for .js
...
As of http://www.rfc-editor.org/rfc/rfc4329.txt , the preferred MIME type
for JavaScript is application/javascript.
2014-12-21 22:16:05 +08:00
Gary Coulbourne
8cad0a72f9
64-bit length fields on ARM don't work
...
ARM only allows aligned accesses. GCC generated unaligned accesses for the copy buffer, but ARM forces alignment, causing the first two bytes to be trampled. I changed the mechanism to create two temporaries and memcpy them in. It now works on ARM (and x86) for large websocket chunks.
2014-12-17 19:14:30 -05:00
Sergey Lyubka
31178f4d48
Typo fixed in the comment
2014-12-15 12:03:50 +00:00
Sergey Lyubka
7a5485493e
Added md5 copyright
2014-12-11 18:01:58 +00:00
Sergey Lyubka
d3cbb160f5
Removed travis config file
2014-12-01 11:33:16 +00:00
Sergey Lyubka
45ff2c2c19
Removed $Date$ marker
2014-11-28 14:16:49 +00:00
Sergey Lyubka
c3db7b141b
Removed $Date$ from header
2014-11-28 12:21:36 +00:00
Sergey Lyubka
0a0ea36ace
Fix examples/proxy_server build
2014-11-24 19:33:24 +00:00
Sergey Lyubka
72ed954721
Merge pull request #440 from zapline/patch-1
...
Update ReleaseNotes.md(spell mistake)
2014-11-20 07:35:24 +00:00
zapline
33e035273a
Update ReleaseNotes.md
...
spell mistake
2014-11-20 09:58:29 +08:00
Sergey Lyubka
223f36c130
Updated Readme
2014-11-17 15:50:02 +00:00
Sergey Lyubka
4c0bc5bd03
Updated Readme
2014-11-17 15:49:37 +00:00
Sergey Lyubka
808a5f6f53
Update README.md
2014-11-13 13:48:43 +00:00
Sergey Lyubka
404e635665
Fixed Android build
2014-11-12 22:16:32 +00:00
Sergey Lyubka
9d7a60a63f
Merge pull request #433 from jhnwkmn/malloc
...
Consistent use of NS_MALLOC, NS_FREE and NS_REALLOC
2014-11-10 10:35:07 +00:00
Johan Wikman
ba9c74187b
Consistent use of NS_MALLOC, NS_FREE and NS_REALLOC
...
malloc(), free() and realloc() were used in a number of places.
Added NS_CALLOC as well.
2014-11-10 08:29:19 +02:00
Sergey Lyubka
e9d4847cbb
Merge pull request #432 from jhnwkmn/o_binary
...
O_BINARY might be defined.
2014-11-09 10:06:16 +00:00
Sergey Lyubka
ea76de07ee
Merge pull request #436 from jhnwkmn/no-cgi
...
MONGOOSE_NO_CGI needs special handling.
2014-11-09 10:04:54 +00:00
Sergey Lyubka
5a8c468ff7
Merge pull request #435 from jhnwkmn/size-macros
...
Added size macros.
2014-11-09 10:01:59 +00:00
Sergey Lyubka
5b143a6237
Merge pull request #434 from jhnwkmn/no-user
...
Added MONGOOSE_NO_USER configuration define.
2014-11-09 09:56:31 +00:00
Sergey Lyubka
d244a7fdfd
Merge pull request #437 from jhnwkmn/nsf-close-immediately
...
If socket is about to be closed do not add to [read|write]_set.
2014-11-09 09:55:13 +00:00
Johan Wikman
300a27de99
If socket is about to be closed do not add to [read|write]_set.
...
If NSG_CLOSE_IMMEDIATELY is on, then the socket will be closed,
which means that (if the socket was added to either read_set or
write_set) the subsequent select will in turn be performed on a
socket that has been closed.
Standard socket implementations seem to ignore a descriptor
referring to a closed socket but LWIP
(http://savannah.nongnu.org/projects/lwip/ ) crashes. So better
not to add to the sets.
2014-11-07 15:48:23 +02:00
Johan Wikman
04a15a0c10
MONGOOSE_NO_CGI needs special handling.
...
MONGOOSE_NO_CGI is implied by both NS_DISABLE_SOCKETPAIR and
MONGOOSE_NO_FILESYSTEM. Thus, so as not to get complaints about
the same define being defined twice, some extra checks are needed.
2014-11-07 15:29:25 +02:00
Johan Wikman
f0f6ae05aa
Added size macros.
...
On very resource constraind devices you need to be able to
control the size of all buffers and structures placed on the
stack.
2014-11-07 14:31:44 +02:00
Johan Wikman
8a7d535d92
Added MONGOOSE_NO_USER configuration define.
...
Low-end systems, not running a proper OS, may not have the
concept of a user.
2014-11-07 14:01:13 +02:00
Sergey Lyubka
e7ac6024de
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-11-07 10:05:51 +00:00
Sergey Lyubka
9981b99ac8
Extra NULL check in iter2(). Fix #430
2014-11-07 10:05:42 +00:00
Johan Wikman
87a36c0c30
O_BINARY might be defined.
...
Some unix environments defines O_BINARY.
2014-11-07 12:02:11 +02:00
Sergey Lyubka
f2b13761c0
Merge pull request #431 from jhnwkmn/reduce-includes
...
Conditionally include dirent.h and dlfcn.h
2014-11-07 09:51:30 +00:00
Johan Wikman
9786478a31
Conditionally include dirent.h and dlfcn.h
...
If you do not have a filesystem or do not support dav or
dynamic loading, the corresponding header files need not
be included (some environments might not have them).
2014-11-07 11:05:51 +02:00
Sergey Lyubka
7d236d7f33
Merge pull request #429 from AlexAltea/master
...
Added #define's for deprecated POSIX names
2014-11-01 20:39:34 +00:00
Alexandro Sánchez Bach
e098a7292d
Added #define's for deprecated POSIX names
2014-10-30 23:07:48 +01:00
Sergey Lyubka
632b3a38a9
5.5 -> 5.6
2014-10-28 11:43:51 +00:00
Sergey Lyubka
23141c2fef
Added 5.5 release notes
2014-10-28 11:42:47 +00:00
Sergey Lyubka
c8ba652f1c
5.4 -> 5.5
2014-10-28 11:20:44 +00:00
Sergey Lyubka
6ac2fa2ae6
Updated listening_port for SSL option
2014-10-28 11:20:10 +00:00
Sergey Lyubka
0322ec5647
Include query_string when proxying requests
2014-10-22 12:14:21 +01:00
Sergey Lyubka
a5223a9850
Squashed ARM warnings
2014-10-21 15:51:42 +01:00
Sergey Lyubka
016968ada1
Removed net_skeleton dependency from examples/proxy_server
2014-10-17 20:29:39 +01:00
Sergey Lyubka
710b888122
Added -pthread to test/Makefile::CFLAGS
2014-10-17 20:12:29 +01:00
Sergey Lyubka
cf53959f34
Fix broken push (type cast)
2014-10-17 20:03:15 +01:00
Sergey Lyubka
30d29fb77f
Merge pull request #425 from mpromonet/master
...
make compile with g++ (fix invalid cast from ‘void*’)
2014-10-17 19:49:59 +01:00
MPR
c05b51bbfc
make compile with g++ (fix invalid conversion from ‘void*’ to ‘ns_connection*’)
2014-10-16 23:57:14 +02:00
Sergey Lyubka
1ab704ac92
Fixed -DMONGOOSE_NO_DIRECTORY_LISTING build
2014-10-16 10:46:33 +01:00
Sergey Lyubka
2bc77e065c
Fixed build
2014-10-15 14:29:22 +01:00
Sergey Lyubka
790daabf7d
Enhanced RESTful API example
2014-10-15 11:58:47 +01:00
Sergey Lyubka
a6598a1278
Added #define close(x) _close(x) for WIN32 to squash warning 4996 that VS2013 gives
2014-10-15 08:30:49 +01:00
Sergey Lyubka
0af5502b74
Removed redundant #defines for -D_WIN32 case
2014-10-15 08:28:17 +01:00
Sergey Lyubka
f059e41cac
Removed mg_set_listening_socket() and mg_get_listening_socket(), added mg_copy_listeners()
2014-10-14 15:25:56 +01:00
Sergey Lyubka
2cce91de9a
Refactored code for multiple listeners
2014-10-14 14:22:26 +01:00
Sergey Lyubka
0ff5b5b044
Added support for multiple listeners
2014-10-14 13:59:22 +01:00
Sergey Lyubka
0c5d9a98c2
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-10-14 11:10:47 +01:00
Sergey Lyubka
c9fbdfc1b5
mg_open() accepts 3rd param: mode
2014-10-14 11:10:42 +01:00
Sergey Lyubka
6193b5171c
Merge pull request #421 from mpromonet/master
...
transmit http answer code using http_client
2014-10-14 11:10:03 +01:00
Sergey Lyubka
911115ccc0
Added -pthread to CFLAGS for linux
2014-10-14 10:05:12 +00:00
Sergey Lyubka
2f3ddeccc5
Properly trim whitespaces from the hashbang CGI interpreter path
2014-10-13 15:57:34 +01:00
MPR
ca3f5a3257
follow Google style
2014-10-12 13:58:06 +02:00
MPR
df206bc05a
transmit http answer code using http_client
2014-10-11 17:56:35 +02:00
Sergey Lyubka
531fec34fd
Added missing files
2014-10-10 14:35:39 +01:00
Sergey Lyubka
4c10d1f356
mongoose_server -> web_server
2014-10-10 13:58:45 +01:00
Sergey Lyubka
94dccdd6f4
c# -> csharp
2014-10-10 10:02:58 +01:00
Sergey Lyubka
544352b7d3
moved jni to android_build
2014-10-10 09:51:57 +01:00
Sergey Lyubka
29c2ae4886
moved multi_threaded to separate dir
2014-10-10 09:51:02 +01:00
Sergey Lyubka
1a2e2ec2fd
moved proxy to separate dir
2014-10-10 09:48:43 +01:00
Sergey Lyubka
3e780d21fc
moved form.c example to separate dir
2014-10-10 09:44:45 +01:00
Sergey Lyubka
63fcea0159
moved form_submit to separate dir
2014-10-10 09:40:07 +01:00
Sergey Lyubka
e5d21225be
moved big_upload to separate dir
2014-10-10 09:39:12 +01:00
Sergey Lyubka
0c9caf3120
Moved server.c to separate dir
2014-10-10 09:37:18 +01:00
Sergey Lyubka
54ba36c1c9
check_login_form_submission() factored in separate function
2014-10-09 11:44:12 +01:00
Sergey Lyubka
5077350589
Added cookie based auth example
2014-10-09 11:29:39 +01:00
Sergey Lyubka
2d880c4f5c
Moved auth.c to separate dir
2014-10-09 09:42:07 +01:00
Sergey Lyubka
4ca4c862a5
Updated net_skeleton, added extra_headers param to mg_send_file()
2014-10-09 09:26:45 +01:00
Sergey Lyubka
0918df1566
Removed reference to chat.c
2014-10-05 17:29:33 +01:00
Sergey Lyubka
aa2583cc26
Added enable_proxy
2014-10-03 11:54:00 +01:00
Sergey Lyubka
e1b1d39635
Removed conflicting MIT-related comment block
2014-10-01 12:11:04 +01:00
Sergey Lyubka
3bf82dd541
Merge pull request #419 from grodansparadis/master
...
connection_data -> user_data
2014-09-22 15:03:19 +01:00
Sergey Lyubka
2896965c97
Fixed link to examples
2014-09-20 08:32:29 +01:00
Ake Hedman
53b784b143
connection_data -> user_data
2014-09-19 08:20:37 +02:00
Sergey Lyubka
8e91e3a305
Timeout only non-listening connections
2014-09-16 07:47:40 +01:00
Sergey Lyubka
dbc07c8b00
Moved mjpg_streamer to a separate dir
2014-09-15 19:05:30 +01:00
Sergey Lyubka
ce953575e2
Not closing listening connections
2014-09-15 13:48:55 +01:00
Sergey Lyubka
80db048578
Added more dependencies in test/Makefile
2014-09-15 01:28:03 +01:00
Sergey Lyubka
382d165574
Added MONGOOSE_NO_MMAP conditional
2014-09-15 01:18:38 +01:00
Sergey Lyubka
0fb2f38cb7
Fixed mg_connect() call
2014-09-14 15:06:09 +01:00
Sergey Lyubka
aa007f1285
Updated travis config
2014-09-11 15:55:18 +01:00
Sergey Lyubka
8752910330
Better UDP support
2014-09-11 15:52:42 +01:00
Sergey Lyubka
2a5a8eec49
removed chat_server dir in examples
2014-09-10 00:59:31 +01:00
Sergey Lyubka
ceca52de30
Moved file send_file example to separate dir
2014-09-09 23:23:29 +01:00
Sergey Lyubka
8a3691055c
Moved file upload example to separate dir
2014-09-09 23:20:23 +01:00
Sergey Lyubka
56d12c89da
Typo in hello_world.c fixed
2014-09-09 22:47:07 +01:00
Sergey Lyubka
2cfce4d8b2
Added copyright
2014-09-09 22:46:24 +01:00
Sergey Lyubka
f372faf614
Moved hello.c example to its own dir
2014-09-09 22:44:57 +01:00
Sergey Lyubka
882f3b3ac3
removed hello.lp
2014-09-09 18:26:03 +01:00
Sergey Lyubka
fac0e9b0ac
Moved unit test to dedicated dir
2014-09-09 18:23:48 +01:00
Sergey Lyubka
a3cf67c380
Moved examples/mkdata.pl -> scripts/embed_binary_files.pl
2014-09-09 18:11:57 +01:00
Sergey Lyubka
2987cbdb5c
ws_ssl -> websocket_ssl_proxy
2014-09-09 18:09:33 +01:00
Sergey Lyubka
6083b9c5c5
Updated to the recent skeleton. SSL address format changed
2014-09-09 18:07:55 +01:00
Sergey Lyubka
83237a02d9
Made local copies of dependencies
2014-09-09 17:03:50 +01:00
Sergey Lyubka
965188bac9
removed chat.c
2014-09-09 17:01:06 +01:00
Sergey Lyubka
66da41d401
Adopted to the recent net_skeleton
2014-09-09 17:00:49 +01:00
Sergey Lyubka
cfd334ac6c
Moved websocket echo server example
2014-09-09 09:27:35 +01:00
Sergey Lyubka
b5f6254c1e
Added date marker
2014-09-08 23:30:52 +01:00
Sergey Lyubka
dcbd1cbbd1
Moved pubsub example to websocket_chat
2014-09-08 23:29:34 +01:00
Sergey Lyubka
a3b568f460
removed lua_ddl.c
2014-09-08 23:22:46 +01:00
Sergey Lyubka
75770aec80
Merge pull request #415 from mmicko/master
...
Added mg_mmap and mg_munmap utility functions for memory mapping files
2014-09-07 11:55:27 +01:00
Sergey Lyubka
3a8ae7ac17
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-09-06 10:11:43 +01:00
Sergey Lyubka
b116b2fa82
mg_poll_server doc corrected
2014-09-06 10:10:22 +01:00
m.milanovic@levi9.com
7806609773
Added mg_mmap and mg_munmap utility functions for memory mapping files
2014-09-04 15:05:42 +02:00
Sergey Lyubka
72f45aa7e2
Merge pull request #414 from mmicko/master
...
Fixed compile on varois MINGW versions
2014-09-02 12:34:58 +01:00
m.milanovic@levi9.com
5e3e6a6dce
Fixed compile on MINGW so it is confirmed working on versions 4.6.x till 4.9.x
2014-09-02 12:11:21 +02:00
Sergey Lyubka
1388bb1db4
Fixed line endings
2014-09-01 21:02:16 +01:00
Sergey Lyubka
3cc0d16f65
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-09-01 20:55:37 +01:00
Sergey Lyubka
b50095fa61
Added $Date$ markers
2014-09-01 20:54:12 +01:00
Sergey Lyubka
7ad85219d8
Merge pull request #413 from mcallegari/master
...
Fixed build warning of signed/unsigned conditional expression
2014-08-30 12:42:09 +01:00
Massimo Callegari
347a249d10
Fixed build warning of signed/unsigned conditional expression
2014-08-30 13:04:11 +02:00
Sergey Lyubka
07d982129a
Passing NS events together with the NC pointer
2014-08-29 23:28:34 +01:00
Sergey Lyubka
73f2602ba0
Updated due to ssl_wrapper.h refactoring
2014-08-26 14:42:24 +01:00
Sergey Lyubka
44561d163a
updated travis config
2014-08-22 22:39:48 +01:00
Sergey Lyubka
c941a1a39a
Proper struct mg_connection cleanup in close_local_endpoint()
2014-08-22 16:26:30 +01:00
Sergey Lyubka
bee22312bc
removed dead code
2014-08-21 04:13:33 +01:00
Sergey Lyubka
bdb16c624c
Added MG_RECV event and mg_send_file_data() func
2014-08-21 04:09:06 +01:00
Sergey Lyubka
e389e70d05
squashed warn in mg_terminate_ssl()
2014-08-20 21:54:09 +01:00
Sergey Lyubka
695559f691
Updated to the latest SSL wrapper
2014-08-13 09:17:20 +01:00
Sergey Lyubka
13be74b4c6
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-08-11 16:20:25 +01:00
Sergey Lyubka
02a1032fd4
updated ssl_wrapper
2014-08-11 16:19:25 +01:00
Sergey Lyubka
788f35b19c
Merge pull request #411 from mmicko/master
...
Make mongoose compile on mingw environment
2014-08-11 15:01:33 +01:00
Miodrag Milanovic
3721efe1e9
Make mongoose compile on mingw environment
2014-08-11 15:27:23 +02:00
Sergey Lyubka
e0822ffb78
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-08-08 14:25:58 +01:00
Sergey Lyubka
ae7d5a8f94
Bumping up default timeout from 30 to 300 sec
2014-08-08 14:25:44 +01:00
Sergey Lyubka
ced7a2e0b5
Merge pull request #410 from zinosat/avoid_largefile_redefinition
...
Avoid unconditional definition of _LARGEFILE_SOURCE
2014-08-07 22:13:09 +01:00
Davide Viti
5ed6708468
Avoid unconditional definition of _LARGEFILE_SOURCE
...
On some build systems (i.e. Buildroot), _LARGEFILE_SOURCE is defined
at "higher level" as default CFLAG definition.
This fix avoids the following compilation warning:
mongoose-5.4/mongoose.c:52:0: warning: "_LARGEFILE_SOURCE" redefined [enabled by default]
#define _LARGEFILE_SOURCE // Enable fseeko() and ftello() functions
^
<command-line>:0:0: note: this is the location of the previous definition
2014-08-07 22:08:12 +02:00
Sergey Lyubka
9fe53f307b
Added http client example
2014-08-05 17:14:41 +01:00
Sergey Lyubka
c64d30e1f6
removed make_settings.mak
2014-08-05 16:41:14 +01:00
Sergey Lyubka
b4c25fc7ba
Added ALL_PROGS
2014-08-05 16:40:51 +01:00
Sergey Lyubka
b67b618811
Added guard for MONGOOSE_NO_FILESYSTEM
2014-08-04 22:32:24 +01:00
Sergey Lyubka
5a19438f70
Added guard for MONGOOSE_NO_FILESYSTEM
2014-08-04 22:31:59 +01:00
Sergey Lyubka
860addf1e3
MONGOOSE_NO_SOCKETPAIR -> NS_DISABLE_SOCKETPAIR
2014-08-03 18:56:19 +01:00
Sergey Lyubka
03d571a119
Merge pull request #407 from kuiash/master
...
Populate HTTP warning codes
2014-08-03 18:29:15 +01:00
Sergey Lyubka
0d9ecffc53
Do not dealloc conn->request in mg_forward()
2014-08-03 12:41:15 +01:00
Daniel O'Connell
d4c8384b85
ws_ssl example
2014-08-03 12:40:10 +01:00
Sergey Lyubka
bd40145301
moved hex dumping to skeleton
2014-08-01 17:35:59 +01:00
Sergey Lyubka
9b42494316
Added general example makefile settings
2014-08-01 13:30:05 +01:00
Sergey Lyubka
2daff6959f
Added #define matrix
2014-08-01 09:11:00 +01:00
Sergey Lyubka
e9c434a6a1
updated net skeleton
2014-08-01 09:05:50 +01:00
Sergey Lyubka
d6fba7e45d
Added travis file
2014-08-01 08:08:54 +01:00
Sergey Lyubka
0a0130b90c
removed
2014-08-01 07:53:51 +01:00
Sergey Lyubka
facf2af66e
Clearing off HTTP headers in close_local_endpoint()
2014-07-31 20:05:25 +01:00
Sergey Lyubka
cc54195f59
Added mg_forward()
2014-07-31 20:04:59 +01:00
Sergey Lyubka
e2fb707d9f
Added SSL_CTX_set_mode()
2014-07-30 11:27:37 +01:00
kuiash
7dfff935d6
Populate HTTP warning codes
...
Includes changing 201 "Server Error" to "Internal Server Error"
List mostly borrowed from here http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
418 and 451 also added
Local testing showed a problem with 202 reported as "Server Error" instead of "Accepted"
2014-07-29 12:48:22 +01:00
Sergey Lyubka
5727a5c0ed
Removed lua examples
2014-07-29 07:39:20 +01:00
Sergey Lyubka
268d2e9cbe
better explanation for websocket2.c example
2014-07-28 12:19:00 +01:00
Sergey Lyubka
1e7da874a4
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-07-28 12:15:23 +01:00
Sergey Lyubka
7875a8c2bd
release notes for 5.4
2014-07-28 12:15:13 +01:00
Sergey Lyubka
b0355d45ae
Merge pull request #403 from pavel-pimenov/fix-cache-call-stat
...
stat - function result cache
2014-07-27 11:13:26 +01:00
Sergey Lyubka
91136d7731
Merge pull request #406 from Cykey/master
...
Set the correct json content-type
2014-07-27 11:12:52 +01:00
Pavel Pimenov
01a058d29b
Remove file_stat_t st_cgi;
2014-07-27 13:10:49 +04:00
Pavel Pimenov
e6eca1738f
80 characters limit + remove tabs
2014-07-27 12:53:37 +04:00
Pavel Pimenov
2108ec5a0c
Fix style for pointer
2014-07-27 12:44:08 +04:00
David M.
bc4e47630a
Set the correct json content-type
...
Chance text/json to application/json to comply with the RFC.
See http://www.ietf.org/rfc/rfc4627.txt for more information.
2014-07-26 20:55:59 -04:00
Pavel Pimenov
f41c9a2a1f
stat - function result cache
2014-07-23 11:26:20 +04:00
Sergey Lyubka
6c77208236
release notes dates
2014-07-21 21:38:45 +01:00
Sergey Lyubka
386d2e5cd4
fix leak in handle_propfind()
2014-07-18 13:00:43 +01:00
Sergey Lyubka
b738fdbffa
updated net skeleton
2014-07-08 11:28:03 +01:00
Sergey Lyubka
b5704850db
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-07-08 11:10:17 +01:00
Sergey Lyubka
9c67e8960e
updated certs
2014-07-08 11:10:08 +01:00
Sergey Lyubka
d3dff4e1d5
Merge pull request #391 from pavel-pimenov/pvs-studio-fix-zu
...
Change printf mask %zu -> %lu
2014-07-07 08:58:23 +01:00
Pavel Pimenov
82872e86fd
Change printf mask %zu -> %lu
...
for MS VC++ compatibility http://stackoverflow.com/questions/15610053/correct-printf-format-specifier-for-size-t-zu-or-iu
2014-07-07 09:24:48 +04:00
Sergey Lyubka
ac229b6606
Merge pull request #387 from Z-Wave-Me/master
...
Disallow WebDAV MKCOL/PUT/DELETE requests to protected files
2014-06-28 21:40:11 +01:00
Alex Skalozub
a6bf2bcbf4
Should also disallow PROPFIND as well
2014-06-29 00:03:52 +04:00
Alex Skalozub
b0cf8304cb
Disallow WebDAV MKCOL/PUT/DELETE requests to protected files (like .htpasswd)
2014-06-28 23:14:21 +04:00
Sergey Lyubka
0d9fe39dbb
ns_read_from_socket(): calling recv() in a loop until failure
2014-06-25 11:43:07 +01:00
Sergey Lyubka
708af6d9c5
more comments in big_upload.c
2014-06-24 17:09:00 +01:00
Sergey Lyubka
e4c71425c9
Added big_upload.c
2014-06-24 17:04:26 +01:00
Sergey Lyubka
6e07215c1c
Using Multiple inputs for upload example
2014-06-24 16:35:59 +01:00
Sergey Lyubka
ca9603301e
removed trailing newline
2014-06-24 16:35:26 +01:00
Sergey Lyubka
d6c388042c
QNX SSL upload fix
2014-06-23 13:52:07 +01:00
Sergey Lyubka
6f66d794e8
Refactor NS_POLL case in mg_ev_handler
2014-06-20 11:41:13 +01:00
Sergey Lyubka
1389eec784
Added comment for mg_terminate_ssl() call
2014-06-19 09:55:10 +01:00
Sergey Lyubka
6ef795e082
manual mitm for oracle.com
2014-06-19 09:53:38 +01:00
Sergey Lyubka
1e5d258e9e
Wording for licensing clarified
2014-06-18 11:30:57 +01:00
Sergey Lyubka
70eb4c4bbc
exported mg_terminate_ssl
2014-06-18 10:59:29 +01:00
Sergey Lyubka
a639e10a4d
squash QNX warning about execle() call
2014-06-17 13:28:45 +01:00
Sergey Lyubka
48750e67f6
ENABLE_PROXY is visible with MONGOOSE_NO_FILESYSTEM
2014-06-17 10:50:47 +01:00
Sergey Lyubka
ce60379af6
sending 405 for proxy request if connect is not allowed
2014-06-16 11:27:17 +01:00
Sergey Lyubka
e0b9e4abfd
Added enable_proxy
2014-06-16 11:06:57 +01:00
Sergey Lyubka
665f205527
squash warning under mingw
2014-06-16 10:46:50 +01:00
Sergey Lyubka
030daaf5d5
squash warning under mingw
2014-06-16 10:44:56 +01:00
Sergey Lyubka
760511ec49
squashed warning around NS_STACK_SIZE
2014-06-16 10:21:31 +01:00
Sergey Lyubka
203688a34b
Added comment for Win32 SO_RESUSEADDR
2014-06-13 10:19:46 +01:00
Sergey Lyubka
29f4703e4f
Adding zero-length chunk for long-running requests
2014-06-13 07:57:27 +01:00
Sergey Lyubka
3cec6f6745
keeping alive long-lived connections
2014-06-12 10:58:49 +01:00
Sergey Lyubka
abcea07641
Fix #373
2014-06-11 20:37:35 +01:00
Sergey Lyubka
6a54704b29
mg_set_option(): always set correct actual listening port
2014-06-11 20:12:23 +01:00
Sergey Lyubka
8a2fbac4c0
Calling event handler in MITM mode before making connection to the target host
2014-06-11 09:56:34 +01:00
Sergey Lyubka
96ce6bac69
ns_server_poll(): setting current_time to now after select()
2014-06-11 09:44:18 +01:00
Sergey Lyubka
50c0b958ff
Added -root cmd line flag to proxy example
2014-06-10 12:22:50 +01:00
Sergey Lyubka
44416902d6
Changed debug in do_proxy()
2014-06-10 12:22:30 +01:00
Sergey Lyubka
25e646c1a1
Squashed warnings for MONGOOSE_NO_FILESYSTEM
2014-06-10 10:26:58 +01:00
Sergey Lyubka
bd723bdc38
Removed dead code in websocket2.c
2014-06-09 17:33:26 +01:00
Sergey Lyubka
5e57031724
Added pubsub example
2014-06-09 17:26:22 +01:00
Sergey Lyubka
c583913290
Added pubsub example
2014-06-09 17:25:08 +01:00
Sergey Lyubka
870ca615de
Added mg_next()
2014-06-09 17:24:51 +01:00
Sergey Lyubka
64b51699f8
Added MG_WS_CONNECT
2014-06-09 16:32:56 +01:00
Sergey Lyubka
50a889dac0
Inlined parse_url()
2014-06-04 12:32:47 +01:00
Sergey Lyubka
0ff0788458
Formatting change for mg_send_file()
2014-06-04 12:32:31 +01:00
Sergey Lyubka
fec6009edb
mg_send_file() doc changed
2014-06-03 18:49:17 +01:00
Sergey Lyubka
c4f172a120
Documented mg_send_file()
2014-06-03 18:45:37 +01:00
Sergey Lyubka
464c77314d
Amended file sending example
2014-06-03 18:03:13 +01:00
Sergey Lyubka
f51ca8d5d1
Added mg_send_file(). Changed sending function to return send_iobuf length.
2014-06-03 18:02:55 +01:00
Sergey Lyubka
7b37e0cb8b
Added simplistic flow control in transfer_file_data()
2014-06-03 17:00:52 +01:00
Sergey Lyubka
c7925353e7
Added parens around expression to squash warning under QNX SDP 6.6.0
2014-06-03 14:25:54 +01:00
Sergey Lyubka
bd23ec4323
Removed a bit of dead code. Added more comments in proxy_event_handler()
2014-05-29 17:40:06 +01:00
Daniel O'Connell
3671b2632d
proxy unit test reference implementation
2014-05-29 17:04:28 +01:00
Daniel O'Connell
25115a694c
proxy support changes
2014-05-29 17:04:13 +01:00
Sergey Lyubka
2436f9d6c3
squashed win32 warnings
2014-05-22 07:31:19 +01:00
Sergey Lyubka
2238951c18
Integrated Dans net skeleton changes
2014-05-21 16:18:21 +01:00
Daniel O'Connell
f266dd2c94
Removed noisy debug messages
2014-05-20 16:40:47 +01:00
Daniel O'Connell
b03358cb03
Fixes for the proxy code
2014-05-19 19:08:02 +01:00
Sergey Lyubka
1bede7e28b
Added test for parse_url()
2014-05-19 12:56:07 +01:00
Sergey Lyubka
3536670b82
re-worded FAQ section
2014-05-18 16:13:04 +01:00
Daniel O'Connell
3235c05fd6
Added proxy functionality
2014-05-18 13:22:33 +01:00
Daniel O'Connell
63db54e7b5
Added AV faq
2014-05-18 10:53:54 +01:00
Daniel O'Connell
1db51eb788
Moved sse.html to proxy_web_root/index.html
2014-05-13 14:51:16 +01:00
Daniel O'Connell
0e640ae885
Made setopt() wrapper around mg_set_option()
2014-05-13 13:02:08 +01:00
Daniel O'Connell
1bff6df2a7
Enabled SSL for proxy example
2014-05-13 12:33:27 +01:00
Daniel O'Connell
d0e66de225
Re-added ssl_ca_certificate option
2014-05-13 12:30:30 +01:00
Daniel O'Connell
f537670ce2
Synced net skeleton
2014-05-13 12:28:39 +01:00
Daniel O'Connell
4cb3341a15
Added proxy example, with SSE html page
2014-05-13 11:22:31 +01:00
Daniel O'Connell
d52d9a4a6f
Added pem files
2014-05-13 11:08:18 +01:00
Daniel O'Connell
4a076c7ea4
Added proxy to the clean target
2014-05-13 10:56:32 +01:00
Sergey Lyubka
db6e883c22
Added mg_wakeup_server_ex(), removed mg_wakeup_server() and mg_iterate_over_connections()
2014-05-13 09:33:10 +01:00
Sergey Lyubka
804da054b5
Removed extra line in the comment
2014-05-12 23:24:03 +01:00
Sergey Lyubka
fb4e701545
Added mg_wakeup_server_ex() for pushing data
2014-05-12 23:22:57 +01:00
Sergey Lyubka
ccff4abf13
Added proxy target
2014-05-12 10:47:08 +01:00
Sergey Lyubka
24a7936907
Squashed warning for non-ssl case in ns_set_ssl_ca_cert()
2014-05-11 16:05:07 +01:00
Sergey Lyubka
0993994139
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-05-11 13:43:10 +01:00
Sergey Lyubka
8b740536de
Added ssl_ca_certificate option
2014-05-11 13:42:59 +01:00
Sergey Lyubka
e851aac853
Merge pull request #371 from cry-inc/master
...
Fixed wrong behavior of mg_set_option() with option "listening_port" caused by SO_REUSEADDR when using Windows
2014-05-07 17:00:36 +01:00
cry-inc
a39861b7bf
Fixed wrong behavior of mg_set_option() with option "listening_port" caused by SO_REUSEADDR when using Windows
2014-05-07 16:38:23 +02:00
Sergey Lyubka
63490249ba
Merge pull request #368 from cry-inc/master
...
Fixed wrong MIME type for .rar files
2014-04-30 10:45:09 +01:00
cry-inc
704f057384
Fixed wrong MIME type for .rar files
2014-04-30 10:30:35 +02:00
Sergey Lyubka
40968bc496
Moved other products in a different section
2014-04-30 09:18:55 +01:00
Sergey Lyubka
6873f3c5f6
Removed idle_timeout_ms
2014-04-29 18:01:25 +01:00
Sergey Lyubka
ba5cd7267a
Added MONGOOSE_SEND_NS_EVENTS to the embedding doc
2014-04-28 15:04:39 +01:00
Sergey Lyubka
1bb98e5e8e
Exported mg_websocket_printf(), mg_url_encode(). Added unit test for mg_url_encode()
2014-04-25 18:04:24 +01:00
Sergey Lyubka
a7774d0f1a
Added mg_websocket_printf(). added MONGOOSE_SEND_NS_EVENTS
2014-04-24 14:09:54 +01:00
Sergey Lyubka
f52c756fbb
Calling SSL_free() in ns_close_conn()
2014-04-16 16:45:31 +01:00
Sergey Lyubka
cc586c6ba2
php->basic
2014-04-15 14:13:38 +01:00
Sergey Lyubka
606eab7f4f
Passing PUT content to the event handler
2014-04-14 16:14:13 +01:00
Sergey Lyubka
872b85b5f2
more on -access_control_list
2014-04-14 13:03:47 +01:00
Sergey Lyubka
35bd2b6032
Added form.c
2014-04-10 22:18:01 +01:00
Sergey Lyubka
c5287b9044
iobuf_append() refactored: allocating exactly as many bytes as needed
2014-04-09 23:52:16 +01:00
Sergey Lyubka
223f6d960e
README message changed
2014-04-09 18:10:49 +01:00
Sergey Lyubka
464b895116
Added enum for websocket opcodes
2014-04-09 15:16:03 +01:00
Sergey Lyubka
05d7b7c8bc
Added MG_WS_HANDSHAKE
2014-04-09 11:55:36 +01:00
Sergey Lyubka
d8b4db37a0
Squashed warnings
2014-04-09 11:37:08 +01:00
Sergey Lyubka
6bb49c780c
Updated net skeleton code
2014-04-09 11:32:23 +01:00
Sergey Lyubka
3a60c5764d
Unit test target corrected
2014-04-07 19:07:41 +01:00
Sergey Lyubka
a8b38e4ab9
mg_set_option() sets NULL if value is empty
2014-03-31 15:02:20 +01:00
Sergey Lyubka
8750f8af1f
Added cast in try_parse()
2014-03-31 09:51:47 +01:00
Sergey Lyubka
e94a02dc12
Added more in 5.4 release notes
2014-03-31 09:49:42 +01:00
Sergey Lyubka
5680b0fcc5
Removed redundant cast in try_parse()
2014-03-31 09:34:31 +01:00
Sergey Lyubka
33c56b0edc
Init local_ip and local_port properly in mg_connection
2014-03-30 22:50:10 +01:00
Sergey Lyubka
e62e48397d
Keeping absolute path for config file
2014-03-30 16:00:03 +01:00
Sergey Lyubka
8be30350be
mg_set_option(): allow NULL as value. Fast success if old_value == new_value.
2014-03-30 15:59:39 +01:00
Sergey Lyubka
2609a2ab72
Fixed comment for mg_template()
2014-03-30 12:47:27 +01:00
Sergey Lyubka
5a04ab2c56
Added mg_template() function
2014-03-30 12:45:48 +01:00
Sergey Lyubka
4739de6c28
Removed DLL interface and Lua conditional
2014-03-30 12:34:32 +01:00
Sergey Lyubka
639d7a2fd8
Fixing MinGW compilation: pid_t -> process_id_t
2014-03-28 09:18:38 +00:00
Sergey Lyubka
8115ce1d82
Handling SSL_write() error
2014-03-27 11:18:20 +00:00
Sergey Lyubka
3558b587b7
Fixed linking problem for -DMONGOOSE_NO_FILESYSTEM
2014-03-27 10:13:34 +00:00
Sergey Lyubka
e21ec58ea8
dav fixes: using auth if auth file is set
2014-03-26 23:13:14 +00:00
Sergey Lyubka
74135bca7d
link fixed
2014-03-26 18:58:58 +00:00
Sergey Lyubka
d369f31608
return 404 for non-existent propfind URIs
2014-03-26 16:34:55 +00:00
Sergey Lyubka
d4b14ca3c1
Better API documentation
2014-03-26 14:13:30 +00:00
Sergey Lyubka
f0994896d5
FileSharing doc nitpick
2014-03-26 12:27:44 +00:00
Sergey Lyubka
cfdd430b98
Added hexdump_file option
2014-03-26 12:20:02 +00:00
Sergey Lyubka
a6c05a9e83
changed handle_propfind() to report only dir entry when listing dir
2014-03-24 20:39:32 +00:00
Sergey Lyubka
94f63787bb
Restored void * parameter for iterate_over_connections()
2014-03-24 16:01:45 +00:00
Sergey Lyubka
367f5df328
match_prefix -> mg_match_prefix
2014-03-24 16:00:17 +00:00
Sergey Lyubka
f096138d6e
Added release note
2014-03-23 20:02:41 +00:00
Sergey Lyubka
0d00cd51e6
Fix #356
2014-03-23 19:59:03 +00:00
Sergey Lyubka
b216210a13
Moving lua server side to server.c
2014-03-23 15:33:39 +00:00
Sergey Lyubka
166833f330
Added release notes
2014-03-21 11:47:52 +00:00
Sergey Lyubka
4d6bedfd4e
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-03-20 15:01:18 +00:00
Sergey Lyubka
ace8c1736c
Added mg_load_dll()
2014-03-20 15:01:05 +00:00
Sergey Lyubka
c658a54d18
changed set_absolute_path() signature
2014-03-20 14:58:37 +00:00
Sergey Lyubka
781a1dc25e
Merge pull request #352 from ranzhengyuan/some-idea
...
I think that when the socket invalid, the return value should be -1.
2014-03-20 10:34:18 +00:00
冉正源
3ea3b8dfa4
I think that the socket is invalid, the return should be -1.
2014-03-19 22:32:41 +08:00
Sergey Lyubka
a514e143ff
updated faw and tutorials
2014-03-19 11:41:01 +00:00
Sergey Lyubka
e1486a79e3
Merge pull request #350 from solomonhuang/nodav
...
Remove MONGOOSE_NO_DAV on DAV_AUTH_FILE options
2014-03-19 11:25:15 +00:00
Sergey Lyubka
ee615248e3
Merge pull request #351 from da4089/master
...
Tyop fix.
2014-03-19 09:33:58 +00:00
David Arnold
687e0e2ee8
Tyop fix.
2014-03-19 04:49:47 +00:00
Solomon Huang
19aefcb7dd
Remove MONGOOSE_NO_DAV on DAV_AUTH_FILE options
...
Building with -DMONGOOSE_NO_DAV will fail.
2014-03-19 01:53:02 +08:00
Sergey Lyubka
6a46244a21
embedding guide for MG_POLL fixed
2014-03-14 08:19:54 +00:00
Sergey Lyubka
60674c11c9
API docs regarding MG_POLL changed
2014-03-13 12:23:53 +00:00
Sergey Lyubka
91c9ab807b
Forwarding POST data to the CGI process
2014-03-12 22:43:04 +00:00
Sergey Lyubka
9231c7346c
match_prefix -> mg_match_prefix
2014-03-12 18:35:36 +00:00
Sergey Lyubka
20cb3a823a
Added ecos & qnx
2014-03-12 14:19:36 +00:00
Sergey Lyubka
cbd8d69e6d
Added hello world for Lua
2014-03-12 12:47:41 +00:00
Sergey Lyubka
f7fcfa6a42
Fixed C# example to work with 5.3
2014-03-12 12:31:53 +00:00
Sergey Lyubka
293c5e5852
Moved screenshots down
2014-03-11 16:59:17 +00:00
Sergey Lyubka
ceb866b4ee
Using img tags for screenshots
2014-03-11 16:57:38 +00:00
Sergey Lyubka
2f9166e96e
Added screenshots for mongoose
2014-03-11 16:51:54 +00:00
Sergey Lyubka
fe0e0e69e5
File sharing tutorial wording
2014-03-11 15:36:23 +00:00
Sergey Lyubka
db96641c10
Added logo
2014-03-11 06:13:59 +00:00
Sergey Lyubka
fe83928ca4
Added logo
2014-03-11 06:11:56 +00:00
Sergey Lyubka
014414f17f
Docs links made separate
2014-03-11 06:07:06 +00:00
Sergey Lyubka
6ffe2d7f7a
Typo fixed in readme
2014-03-11 06:04:44 +00:00
Sergey Lyubka
30c82d7efe
Wording in README changed
2014-03-11 06:03:20 +00:00
Sergey Lyubka
999c4ad26c
5.3 -> 5.4
2014-03-10 17:02:00 +00:00
Sergey Lyubka
30a7965135
added lsp link
2014-03-10 11:21:52 +00:00
Sergey Lyubka
a8a017a048
docs updated
2014-03-10 09:23:06 +00:00
Sergey Lyubka
eac8ffabc4
docs updated
2014-03-10 09:19:01 +00:00
Sergey Lyubka
a7a17711ec
Resetting endpoint_type in open_local_endpoint()
2014-03-10 08:35:41 +00:00
Sergey Lyubka
18e28ef879
Added lua includes
2014-03-09 20:22:51 +00:00
Sergey Lyubka
ce7515fca9
Merge pull request #349 from jhorneman/master
...
Exposing Lua support functions
2014-03-09 20:18:49 +00:00
Jurie Horneman
d5a78fb664
Fixed bug.
2014-03-09 21:12:34 +01:00
Jurie Horneman
1b3a1b74ac
Exposed Lua support functions.
2014-03-09 21:11:06 +01:00
Sergey Lyubka
8dd76e6ef4
Using ns_start_thread()
2014-03-09 19:50:34 +00:00
Sergey Lyubka
976b5f37c1
Added Lua callback
2014-03-09 19:30:41 +00:00
Sergey Lyubka
31489ab7b1
Lua fixes
2014-03-09 19:26:58 +00:00
Sergey Lyubka
1eb59940a4
Re-init rewrites var in convert_uri_to_file_name()
2014-03-09 13:27:39 +00:00
Sergey Lyubka
576d769b56
Corrected links in tutorials
2014-03-09 13:13:25 +00:00
Sergey Lyubka
afaba7ee17
Lua calls, birth_time fixed
2014-03-09 13:13:13 +00:00
Sergey Lyubka
40f257ef2b
lua build instructions fixed
2014-03-09 13:12:49 +00:00
Sergey Lyubka
5840dc8153
Links updated
2014-03-07 17:08:23 +00:00
Sergey Lyubka
5ed3dafb56
Added warning about PHP 5.5
2014-03-07 14:46:24 +00:00
Sergey Lyubka
b99bf306ec
fixed image links
2014-03-07 14:40:34 +00:00
Sergey Lyubka
89fae72aa7
added
2014-03-07 14:24:37 +00:00
Sergey Lyubka
ab147e8f19
Added MONGOOSE_NO_SSI to MONGOOSE_NO_FILESYSTEM
2014-03-06 13:37:23 +00:00
Sergey Lyubka
81a78f9c8b
Added query string to access log
2014-03-05 11:22:23 +00:00
Sergey Lyubka
370aeefdde
Added error pages and vhosts to readme
2014-03-05 11:19:18 +00:00
Sergey Lyubka
c5407a75f4
#define EV_HANDLER NULL in server.c
2014-03-05 10:12:43 +00:00
Sergey Lyubka
7217aa22f1
Embedded guide
2014-03-05 02:53:19 +00:00
Sergey Lyubka
69bd5f7aa2
SSL_accept logic fix
2014-03-05 02:19:05 +00:00
Sergey Lyubka
41b3c1b23e
warning squashed in convert_uri_to_file_name()
2014-03-05 01:59:58 +00:00
Sergey Lyubka
f639409533
warning squashed in convert_uri_to_file_name()
2014-03-05 01:59:32 +00:00
Sergey Lyubka
67c44799c8
SSL_accept() error handling fix
2014-03-05 01:57:09 +00:00
Sergey Lyubka
4646e2ad55
Added mjpg example
2014-03-04 20:23:37 +00:00
Sergey Lyubka
b77532ea3f
Added mjpg example
2014-03-04 20:22:46 +00:00
Sergey Lyubka
ed8168e8a1
Added virtual hosts support via url_rewrites
2014-03-04 16:15:02 +00:00
Sergey Lyubka
39e2d2ad55
Appending query_string to the URI when redirecting on HTTP error
2014-03-04 15:01:05 +00:00
Sergey Lyubka
27c6656398
SSL_accept fixes
2014-03-04 13:23:40 +00:00
Sergey Lyubka
ffe83051fe
build fixed
2014-03-04 13:15:56 +00:00
Sergey Lyubka
93cd77ffad
Changed links
2014-03-03 21:18:57 +00:00
Sergey Lyubka
279c06c64c
Cleaned up cruft from mongoose.h
2014-03-03 10:56:17 +00:00
Sergey Lyubka
570c8213b6
Cleaned unit test
2014-03-03 10:54:35 +00:00
Sergey Lyubka
f521999ea6
Calling EP_CLIENT on close
2014-03-03 10:27:56 +00:00
Sergey Lyubka
e41df3cf9c
MG_REQ_BEGIN -> MG_REQUEST, killed MG_REQ_END, add MG_REPLY. Restored server test
2014-03-03 10:26:27 +00:00
Sergey Lyubka
65f484291f
got rid of multiline comment
2014-03-03 09:45:00 +00:00
Sergey Lyubka
77db89961b
mg_stat() fix for paths like X:\
2014-03-03 01:00:38 +00:00
Sergey Lyubka
ad50310bb6
Added index.shtml to index files
2014-03-02 19:49:15 +00:00
Sergey Lyubka
66ec3d1f1e
Added defines for popen and pclose, for SSI under Win32
2014-03-02 18:50:02 +00:00
Sergey Lyubka
a9da86d05c
Mentioned SSI
2014-03-02 18:28:40 +00:00
Sergey Lyubka
5f25a88821
Restored SSI functionality
2014-03-02 18:27:51 +00:00
Sergey Lyubka
fd7dc33645
unbroke unit test
2014-03-02 17:20:24 +00:00
Sergey Lyubka
9c22771a43
Merge pull request #345 from nielsegberts/master
...
Also clean up multi_threaded and websocket_html.c on make clean
2014-03-02 15:48:25 +00:00
Niels Egberts
11640cc3c6
Also clean up multi_threaded and websocket_html.c on make clean
2014-03-02 14:55:34 +00:00
Sergey Lyubka
2264520a2f
Example changed to evented API
2014-03-02 13:05:00 +00:00
Sergey Lyubka
2f0b411ddd
Added -pthread flag to unix compilation example
2014-03-02 13:00:44 +00:00
Sergey Lyubka
e0aceb4f3a
Fixed windows build for examples
2014-03-02 12:23:53 +00:00
Sergey Lyubka
ea9a60a59a
Updated examples to conform to the evented API
2014-03-02 12:16:09 +00:00
Sergey Lyubka
458320cffb
Fixed #343 in conn2() for Lua
2014-03-02 10:12:12 +00:00
Sergey Lyubka
e0214af422
Using private ns_avprintf() in mg_printf_data()
2014-03-02 10:07:30 +00:00
Sergey Lyubka
df5e997ea7
ns_server_poll() waking up by ns_server_wakeup()
2014-03-01 01:55:40 +00:00
Sergey Lyubka
0a3cb63c73
Added mg_wakeup_server()
2014-03-01 01:47:01 +00:00
Sergey Lyubka
37f7f3fb12
Merge pull request #339 from nenioscio/master
...
Fix issue #338
2014-03-01 01:19:31 +00:00
Sergey Lyubka
2ac970fa16
Moving to event-based API, temporary breaking tests
2014-03-01 01:17:39 +00:00
Sergey Lyubka
de35a353d4
pphp -> php
2014-02-27 22:02:18 +00:00
Klaus Wagner
dbbda02f70
Fix issue #338
2014-02-27 22:12:46 +01:00
Sergey Lyubka
725c30446c
more docs
2014-02-25 20:39:34 +00:00
Sergey Lyubka
60473ae41a
more docs
2014-02-25 20:39:00 +00:00
Sergey Lyubka
951d20f904
Added coniditional to use net_skeleton separately
2014-02-25 18:52:23 +00:00
Sergey Lyubka
85a6abd58b
Clearing flags in close_local_endpoint()
2014-02-25 12:02:45 +00:00
Sergey Lyubka
2fbe09ad7c
Restored jni build dir for Android
2014-02-25 08:12:42 +00:00
Sergey Lyubka
23325efab2
Added time.h
2014-02-25 08:10:19 +00:00
Sergey Lyubka
107902bae4
add_to_set(): fix around non-negative SOCKET on Windows
2014-02-24 08:22:40 +00:00
Sergey Lyubka
9bbf4c8384
Fixed problem with mg_printf_data()
2014-02-22 16:11:47 +00:00
Sergey Lyubka
c39a712540
Win32 build fix
2014-02-21 14:13:06 +00:00
Sergey Lyubka
e9f6111ba1
re-added signal.h
2014-02-20 17:47:07 +00:00
Sergey Lyubka
ba267a32fd
squashed warning in read_from_socket
2014-02-20 17:44:47 +00:00
Sergey Lyubka
f64ebbe0b1
Guarded on_cgi_data() call by ifdef, thanks to Pavel Pimenov
2014-02-20 12:33:46 +00:00
Sergey Lyubka
8865dd5e84
Moved unit_test.c to examples
2014-02-20 12:13:59 +00:00
Sergey Lyubka
ce57f47de0
Added missing signal.h
2014-02-20 09:49:42 +00:00
Sergey Lyubka
48be2dbc2a
Added conditional for handling idle websocket conns
2014-02-20 07:32:33 +00:00
Sergey Lyubka
8905522a94
Setting last_io_time in ns_add_sock()
2014-02-20 06:26:44 +00:00
Sergey Lyubka
eea1680cf9
open_cgi_endpoint() strrchr fix
2014-02-19 16:44:01 +00:00
Sergey Lyubka
d5004cb7eb
PF_INET -> AF_INET, unbreaks FreeBSD
2014-02-19 16:39:30 +00:00
Sergey Lyubka
1d1a05bf39
Embedded net_skeleton
2014-02-19 16:38:53 +00:00
Sergey Lyubka
2009069037
merge
2014-02-19 16:36:27 +00:00
Sergey Lyubka
8f7703c2a9
moved to net_skeleton
2014-02-19 16:34:51 +00:00
Sergey Lyubka
8e87c4f013
Merge pull request #329 from abimaelmartell/fix/freebsd-compilation
...
fix compilation under FreeBSD
2014-02-14 23:46:07 +00:00
Abimael Martell
639a6dc2a8
fix compilation under FreeBSD
2014-02-14 13:21:14 -08:00
Sergey Lyubka
cead9a04ca
Typo fixed
2014-02-11 15:21:54 +00:00
Sergey Lyubka
e528093027
Formatted example
2014-02-11 15:20:19 +00:00
Sergey Lyubka
c432b783fb
Formatted example
2014-02-11 15:19:18 +00:00
Sergey Lyubka
e06976836f
Typo fixed
2014-02-11 15:18:20 +00:00
Sergey Lyubka
c9f7407573
More comments in example
2014-02-11 15:16:55 +00:00
Sergey Lyubka
a40e59dbe6
URL corrected
2014-02-11 09:56:10 +00:00
Sergey Lyubka
61ee3d36d0
Merge pull request #324 from eichin/patch-1
...
doc typos
2014-02-11 09:55:47 +00:00
Mark Eichin
94dbf21ffb
doc typos
...
just saw them while reading...
2014-02-11 03:41:09 -05:00
Sergey Lyubka
998425b14b
Styling changes for hexdump
2014-02-10 10:21:57 +00:00
Sergey Lyubka
6900dd733a
Merge pull request #322 from pavel-pimenov/master
...
Fix copy-paste for MONGOOSE_HEXDUMP feature
2014-02-10 09:48:26 +00:00
Pavel Pimenov
9e4cd054c8
Fix copy-paste for MONGOOSE_HEXDUMP feature
2014-02-10 12:00:51 +04:00
Sergey Lyubka
5dc317fcb0
Added -DMONGOOSE_HEXDUMP feature
2014-02-09 20:57:11 +00:00
Sergey Lyubka
fbd5d77ce8
Added note about CGI env vars
2014-02-07 20:23:37 +00:00
Sergey Lyubka
6f8751b479
chat server is going to be in its own dir
2014-02-07 13:04:02 +00:00
Sergey Lyubka
877c4dc698
websocket example responses: 15 times -> 3 times
2014-02-07 13:03:28 +00:00
Sergey Lyubka
2dfc79129a
better lua build
2014-02-07 13:03:11 +00:00
Sergey Lyubka
416f4bf10f
Merge pull request #321 from pavel-pimenov/master
...
Add #ifndef MONGOOSE_NO_FILESYSTEM
2014-02-07 07:45:20 +00:00
Pavel Pimenov
f9a99530ff
Add #ifndef MONGOOSE_NO_FILESYSTEM
2014-02-07 11:02:12 +04:00
Sergey Lyubka
940b65e4db
Merge pull request #320 from xant/upstream
...
added a new handler callback to be used when the http connection is being closed
2014-02-06 21:00:17 +00:00
Andrea Guzzo
b22f7d3a49
added a new handler callback to be used when the http connection is being closed
...
so that in case of connections closed prematurely, the user can clear resources
eventually bound to the connection using the 'connection_param' member of the
mg_connection structure
2014-02-06 11:22:13 +01:00
Sergey Lyubka
eaa0e26a85
Starting to rebuild chat example on Lua
2014-02-06 10:18:30 +00:00
Sergey Lyubka
a3a63f7e56
Using mg_connection::callback_param for mg_iterate_over_connection()
2014-02-06 10:00:20 +00:00
Sergey Lyubka
c9036f3ac0
Added workaround for non-compliant runtimes in alloc_vprintf()
2014-02-05 12:33:36 +00:00
Sergey Lyubka
60858d7fe5
NO_WEBSOCKET -> MONGOOSE_NO_WEBSOCKET
2014-02-04 19:57:00 +00:00
Sergey Lyubka
1c914bde1d
Merge pull request #316 from To1ne/master
...
use `mg_set_request_handler`
2014-02-04 11:55:52 -08:00
Toon Claes
a487332aa0
use mg_set_request_handler
2014-02-04 20:48:38 +01:00
Sergey Lyubka
3987d4d560
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-02-04 18:13:10 +00:00
Sergey Lyubka
8d3181e0bf
examples/html -> examples/chat_html_root
2014-02-04 18:13:02 +00:00
Sergey Lyubka
0f1a59aeb4
Increased env buf size 4096 -> 8192. Passing TMPDIR to CGI.
2014-02-04 18:11:56 +00:00
Sergey Lyubka
2cdf259940
Merge pull request #315 from To1ne/patch-1
...
Correct return values: PROCESSED or CALL_AGAIN
2014-02-04 06:51:41 -08:00
Toon Claes
0187fe943a
Correct return values: PROCESSED or CALL_AGAIN
2014-02-04 15:24:32 +01:00
Sergey Lyubka
a34d1ec00a
Better handling of MONGOOSE_NO_SOCKETPAIR
2014-02-04 14:04:54 +00:00
Sergey Lyubka
e70d98b7b0
Added fixes for eCos
2014-02-04 09:59:53 +00:00
Sergey Lyubka
bea012a3c1
Removed redundant addenv call
2014-02-04 08:06:49 +00:00
Sergey Lyubka
eb2d470f65
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-02-03 17:54:46 +00:00
Sergey Lyubka
652c352394
Passing SERVER_NAME, TMP and TEMP env vars to CGI.
2014-02-03 17:54:31 +00:00
Sergey Lyubka
f1b37b3101
Merge pull request #313 from xant/upstream
...
bugfix: set the correct status if we still have pending data
2014-02-03 04:52:10 -08:00
Sergey Lyubka
81b9876af8
5.2 -> 5.3
2014-02-01 16:53:09 +00:00
Sergey Lyubka
7010addadb
NO_AUTH -> MONGOOSE_NO_AUTH
2014-02-01 15:17:13 +00:00
xant
9e118c8a31
bugfix: set the correct status if we still have pending data
2014-01-31 19:09:12 +01:00
Sergey Lyubka
2fc654ac35
page.lp -> dirscan.lp
2014-01-30 17:49:37 +00:00
Sergey Lyubka
45861c7890
Disabling options if functionality is not enabled
2014-01-30 14:54:02 +00:00
Sergey Lyubka
1957879e10
Casting to int in mg_sprintf() call in handle_cgi
2014-01-29 12:34:51 +00:00
Sergey Lyubka
ddbe690698
CGI directory logic fixed
2014-01-29 11:42:14 +00:00
Sergey Lyubka
9ba1596c46
Closing connection after mg_send_digest_auth()
2014-01-29 01:24:21 +00:00
Sergey Lyubka
de509ae952
Fix around pid_t for mingw, thanks to Jay
2014-01-28 20:09:12 +00:00
Sergey Lyubka
77817cd019
Squashed the warnings
2014-01-28 13:42:26 +00:00
Sergey Lyubka
7083bea56b
mg_parse_header(): allowing no spaces for comma-separated list
2014-01-28 13:01:28 +00:00
Sergey Lyubka
3dffd7604a
Removed warnings
2014-01-28 12:55:20 +00:00
Sergey Lyubka
5a67af0c73
Using 1 ms in mg_poll_server
2014-01-28 12:51:27 +00:00
Sergey Lyubka
14526a2109
mg_add_uri_handler -> mg_set_request_handler()
2014-01-28 12:42:13 +00:00
Sergey Lyubka
a6cfbd2536
docs URL changed
2014-01-28 10:48:27 +00:00
Sergey Lyubka
0d28f99275
wrapped pid_t and S_ISDIR definitions into ifndef for mingw build
2014-01-27 11:12:43 +00:00
Sergey Lyubka
a281e99661
calling auth handler wrapped in MONGOOSE_NO_AUTH
2014-01-27 11:10:46 +00:00
Sergey Lyubka
170df7b676
local and remote port made unsigned short
2014-01-27 11:08:32 +00:00
Sergey Lyubka
3fa5c69f98
Fixed handle_delete() stat call
2014-01-27 11:06:05 +00:00
Sergey Lyubka
e31f3058fa
Added test for rewrites
2014-01-27 11:03:44 +00:00
Sergey Lyubka
83a9a726d3
Checking path existence
2014-01-26 11:24:24 +00:00
Sergey Lyubka
8ae0400b0d
Added ability to set "0" as listening port. Exported local_ip and local_port to the client.
2014-01-25 13:50:57 +00:00
Sergey Lyubka
037fdbcccb
Ignoring chdir() return value. Resetting mg_conn in close_local_endpoint()
2014-01-25 09:45:47 +00:00
Sergey Lyubka
5d2ac4e0a6
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-01-24 20:50:21 +00:00
Sergey Lyubka
f977757a9d
Added mg_set_auth_handler()
2014-01-24 20:49:57 +00:00
Sergey Lyubka
1db13aeed5
Merge pull request #304 from xant/master
...
allow to define a default mime-type
2014-01-24 09:51:51 -08:00
Andrea Guzzo
956788d7de
changed mg_get_mime_type to expect the default type as argument
...
instead of using a configuration option
2014-01-24 15:56:21 +01:00
Andrea Guzzo
45f6612096
allow to define a default mime-type to use when lookup in the internal table fails
...
instead of always returning 'text/plain'
To allow setting a different default mime-type the mg_get_mime_type() api has been
extended to require an mg_server parameter.
Note that using a static global as default mime type wouldn't have allowed us to
control it via a configuration option because there is not global initialization phase
and configuration options are provided (and specific) to each server instance.
This means that different servers can be configured to use a different default mime-type
(which is also a desired behaviour in many scenarios) when lookup fails.
2014-01-24 14:45:19 +01:00
Sergey Lyubka
2392156fd4
Not exiting on a wrong option, best effort to recover
2014-01-23 20:57:27 +00:00
Sergey Lyubka
cf1811f8c3
Added build instruction for windows
2014-01-23 12:00:40 +00:00
Sergey Lyubka
93c5335d80
USE_POST_SIZE_LIMIT -> MONGOOSE_USE_POST_SIZE_LIMIT, and unit test added
2014-01-23 11:24:00 +00:00
Sergey Lyubka
192205b10b
Added
2014-01-23 10:36:08 +00:00
Sergey Lyubka
0377eea9c5
Added enum for callback return codes
2014-01-22 18:25:05 +00:00
Sergey Lyubka
ad89868564
Moved must_hide_file to under #ifndef MONGOOSE_NO_FILESYSTEM
2014-01-22 18:24:28 +00:00
Sergey Lyubka
976f286134
Made mg_connection::content_len int -> size_t, which is 64-bit on 64-bit systems
2014-01-20 20:57:21 +00:00
Sergey Lyubka
503a1a749d
Added unit test for MONGOOSE_USE_SSL
2014-01-20 20:50:30 +00:00
Sergey Lyubka
45a4266172
more examples added
2014-01-20 11:21:35 +00:00
Sergey Lyubka
2ea17e8c6d
Adjusted docs and makefile to use correct preproc flags
2014-01-20 11:17:09 +00:00
Sergey Lyubka
67b7d79710
Removed comment about MONGOOSE_USE_STACK_SIZE
2014-01-20 11:10:30 +00:00
Sergey Lyubka
2e35e25935
ENABLE_DBG -> MONGOOSE_ENABLE_DEBUG, USE_STACK_SIZE -> MONGOOSE_USE_STACK_SIZE
2014-01-20 11:04:12 +00:00
Sergey Lyubka
d86d409d3c
Preprocessor definitions prefixed by MONGOOSE_
2014-01-20 10:54:15 +00:00
Sergey Lyubka
1109d3aa3c
Guarded #define EINPROGRESS
2014-01-20 09:02:57 +00:00
Sergey Lyubka
8208d9e250
Fixed -DUSE_SSL build
2014-01-20 09:01:16 +00:00
Sergey Lyubka
fdd086b11c
moved discard_leading_iobuf_bytes() out from conditional
2014-01-20 08:55:34 +00:00
Sergey Lyubka
5825e3ea74
Adding use_ssl to mg_connect()
2014-01-20 08:55:03 +00:00
Sergey Lyubka
061ba99124
Using vnotify() for die()
2014-01-20 08:54:06 +00:00
Sergey Lyubka
ead098f726
Setting server_name
2014-01-19 17:01:43 +00:00
Sergey Lyubka
7a129c17ba
Added http client with unit tests
2014-01-19 16:32:43 +00:00
Sergey Lyubka
400084ea8a
read_from_client -> read_from_socket
2014-01-17 16:58:19 +00:00
Sergey Lyubka
82ad9a073a
Calling long running connections regardless of select() status
2014-01-17 16:37:35 +00:00
Sergey Lyubka
22aea8acac
Better comment for websocket example
2014-01-17 16:37:05 +00:00
Sergey Lyubka
40e5c744da
Calling long-running URI handlers on each poll iteration
2014-01-17 15:49:16 +00:00
Sergey Lyubka
e648681f1d
Moved mg_connect()
2014-01-17 15:42:35 +00:00
Sergey Lyubka
02f19fc05a
Using mg_handler_t for iterate_over_connections()
2014-01-17 11:45:57 +00:00
Sergey Lyubka
7690f9e34b
Fixed websocket example, and websocket callback calling logic.
2014-01-17 10:17:15 +00:00
Sergey Lyubka
65c1278975
win32 build of server.c fixed
2014-01-16 14:40:26 +00:00
Sergey Lyubka
05e1135940
Added stand-alone console executable
2014-01-16 13:53:18 +00:00
Sergey Lyubka
7b6e8fb93c
Moved idle_timeout_ms into compile-time option
2014-01-16 13:23:23 +00:00
Sergey Lyubka
9f1679e900
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-01-15 18:05:43 +00:00
Sergey Lyubka
c0af018e20
removed build dir
2014-01-15 18:02:55 +00:00
Sergey Lyubka
d553ae992a
Unit test moved to top
2014-01-15 17:55:39 +00:00
Sergey Lyubka
89ef8f2f30
Removed method checks for CGI
2014-01-15 11:46:05 +00:00
Sergey Lyubka
9115a99f47
Fixed scanf format in parse_port_string()
2014-01-15 11:06:37 +00:00
Sergey Lyubka
bbc65c7987
put_deleve_auth_file -> dav_auth_file. added placeholders for user
2014-01-15 07:57:59 +00:00
Sergey Lyubka
bac0f75dd6
int sock -> sock_t sock
2014-01-15 07:10:09 +00:00
Sergey Lyubka
6440c358c1
C++ friendliness fix
2014-01-14 23:20:23 +00:00
Sergey Lyubka
6f84c8bbfb
Using unicode API for service creation
2014-01-14 21:05:35 +00:00
Sergey Lyubka
0adbfcba96
Moved send_options out of NO_DAV conditional
2014-01-14 19:28:29 +00:00
Sergey Lyubka
136c3e8200
Eat prior POST data in close_local_endpoint()
2014-01-14 13:57:55 +00:00
Sergey Lyubka
7d699ea73c
Added URI handler return value
2014-01-14 13:27:00 +00:00
Sergey Lyubka
fc37b08139
URI handler status code drives streaming behavior
2014-01-14 13:16:58 +00:00
Sergey Lyubka
3aaf47d4e4
Return 1 from the URI handler
2014-01-14 12:50:13 +00:00
Sergey Lyubka
346179d1f1
keep-alive for all EP_USER requests
2014-01-14 00:44:27 +00:00
Sergey Lyubka
0148bc804a
Added NO_THREADS wrapper
2014-01-13 21:35:45 +00:00
Sergey Lyubka
472e198d4a
Fixed mg_parse_header to allow NULL strings
2014-01-13 21:31:18 +00:00
Sergey Lyubka
bf6fc3262f
Added test for static config opts
2014-01-13 21:08:03 +00:00
Sergey Lyubka
53311e8d6b
removed ssi tests
2014-01-13 20:39:22 +00:00
Sergey Lyubka
cc636197bc
Added auth example
2014-01-13 17:58:14 +00:00
Sergey Lyubka
6b4f7e785d
Added upload example
2014-01-13 17:01:11 +00:00
Sergey Lyubka
73ed83c5e3
Added mg_parse_multipart
2014-01-13 16:29:12 +00:00
Sergey Lyubka
56f128514e
Implemented mg_set_http_error_handler()
2014-01-13 12:17:47 +00:00
Sergey Lyubka
f0571f9fd6
Using mg.request_info.content
2014-01-13 10:58:14 +00:00
Sergey Lyubka
a3663da90e
Exposed mg_send_digest_auth_request(). Exported conn->content to Lua
2014-01-13 10:50:26 +00:00
Sergey Lyubka
f74a1e1dc2
Fixed start_process on windows to use correct interpreter
2014-01-12 07:20:53 +00:00
Sergey Lyubka
74511b42f5
Using unicode winapi to load config file
2014-01-12 07:20:12 +00:00
Sergey Lyubka
04862eec85
Added wp target
2014-01-12 07:18:29 +00:00
Sergey Lyubka
4d105386ca
Better handling of non-ascii chars for windows CGIs
2014-01-11 23:17:17 +00:00
Sergey Lyubka
44a35bb5bf
Removed debug statement
2014-01-11 23:15:02 +00:00
Sergey Lyubka
022c9f0d47
Handling non-ascii chars in the binary
2014-01-11 21:32:05 +00:00
Sergey Lyubka
e38061970e
Exposed mg_authorize_digest()
2014-01-11 16:44:37 +00:00
Sergey Lyubka
a4e8dc3069
Sending status 200 to CGI by default
2014-01-11 16:18:59 +00:00
Sergey Lyubka
fa4179ee53
Made clean silent
2014-01-11 16:18:29 +00:00
Sergey Lyubka
a8c8cfb665
fix non-initialized comparison
2014-01-11 10:09:26 +00:00
Sergey Lyubka
e0b6109214
Added -DNO_FILESYSTEM
2014-01-11 09:48:27 +00:00
Sergey Lyubka
d29f849602
Fixed optional build test
2014-01-11 09:48:13 +00:00
Sergey Lyubka
848c5d753e
Fixed logic for get_url_to_me
2014-01-11 03:19:46 +00:00
Sergey Lyubka
4eef5b14fb
Added comment to https://github.com/cesanta/mongoose/pull/287
2014-01-10 22:48:47 +00:00
Sergey Lyubka
283af71bbf
Merge pull request #287 from oli-obk/fix/last_send_data_before_shutdown
...
mg_printf_data was ignored if mg_destroy_server was called directly afte...
2014-01-10 14:47:00 -08:00
Sergey Lyubka
ff85b802c3
Using case-insensitive string comparison for connection: keep-alive
2014-01-10 22:46:03 +00:00
Sergey Lyubka
e2b42e4117
Using case-insensitive string comparison for connection: keep-alive
2014-01-10 22:43:52 +00:00
Sergey Lyubka
63909b59c5
Added __cdecl to SSL decls to make sure correct linkage with OpenSSL which is cdecl
2014-01-10 22:41:36 +00:00
Sergey Lyubka
7380c65265
5.1 -> 5.2
2014-01-10 22:37:26 +00:00
Sergey Lyubka
e9316a4feb
CGI fixes
2014-01-10 21:59:37 +00:00
Oliver Schneider
2ac231cb7e
mg_printf_data was ignored if mg_destroy_server was called directly after
2014-01-10 18:38:18 +01:00
Sergey Lyubka
a741d53028
Fixed leak for server creation/destroy
2014-01-10 11:23:29 +00:00
Sergey Lyubka
9ea7b6f8ae
Removed unnecessary buffer initializer
2014-01-10 11:11:26 +00:00
Sergey Lyubka
580d3da3c7
Using unicode winapi for stat(), fopen(), open()
2014-01-10 11:03:38 +00:00
Sergey Lyubka
aa59dda966
wrapped read_from_cgi() into NO_CGI
2014-01-09 17:50:57 +00:00
Sergey Lyubka
47b92e4145
Added string defs for 301 and 302 codes in status_code_to_str()
2014-01-09 17:24:20 +00:00
Sergey Lyubka
fa351959a0
5.0 -> 5.1
2014-01-09 14:08:50 +00:00
Sergey Lyubka
1414e2a236
Documented rewrites for HTTP errors
2014-01-09 12:47:29 +00:00
Sergey Lyubka
5fb275e146
Added URL rewrites for HTTP errors, to allow for error pages.
2014-01-09 12:36:25 +00:00
Sergey Lyubka
9390c66b48
Moved next_option() to the rest of string functions
2014-01-09 12:34:50 +00:00
Sergey Lyubka
2f69ca37d3
Better CGI error diagnostic for UNIX
2014-01-09 10:53:25 +00:00
Sergey Lyubka
4cd11de400
Ping only websocket connections
2014-01-09 10:37:17 +00:00
Sergey Lyubka
15a2639355
Added better diagnostic to send_http_error()
2014-01-09 10:35:43 +00:00
Sergey Lyubka
c20f26dbb9
removed mg_fmt()
2014-01-09 09:58:19 +00:00
Sergey Lyubka
cae797cf04
Merge branch 'master' of https://github.com/cesanta/mongoose
2014-01-09 09:37:35 +00:00
Sergey Lyubka
0d885add0e
Fixed put_dir()
2014-01-09 09:36:58 +00:00
Sergey Lyubka
842231cc5c
GetFullPathNameA -> GetFullPathName
2014-01-08 18:20:13 +00:00
Sergey Lyubka
dc55a3ae40
Added #undef UNICODE in mongoose.c to force ANSI Win32 functions
2014-01-08 18:10:15 +00:00
Sergey Lyubka
4d85cc6c76
Removed -Wno-empty-translation-unit from unix CFLAGS :-)
2014-01-08 09:27:16 +00:00
Sergey Lyubka
8ac1b40c11
Added -Wno-empty-translation-unit to the unix CFLAGS
2014-01-08 09:19:56 +00:00
Sergey Lyubka
238b43af84
Squashed warnings for gcc 4.6.3
2014-01-08 09:16:36 +00:00
Sergey Lyubka
12c8e99bd5
Removed error_log_file from tests config
2014-01-07 14:57:08 +00:00
EC2 Default User
5f2f359bd6
Squashed warning under gcc 4.6.3
2014-01-07 14:53:48 +00:00
Sergey Lyubka
ccf0ce4a1f
Using chunked API in post.c example
2014-01-07 09:28:20 +00:00
Sergey Lyubka
134a5b7b9e
Using chunked API in multi-threaded example
2014-01-07 09:24:48 +00:00
Sergey Lyubka
d39daab29e
Updated docs
2014-01-07 09:12:17 +00:00
Sergey Lyubka
a798b1a937
Updated docs
2014-01-07 09:10:58 +00:00
Sergey Lyubka
04de3bb2f9
Updated docs
2014-01-07 09:05:34 +00:00
Sergey Lyubka
86da250e2c
Using fat mongoose for php bundle
2014-01-06 14:58:21 +00:00
Sergey Lyubka
347a8c2f70
Fix source IP in logging
2014-01-06 14:53:41 +00:00
Sergey Lyubka
9624200663
SSL build
2014-01-06 13:31:46 +00:00
Sergey Lyubka
18b1e95350
LSP functionality
2014-01-06 13:08:39 +00:00
Sergey Lyubka
407877a4d5
added mongoose-lua.exe target
2014-01-06 12:40:41 +00:00
Sergey Lyubka
7541c6339a
Removed error_log_file
2014-01-06 11:52:09 +00:00
Sergey Lyubka
31f1efd4f5
Removed index.shtml from the index files
2014-01-06 11:34:32 +00:00
Sergey Lyubka
2477f80a43
Wrapped run_as_user into conditional
2014-01-06 11:32:15 +00:00
Sergey Lyubka
cf94fb3642
Added BIG_SOURCES
2014-01-06 11:29:36 +00:00
Sergey Lyubka
2210043b87
removed mutex calls. wrapped ssl_certificate option in a conditional
2014-01-06 11:22:11 +00:00
Sergey Lyubka
10872b3227
Inlined openssl definitions instead of including a header - preparing for ssl amalgamation
2014-01-05 23:52:43 +00:00
Sergey Lyubka
cb324cfb9a
test/page.mg.lua -> test/page.lp
2014-01-05 01:50:47 +00:00
Sergey Lyubka
4ee5849a04
Fixed spelling in readme
2014-01-05 00:01:31 +00:00
Sergey Lyubka
fa216849e5
Resetting connection flags in close_local_endpoint()
2014-01-04 22:17:16 +00:00
Sergey Lyubka
df6e35e330
dav_auth_file moved
2014-01-04 20:49:54 +00:00
Sergey Lyubka
96bb9aac36
Docs updated
2014-01-04 20:12:07 +00:00
Sergey Lyubka
7cec2fe280
Sorted options list
2014-01-04 20:11:55 +00:00
Sergey Lyubka
02937f8852
API doc synced
2014-01-04 14:28:20 +00:00
Sergey Lyubka
51f0cc2b67
Embed doc synced
2014-01-04 14:25:37 +00:00
Sergey Lyubka
253927008c
Options doc synced
2014-01-04 14:20:47 +00:00
Sergey Lyubka
9778a4ccfc
Options doc synced
2014-01-04 14:18:14 +00:00
Sergey Lyubka
d0e2741832
Added new response creation interface
2014-01-04 11:31:55 +00:00
Sergey Lyubka
3a5e2fba88
5.0 lua example
2014-01-04 02:16:52 +00:00
Sergey Lyubka
85940c8045
Moved <netdb.h> to under unix includes
2014-01-04 02:05:18 +00:00
Sergey Lyubka
a0b599b308
Removed protection from mg_write(). Refactored mg_iterate_over_connections()
2014-01-04 00:51:07 +00:00
Sergey Lyubka
d43ccda9a7
Unbroke link to page.lp
2014-01-03 22:18:38 +00:00
Sergey Lyubka
675b83a3ef
Let mongoose binary change CWD to document_root
2014-01-03 21:45:13 +00:00
Sergey Lyubka
dfdfcc060d
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-01-03 20:26:52 +00:00
Sergey Lyubka
143fb4f423
Fixed macos build
2014-01-03 20:26:41 +00:00
Sergey Lyubka
b7eb12017c
Update README.md
2014-01-03 03:29:42 +00:00
Sergey Lyubka
bd1c6c1506
Update README.md
2014-01-03 03:29:09 +00:00
Sergey Lyubka
efb7f4f05d
Added frozen
2014-01-03 03:06:50 +00:00
Sergey Lyubka
5475fe661d
Implemented USE_POST_SIZE_LIMIT
2013-12-31 13:57:51 +00:00
Sergey Lyubka
8f62822a33
Using mg_printf()
2013-12-31 13:57:19 +00:00
Sergey Lyubka
0aa1a9e324
Documented USE_POST_SIZE_LIMIT, USE_EXTRA_HTTP_HEADERS
2013-12-31 13:56:59 +00:00
Sergey Lyubka
7a77bb1c4a
More descriptive comment in multithreaded example
2013-12-31 09:06:21 +00:00
Sergey Lyubka
4576b69e30
Initializing remote_ip and remote_port properly
2013-12-31 09:02:24 +00:00
Sergey Lyubka
4fd6eb597d
Squashed C++ warning
2013-12-30 12:10:35 +00:00
Sergey Lyubka
257dacd7bb
Squashed warning about dangerous optimization
2013-12-30 11:43:07 +00:00
Sergey Lyubka
c88b7b19b3
Squashed warning on Windows, using INVALID_SOCKET
2013-12-30 11:35:33 +00:00
Sergey Lyubka
4fbfb5d0d0
Expanded hello example a little
2013-12-27 19:50:14 +00:00
Sergey Lyubka
67c678270e
Minor wording changes for feeatures
2013-12-27 18:32:24 +00:00
Sergey Lyubka
049db9015b
Mentioned async core
2013-12-26 12:55:50 +00:00
Sergey Lyubka
9dde225b5e
Squashed C++ warning in read_from_cgi()
2013-12-26 11:45:44 +00:00
Sergey Lyubka
3a0a22f4cc
Add an ability to pass listening socket to mongoose binary
2013-12-26 11:37:52 +00:00
Sergey Lyubka
b4a4b15835
Removed old cruft
2013-12-26 11:33:19 +00:00
Sergey Lyubka
dca2eab152
removed stdio.h
2013-12-26 10:21:09 +00:00
Sergey Lyubka
f9f212442c
Added comment
2013-12-26 10:20:02 +00:00
Sergey Lyubka
83793aadde
Removed num_threads
2013-12-26 10:14:13 +00:00
Sergey Lyubka
f7a705c40a
Added multi-threaded example
2013-12-26 10:13:04 +00:00
Sergey Lyubka
f5f6edcf5a
Added mg_printf() back
2013-12-26 10:12:18 +00:00
Sergey Lyubka
9cb1048c66
Added lightweight feature
2013-12-26 09:33:26 +00:00
Sergey Lyubka
522a7eb554
Added socket functionality
2013-12-24 11:33:56 +00:00
Sergey Lyubka
072833acd5
Squashed win32 warnings
2013-12-23 10:01:11 +00:00
Sergey Lyubka
a5aa08e408
Restored post.c in windows example build
2013-12-23 08:09:59 +00:00
Sergey Lyubka
12d98a1732
Restores post.c example
2013-12-23 08:06:35 +00:00
Sergey Lyubka
a6c2c2a10b
Comparing URI prefix when looking for URI handler
2013-12-23 08:06:10 +00:00
Sergey Lyubka
fbe1914226
Copy -> Download and copy
2013-12-23 07:22:05 +00:00
Sergey Lyubka
64a744055f
Added notes on buffering POST data and websocket data
2013-12-22 08:27:23 +00:00
Sergey Lyubka
0007e47c07
Build command re-worded
2013-12-22 08:27:02 +00:00
Sergey Lyubka
4708cce8bd
mg_poll_server() returns currect time. add mg_set_listening_socket() and mg_get_listening_socket()
2013-12-21 20:52:54 +00:00
Sergey Lyubka
3eb9156e60
calling iterate_over_connections() from the IO thread
2013-12-21 20:26:55 +00:00
Sergey Lyubka
2990f9328a
struct linked_list_link -> struct ll
2013-12-21 20:10:08 +00:00
Sergey Lyubka
a0befd65a0
Nitpick wording
2013-12-21 16:06:00 +00:00
Sergey Lyubka
872ad8badf
Added NO_* and USE_* flag descriptions
2013-12-21 16:04:22 +00:00
Sergey Lyubka
0970e080d9
Added OpenSSL support
2013-12-21 15:50:11 +00:00
Sergey Lyubka
52fe1461d5
Removed SSI
2013-12-21 14:44:29 +00:00
Sergey Lyubka
d5b33adb88
Properly crafting HTTP reply line by parsing CGI reply headers
2013-12-21 10:53:20 +00:00
Sergey Lyubka
ec84a148f0
Creating server ctl socket in a loop to protect from interrupt
2013-12-21 10:19:12 +00:00
Sergey Lyubka
77d5d4c921
Added sldr reference
2013-12-21 08:34:02 +00:00
Sergey Lyubka
58dab48156
Using unsigned char in deliver_websocket_frame() arithmetic
2013-12-20 17:59:07 +00:00
Sergey Lyubka
7abb406d0f
put_delete_auth_file -> dav_auth_file
2013-12-20 17:57:13 +00:00
Sergey Lyubka
b941dcd5c5
Removed throttle option
2013-12-20 13:34:09 +00:00
Sergey Lyubka
b7adf9b52a
Passing server_param to the URI callback
2013-12-20 09:44:51 +00:00
Sergey Lyubka
28f7d83a74
Commented out chat example, as it is broken atm
2013-12-19 10:46:12 +00:00
Sergey Lyubka
34ee1ef3d6
Commented out chat example, as it is broken atm
2013-12-19 10:45:41 +00:00
Sergey Lyubka
e518517456
Commented out chat example, as it is broken atm
2013-12-19 10:42:39 +00:00
Sergey Lyubka
7d0662f1bc
Make WEBSOCKET_PING_INTERVAL_SECONDS overridable from the command line
2013-12-18 10:13:31 +00:00
Sergey Lyubka
e3751d29d5
Made mongoose send websocket PINGs automatically
2013-12-18 09:35:36 +00:00
Sergey Lyubka
04b9ccca22
Testing server PINGs
2013-12-18 09:35:19 +00:00
Sergey Lyubka
1a17165227
Sending messages every 10 seconds, to allow mongoose send PINGs
2013-12-18 09:34:36 +00:00
Sergey Lyubka
b6d968f00c
Added qcomm example to the build
2013-12-18 09:33:59 +00:00
Sergey Lyubka
a69987a711
Updated internals manual
2013-12-16 13:45:13 +00:00
Sergey Lyubka
492328474d
Only hello example left, adopted to the new API
2013-12-16 13:33:50 +00:00
Sergey Lyubka
673a2c581f
Removed http client, and examples references
2013-12-16 13:32:54 +00:00
Sergey Lyubka
9ef42621e0
Fixed wrong memset() in scan_directory()
2013-12-15 10:12:19 +00:00
Sergey Lyubka
f5865886b2
Respecting -run_as_user
2013-12-12 20:31:43 +00:00
Sergey Lyubka
473e2a1cb2
Added <signal.h> for linux, and squashed warning in transfer_file_data()
2013-12-12 13:51:14 +00:00
Sergey Lyubka
146cf1d1c0
Calling mg_socketpair() in a loop until success. Ignoring SIGPIPE. Squashed waring in mg_start_thread()
2013-12-12 13:43:59 +00:00
Sergey Lyubka
ab73055ef3
Added side-effect note for mg_create_server()
2013-12-12 13:41:33 +00:00
Sergey Lyubka
3b83543592
Commented out irrelevant design description
2013-12-10 23:49:37 +00:00
Sergey Lyubka
d4ac96c24d
Some wording/spelling changes
2013-12-10 23:42:44 +00:00
Sergey Lyubka
0612129a88
Async API
2013-12-10 23:34:08 +00:00
Sergey Lyubka
9bd5903f1d
API.md is split to API.md and Embed.md
2013-12-10 11:16:25 +00:00
Sergey Lyubka
d4eae0e251
Added minimalistic example
2013-12-10 00:40:32 +00:00
Sergey Lyubka
4d7ea04dd8
Added cast for c++ friendliness
2013-12-10 00:19:33 +00:00
Sergey Lyubka
653fab6b41
Added skeleton lua support
2013-12-09 15:53:35 +00:00
Sergey Lyubka
f4c30b746e
Switched to async, non-blocking core
2013-12-09 14:18:49 +00:00
Sergey Lyubka
923e5004e8
Added CFLAGS_EXTRA to windows compilation flags
2013-12-09 11:53:55 +00:00
Sergey Lyubka
b14a1e25f0
Not generating mongoose.c
2013-12-08 18:39:03 +00:00
Sergey Lyubka
5a3b1123f6
tests moved under build
2013-12-07 17:47:14 +00:00
Sergey Lyubka
6a9494b683
Added mg_get_var() to core, with unit test
2013-12-07 17:46:56 +00:00
Sergey Lyubka
63c5658a2b
Fixed lua compilation under linux
2013-12-07 17:45:59 +00:00
Sergey Lyubka
fe087cdce9
Fixed lsp_sock_send(), return value
2013-12-07 17:45:34 +00:00
Sergey Lyubka
af7efd980c
Adjusting unit test for core
2013-12-06 22:14:55 +00:00
Sergey Lyubka
2cb325c981
Added DAV to core
2013-12-06 16:01:41 +00:00
Sergey Lyubka
66435a7158
Removed speed limit feature
2013-12-06 13:02:44 +00:00
Sergey Lyubka
48417ba911
Formatting change in overview
2013-12-06 13:00:33 +00:00
Sergey Lyubka
f39c4c8909
Added directory listing support to core
2013-12-06 12:55:28 +00:00
Sergey Lyubka
2a7e720f12
app code moved to qcomm.c
2013-12-06 08:53:30 +00:00
Sergey Lyubka
ec22250d9b
Added mg_iterate_over_connections(), mg_websocket_write()
2013-12-06 08:52:42 +00:00
Sergey Lyubka
a7889756a9
Made qcomm example compile
2013-12-06 08:23:26 +00:00
Sergey Lyubka
9ac67770eb
mongoose5 example
2013-12-05 23:16:12 +00:00
Sergey Lyubka
3330bca4be
Using mg_handler_t
2013-12-05 16:21:53 +00:00
Sergey Lyubka
31f0409bf9
Added CGI endpoint
2013-12-05 15:03:38 +00:00
Sergey Lyubka
ebf9ee089b
Do not send 500 when timing out getreq()
2013-12-05 11:12:07 +00:00
Sergey Lyubka
88cf329490
Closing connection on 5xx errors
2013-12-05 10:47:03 +00:00
Sergey Lyubka
bba29d32ce
Using socketpair for inter-thread communication
2013-12-05 10:01:11 +00:00
Sergey Lyubka
2f1f408882
Added qc test
2013-12-05 04:14:58 +00:00
Sergey Lyubka
46a9e42b8f
Async websockets work
2013-12-05 04:14:10 +00:00
Sergey Lyubka
58d3abe165
Fixed iterate_callback()
2013-12-05 00:52:42 +00:00
Sergey Lyubka
03e737829a
Made URI handler work
2013-12-05 00:22:21 +00:00
Sergey Lyubka
95d8881454
Fixed spool() to properly resize, commented out non-implemented API
2013-12-04 10:19:55 +00:00
Sergey Lyubka
a50a52ca91
Fixed #259
2013-12-04 10:11:12 +00:00
Sergey Lyubka
50371ef309
Introduced file_stat_t to use 64 bit file support on Windows
2013-12-03 12:08:45 +00:00
Sergey Lyubka
6192d1b53a
Added send_http_error()
2013-12-03 11:12:43 +00:00
Sergey Lyubka
daa9175139
Added caching support (304 response)
2013-12-03 11:01:43 +00:00
Sergey Lyubka
8a65611a8c
Using core.h and modified API
2013-12-02 22:22:22 +00:00
Sergey Lyubka
6c8a0aa768
denying directory accesses
2013-12-01 10:49:25 +00:00
Sergey Lyubka
787b15551d
builtin mime types defs moved to top
2013-12-01 10:28:00 +00:00
Sergey Lyubka
2c896e7e5c
Added proper static file handling, but range support is still broken
2013-12-01 10:25:31 +00:00
Sergey Lyubka
0e49214c7e
Added mutex protection for write calls
2013-12-01 09:46:05 +00:00
Sergey Lyubka
914606a046
fmtspool() -> mg_write()
2013-12-01 07:44:38 +00:00
Sergey Lyubka
b30417e908
Made core c++ friendly
2013-12-01 00:42:04 +00:00
Sergey Lyubka
5b8d4cdf68
main(argc,argv) -> main(void)
2013-12-01 00:35:22 +00:00
Sergey Lyubka
ba06d135c3
Added call_user()
2013-12-01 00:33:26 +00:00
Sergey Lyubka
f0d3d7e81d
Cleaning up ctl sockets
2013-11-30 23:59:53 +00:00
Sergey Lyubka
d1bd15291e
request pipelining done
2013-11-30 23:23:38 +00:00
Sergey Lyubka
d00b7f4300
Serving files
2013-11-28 20:44:11 +00:00
Sergey Lyubka
ebc909b61b
Added copyright
2013-11-27 14:10:51 +00:00
Sergey Lyubka
537fb39b21
Async, non-blocking experiment
2013-11-27 14:09:34 +00:00
Sergey Lyubka
e106151072
Showing port number on mongoose icon context menu
2013-11-26 22:17:29 +00:00
Sergey Lyubka
257de0709f
Better wording for put_delete_auth_file option
2013-11-25 17:06:24 +00:00
Sergey Lyubka
774a819e76
Better description for put_delete_auth_file option
2013-11-25 17:05:12 +00:00
Sergey Lyubka
ff1412f29d
Better description for put_delete_auth_file option
2013-11-25 17:04:41 +00:00
Sergey Lyubka
c6606c714f
Removed symbian-specific #defines. Nokia and Symbian got killed by Microsoft.
2013-11-25 14:32:33 +00:00
Sergey Lyubka
de3d4e3019
Formatted hyperlinks
2013-11-25 13:45:48 +00:00
Sergey Lyubka
2f49e63d5b
Moved docstrings to API.md
2013-11-25 13:43:12 +00:00
Sergey Lyubka
988b40f70d
Moved webdav functions into webdav.c
2013-11-24 17:33:05 +00:00
Sergey Lyubka
b5fdd48d76
Moved websocket functions into websocket.c
2013-11-24 17:29:21 +00:00
Sergey Lyubka
f4f73a8dfa
Init vars in handle_cgi_request()
2013-11-23 15:04:35 +00:00
Sergey Lyubka
74711c686f
Added directory scanning example, and enabled posix routines in Lua for unix environment
2013-11-23 13:58:27 +00:00
Sergey Lyubka
78c994f7cc
Added /I. for CL flags
2013-11-23 13:58:01 +00:00
Sergey Lyubka
2d5d668863
Squashed warning
2013-11-23 13:48:55 +00:00
Sergey Lyubka
87279f3518
Throttling functionality removed
2013-11-23 13:47:07 +00:00
Sergey Lyubka
bd10a03da0
Throttling functionality removed
2013-11-23 13:46:45 +00:00
Sergey Lyubka
d138119d24
Made separate target for mongoose-lua-sqlite
2013-11-23 13:44:33 +00:00
Sergey Lyubka
73019665fa
moved mg_upload() into upload.c
2013-11-23 10:49:13 +00:00
Sergey Lyubka
66824e7757
moved CGI and IO into separate files
2013-11-23 10:47:35 +00:00
Sergey Lyubka
7fe6b29218
mg_get_cookie() moved to string.c
2013-11-23 10:32:43 +00:00
Sergey Lyubka
ebdf973af9
log_access() moved to log.c
2013-11-23 10:31:24 +00:00
Sergey Lyubka
71dd7a96c7
mg_url_decode() moved to string.c
2013-11-23 10:26:28 +00:00
Sergey Lyubka
886dcb3f5d
get_request_len() moved to string.c
2013-11-23 10:25:20 +00:00
Sergey Lyubka
37751a2875
directory ops moved to directory.c
2013-11-23 10:24:25 +00:00
Sergey Lyubka
45347bd44c
Moved mime-type functions to mime.c
2013-11-23 07:48:46 +00:00
Sergey Lyubka
8c4521af03
moved remove_double_dots_and_double_slashes() to string.c
2013-11-23 07:46:11 +00:00
Sergey Lyubka
0d2a8db626
Added #define for WSAPoll
2013-11-22 13:39:57 +00:00
Sergey Lyubka
e791a795b4
typo fixed
2013-11-22 08:45:04 +00:00
Sergey Lyubka
03d846529d
Update README.md
2013-11-13 03:04:31 +00:00
Sergey Lyubka
607651a3ff
Squashed warning for MG_REQUEST_END
2013-11-11 17:18:48 +00:00
Sergey Lyubka
0714e0dd8f
Updated Android build
2013-11-04 21:15:01 +00:00
Sergey Lyubka
224d18589f
Fixed -DNO_SSL build
2013-11-02 10:24:30 +00:00
Sergey Lyubka
2fd7191836
Squashed C++ void * casting warning
2013-10-30 23:04:35 +00:00
Sergey Lyubka
853d162b55
removed double def for ssl_sw
2013-10-30 23:02:36 +00:00
Sergey Lyubka
762a68a0cf
Moved some docs to markdown
2013-10-30 23:02:15 +00:00
Sergey Lyubka
1da098671e
Moved docstrings to API.md
2013-10-19 14:07:46 -07:00
Sergey Lyubka
f852a4db0f
Moved docstrings to API.md
2013-10-19 13:14:16 -07:00
Sergey Lyubka
ddea940690
Docs added
2013-10-18 08:57:59 -07:00
Sergey Lyubka
292e43b41b
Removed unit test dependency
2013-10-15 13:11:47 -07:00
Sergey Lyubka
915e923e35
Firing MG_HTTP_ERROR
2013-10-10 07:46:19 -07:00
Sergey Lyubka
e6ac3af454
Removed debug message
2013-10-07 17:29:53 +01:00
Sergey Lyubka
3adaf8dba9
Reaping zombies properly
2013-10-07 17:29:07 +01:00
Sergey Lyubka
1777cc6e86
Squashed warning
2013-10-07 17:28:53 +01:00
Sergey Lyubka
f9f623bd60
c# example synced to the current version, and tested
2013-10-06 12:16:46 +01:00
Sergey Lyubka
fe95707b4e
Rewording
2013-10-06 07:24:34 +01:00
Sergey Lyubka
a631ee1e1e
Service code refactored
2013-10-05 07:45:05 +01:00
Sergey Lyubka
493666dac6
Wording and links corrected
2013-10-03 19:34:27 +01:00
Sergey Lyubka
46ef4e33c8
Wording and links corrected
2013-10-03 19:34:00 +01:00
Sergey Lyubka
cafaecfc56
Moved HTTP client, ssl and some util code into separate files
2013-10-03 19:09:35 +01:00
Sergey Lyubka
47606a71ee
Moved unix and win32 code to different files
2013-10-02 23:21:13 +01:00
Sergey Lyubka
eedfedd13b
Added reference to a relevant pull request in getreq() comment
2013-10-01 19:09:29 +01:00
Sergey Lyubka
87d841d81b
Set content_len to 0 for GET requests without Content-Length header.
2013-10-01 18:49:44 +01:00
Sergey Lyubka
5153eebc9b
mg_read() does not block on content_len=0. mg_read() reads until socket is closed if content-length is not provided
2013-10-01 17:47:32 +01:00
Sergey Lyubka
70154f6c23
Moved mod_lua.c to src/lua.c
2013-10-01 15:16:09 +01:00
Sergey Lyubka
d3577b7877
Moved auth code to separate file
2013-10-01 14:54:26 +01:00
Sergey Lyubka
199e0a330f
Moved options handling to src/options.c
2013-09-30 19:57:33 +01:00
Sergey Lyubka
a8da1b3334
Moved date parsing in build/src/parse_date.c
2013-09-30 19:51:16 +01:00
Sergey Lyubka
63c19b4631
Moved to unix file format
2013-09-30 13:11:24 +01:00
Sergey Lyubka
1f471e1cf3
Moved string functions to src/string.c
2013-09-30 13:09:16 +01:00
Sergey Lyubka
ef28c37529
Removed mg_get_request_info()
2013-09-30 13:02:36 +01:00
Sergey Lyubka
cd7e1b9eb7
Moved more ssl defs to internal.h
2013-09-30 12:59:43 +01:00
Sergey Lyubka
226d476856
Moved more defines to internal.h. Squashed some warnings in win32
2013-09-29 23:58:32 +01:00
Sergey Lyubka
21965e0e03
Splitting monolithic mongoose.c to separate files. Amalgamating into mongoose.c for release.
2013-09-29 23:56:59 +01:00
Sergey Lyubka
40ab4a8d3d
Fixed websocket example logic when freeing the message, again!
2013-09-29 22:43:58 +01:00
Sergey Lyubka
e84d0574fa
Fixed websocket example logic when freeing the message
2013-09-29 22:01:31 +01:00
Sergey Lyubka
1a64d37fc7
Fixed mg_websocket_read()
2013-09-29 09:25:47 +01:00
Sergey Lyubka
9cca843a9b
Typo fixed
2013-09-29 08:01:14 +01:00
Sergey Lyubka
ecbf79135f
Refactored API, returned back to event-based handlers. Upload and Websocket API simplified
2013-09-28 11:00:54 +01:00
Sergey Lyubka
96eb48902b
Always invoking test
2013-09-28 00:15:24 +01:00
Sergey Lyubka
079c99c47f
Started to restore single callback function
2013-09-26 13:25:51 +01:00
Sergey Lyubka
6d2a76b609
Added c# example
2013-09-26 12:50:11 +01:00
Sergey Lyubka
24e0950ca2
Using stdcall for mongoose.dll
2013-09-26 12:49:41 +01:00
Sergey Lyubka
98214ce1a4
Removed init_lua() and open_file() callbacks
2013-09-26 09:35:07 +01:00
Sergey Lyubka
7eed7eab36
Added mongoose.dll target
2013-09-26 09:34:36 +01:00
Sergey Lyubka
f0fb5c01a2
Added unit_test.c dependency for unix_unit_test
2013-09-25 22:58:36 +01:00
Sergey Lyubka
a92aa3bf49
Added unix_unit_test as a dependancy for mongoose
2013-09-25 18:37:17 +01:00
Sergey Lyubka
b12cc9fd49
Refactored handle_options_request() to use mg_write() with less copying
2013-09-25 18:30:51 +01:00
Sergey Lyubka
a61c3a2636
Added handle_delete_request(). Refactored convert_uri_to_file_name()
2013-09-25 18:24:36 +01:00
Sergey Lyubka
9fd435059f
Setting user_data for fake connection
2013-09-25 14:28:09 +01:00
Sergey Lyubka
3156ac9791
read_websocket(): check for WEBSOCKET_OPCODE_CLOSE corrected
2013-09-25 14:25:14 +01:00
Sergey Lyubka
b946f33189
Moved more docs to the web site
2013-09-24 11:24:10 +01:00
Sergey Lyubka
1e0b7054e6
Added mongoose.h to the mongoose.c dependancy
2013-09-24 11:23:51 +01:00
Sergey Lyubka
46e04e857c
Added test for dir with non-ascii char
2013-09-24 10:08:39 +01:00
Sergey Lyubka
4abdeaddbf
Docs reference moved to downloads section
2013-09-20 13:30:20 +01:00
Sergey Lyubka
029af1c376
Docs moved to Cesanta site
2013-09-20 13:27:48 +01:00
Sergey Lyubka
c02f2ff4bb
Update instruction to clone Git repo rather then using tarball
2013-09-18 09:52:06 +01:00
Sergey Lyubka
f74fec8a7e
Split docs by sections
2013-09-18 09:44:12 +01:00
Sergey Lyubka
50f8e8891b
Removed references to usermanual.md
2013-09-18 09:44:00 +01:00
Sergey Lyubka
d67b1dbd53
Added CommonProgramFiles(x86) to the CGI environment under Win32, to make Win32::OLE work under CGI
2013-09-18 08:11:37 +01:00
Sergey Lyubka
b0eeb7d67b
Renamed retina icons to @2x.png
2013-09-18 08:07:44 +01:00
Sergey Lyubka
2c6c75cbad
Added icns icon file
2013-09-18 08:07:24 +01:00
Sergey Lyubka
241388b8a0
Using icns as bundle icon file
2013-09-18 08:07:06 +01:00
Sergey Lyubka
820b497f42
Installing icns file in DMG
2013-09-18 08:06:48 +01:00
Sergey Lyubka
88d8435a02
mongoose_22x22.png -> mongoose_22x22, let OS get Retina icon automatically
2013-09-18 08:06:08 +01:00
Sergey Lyubka
f3f177f3ed
Removed analytics tracking
2013-09-17 16:47:27 +01:00
Sergey Lyubka
bfa171cd97
Squashed warning: added #include <direct.h> for windows getcwd()
2013-09-17 16:14:50 +01:00
Sergey Lyubka
19c94ce218
Fix for the issue 109
2013-09-17 16:09:00 +01:00
Sergey Lyubka
5e5033a0f3
Fix for the issue 156
2013-09-16 23:25:30 +01:00
Sergey Lyubka
411a269991
valenok -> cesanta
2013-09-16 22:45:19 +01:00
Sergey Lyubka
bca6aab5a5
Moved UserManual to docs/
2013-09-16 22:42:29 +01:00
Sergey Lyubka
330e2ff74e
Fixed macos build target
2013-09-16 22:42:18 +01:00
Sergey Lyubka
eb5848478c
Added credits section mentioning those great who contributed
2013-09-12 17:30:03 +01:00
Sergey Lyubka
5bb361b1d2
Squashed warnings
2013-09-12 10:03:04 +01:00
Sergey Lyubka
0d40364089
Removed unused stuff, lua & ssl sources, reorganized targets.
2013-09-12 10:02:50 +01:00
Sergey Lyubka
16c4fe1f37
4.1 -> 4.2
2013-09-07 22:05:39 +01:00
Sergey Lyubka
3070e8572d
removed file locking on windows, to fix the crash introduced by 52e3be5c58
2013-09-07 22:04:59 +01:00
Sergey Lyubka
baf4d8af27
Mongoose_$V.dmg -> Mongoose-$V.dmg
2013-09-07 22:04:09 +01:00
Sergey Lyubka
d5acf2e2a7
4.0 -> 4.1
2013-09-07 20:21:27 +01:00
Sergey Lyubka
22f8cb14d5
Updated downloads link
2013-09-07 20:20:11 +01:00
Sergey Lyubka
e28b3ca91d
Not ignoring SIGCHLD, cause it renders system() unusable on QNX
2013-09-07 19:50:54 +01:00
Sergey Lyubka
73d2b395d1
Moved SIGCHLD handler out of mongoose.c. Embedded user must set SIGCHLD handler if CGI is used.
2013-09-07 19:41:40 +01:00
Sergey Lyubka
e556a487e0
Fix for the SCRIPT_NAME in the presence of PATH_INFO, https://code.google.com/p/mongoose/issues/detail?id=403
2013-09-07 18:49:24 +01:00
Sergey Lyubka
5728fa1cea
Added windows_tiny target. Adding only mongoose.[ch] files to the source tarball.
2013-09-07 18:47:38 +01:00
Sergey Lyubka
b461edabd9
Squashed warnings
2013-09-07 18:46:50 +01:00
Sergey Lyubka
c9e666babc
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-09-07 07:07:28 +01:00
Sergey Lyubka
18e64397fc
Fixed tests
2013-09-07 07:07:18 +01:00
Sergey Lyubka
3c8418d324
Removed -I$(LUA) from LUA_FLAGS
2013-09-07 07:07:07 +01:00
Sergey Lyubka
784a1580ce
Merge pull request #232 from ellusak/master
...
use chunked encoding for directory listing
2013-09-05 11:18:07 -07:00
Sergey Lyubka
6a0ac69761
version 3.9 -> 4.0
2013-09-05 12:35:44 +01:00
ellusak
7c06279a8c
use chunked encoding for directory listing
2013-09-05 17:14:34 +08:00
Sergey Lyubka
aec6f85f55
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-09-02 11:15:57 +01:00
Sergey Lyubka
52e3be5c58
Refactored f[un]lockfile for Windows using LockFileEx/UnlockFileEx
2013-09-02 11:15:48 +01:00
Sergey Lyubka
01a664ad06
Merge pull request #231 from tehnick/fix-compilation-warning
...
Fixed compilation warning
2013-08-31 03:08:06 -07:00
Boris Pek
94933047a7
Fixed compilation warning
2013-08-30 21:32:58 +03:00
Sergey Lyubka
cd6005c86f
Calling thread_stop() before free-ing conn
2013-08-28 09:54:00 +01:00
Sergey Lyubka
6d14ed3a18
thread_setup -> thread_start
2013-08-28 09:53:10 +01:00
Sergey Lyubka
0fb5db59d3
Putting CFLAGS at the end of the compilation flags for Linux
2013-08-27 00:02:40 +01:00
Sergey Lyubka
20b274bb2b
Using amalgamated lua
2013-08-27 00:01:53 +01:00
Sergey Lyubka
00b289a0f4
Added thread_start() and thread_stop()
2013-08-26 12:22:38 +01:00
Sergey Lyubka
9818f9849b
Added downloads section
2013-08-20 16:26:33 +01:00
Sergey Lyubka
df1c23222e
Corrected google group email address. Reworded paragraph about SLRE.
2013-08-20 07:54:28 +01:00
Sergey Lyubka
f18ac3e094
Fixed test invokation
2013-08-19 19:10:41 +01:00
Sergey Lyubka
d8596fae27
Fixed unit test
2013-08-19 19:10:17 +01:00
Sergey Lyubka
85209ac4fa
Reverted contributions by jmucchiello
2013-08-19 11:54:47 +01:00
Sergey Lyubka
a58e82b301
Added note about GNU make
2013-08-19 11:39:59 +01:00
Sergey Lyubka
35f485558b
Amalgamated Lua
2013-08-19 07:56:13 +01:00
Sergey Lyubka
93365fcbd2
audio/ogg -> application/ogg
2013-08-19 06:46:13 +01:00
Sergey Lyubka
e40a44ba70
Moved mod_lua to build/
2013-08-18 23:04:36 +01:00
Sergey Lyubka
1eed770238
Moved Makefile and main.c to build/
2013-08-18 23:02:43 +01:00
Sergey Lyubka
511ef4137f
Better SSI mime type handling
2013-08-18 13:27:54 +01:00
Sergey Lyubka
479164129b
Styling, lines > 80 chars
2013-08-18 13:16:53 +01:00
Sergey Lyubka
08746115e2
Sending EXTRA_HTTP_HEADERS in handle_file_request()
2013-08-18 13:03:39 +01:00
Sergey Lyubka
587aad75c1
License change
2013-08-16 11:28:50 +01:00
Sergey Lyubka
218428662e
License change
2013-08-16 11:18:16 +01:00
Sergey Lyubka
04fc209644
removing dmg dir on clean
2013-08-16 11:18:04 +01:00
Sergey Lyubka
53bedd1eb5
made separate targets for each example
2013-08-16 11:17:15 +01:00
Sergey Lyubka
a0b43ae8e0
Merge pull request #218 from MikieMorales/patch-3
...
Changing Embedding example to C file.
2013-08-14 09:50:07 -07:00
Miguel Morales
866a7e2823
Changing Embedding example to C file.
2013-08-14 12:38:32 -04:00
Sergey Lyubka
2055d41a9f
Corrected misplaced brackets in parse_http_message()
2013-08-14 10:55:36 +01:00
Sergey Lyubka
1ef29c1b3b
Using #define MGSQLEN for the socket queue length
2013-08-14 08:23:30 +01:00
Sergey Lyubka
e95dbb90a7
Sending content-length from put_file()
2013-08-14 08:15:42 +01:00
Sergey Lyubka
cf18c932a4
Refactored parse_http_message()
2013-08-14 07:41:47 +01:00
Sergey Lyubka
a730afc44d
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-08-14 07:09:28 +01:00
Sergey Lyubka
94296c9697
Corrected check for websocket connection close
2013-08-14 07:09:22 +01:00
Sergey Lyubka
667707df50
Merge pull request #214 from DanielOaks/server_software
...
Added SERVER_SOFTWARE CGI variable
2013-08-13 04:28:26 -07:00
Daniel Oaks
90b6fab3bb
Added SERVER_SOFTWARE CGI variable
2013-08-13 21:21:05 +10:00
Sergey Lyubka
e47dbcbdc5
Merge pull request #213 from MikieMorales/patch-1
...
Update UserManual.md
2013-08-12 08:59:39 -07:00
MikieMorales
2a15f8d567
Update UserManual.md
...
SheBang wikipedia link is broken due to the end parenthesis. I tried escaping it with backslash and it seems to be working now.
2013-08-12 11:23:11 -04:00
Sergey Lyubka
b5d397c74f
Merge pull request #212 from pas2k/master
...
Consume \n in mg_fgets when reading from membuf
2013-08-12 04:16:19 -07:00
Pavel Khlebovich
3d6b373c8f
(mg_fgets) Accept lines at the end not terminated by \n
...
(mg_fgets) Don't consume more than size bytes when line cannot fit into buffer.
2013-08-12 14:27:20 +04:00
Sergey Lyubka
ed236dddeb
changed signature for mg_exec_lua_script(). fixed lua_error_handler()
2013-08-12 09:53:42 +01:00
Sergey Lyubka
596fb1e88a
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-08-12 09:52:22 +01:00
Sergey Lyubka
ca0cd5040d
Updated sqlite
2013-08-12 09:52:10 +01:00
Pavel Khlebovich
5b84acbc14
Consume \n in mg_fgets when reading from membuf.
2013-08-12 00:47:12 +04:00
Sergey Lyubka
c12838e2c3
Merge pull request #211 from nigels-com/msc_ver
...
gcc complains about _MSC_VER being an undefined macro.
2013-08-08 22:50:19 -07:00
Nigel Stewart
fa3e6ce271
gcc complains about _MSC_VER being an undefined macro.
2013-08-08 22:08:00 -05:00
Sergey Lyubka
743f48b8e0
Added mg_exec_lua_script, mg_prepare_lua_environment -> prepare_lua_environment
2013-08-08 13:11:05 +01:00
Sergey Lyubka
421c16b2bb
Added -DLUA_USE_DLOPEN, and added mongoose.o: mod_lua.c
2013-08-08 12:15:40 +01:00
Sergey Lyubka
3054a7f09e
Make sure child closes all pipe fds when executing CGI
2013-08-03 07:18:25 +01:00
Sergey Lyubka
2de96bd54e
Workaround for non-compliant vsnprintf()
2013-08-02 11:00:21 +01:00
Sergey Lyubka
f815c315e7
Added git analytics link
2013-08-01 14:20:35 +01:00
Sergey Lyubka
e59ee00154
Added request_timeout_ms
2013-07-30 15:21:34 +01:00
Sergey Lyubka
b07745ab50
Added Lua dll example
2013-07-30 14:49:52 +01:00
Sergey Lyubka
2468a8fb38
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-07-30 11:19:42 +01:00
Sergey Lyubka
ed38a4102e
showing error string as well as numeric error on bind failure
2013-07-30 11:19:33 +01:00
Sergey Lyubka
b1c66f6544
Merge pull request #207 from bick4ord/master
...
Add casts to fix strict compiler errors [-fpermissive]
2013-07-29 13:20:43 -07:00
bick
8f79a0564f
Add casts to fix strict compiler errors [-fpermissive]
...
When using g++ and enforcing strict compiler errors, this commit fixes the following:
mongoose.c: In function ‘char* mg_fgets(char*, size_t, file*, char**)’:
mongoose.c:2405:60: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
mongoose.c: In function ‘int set_ports_option(mg_context*)’:
mongoose.c:4586:64: error: invalid conversion from ‘void*’ to ‘socket*’ [-fpermissive]
mongoose.c: In function ‘void* worker_thread(void*)’:
mongoose.c:5104:28: error: invalid conversion from ‘void*’ to ‘mg_context*’ [-fpermissive]
mongoose.c: In function ‘void* master_thread(void*)’:
mongoose.c:5220:28: error: invalid conversion from ‘void*’ to ‘mg_context*’ [-fpermissive]
mongoose.c:5235:58: error: invalid conversion from ‘void*’ to ‘pollfd*’ [-fpermissive]
2013-07-29 11:46:24 -07:00
Sergey Lyubka
2e93cde929
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-07-28 12:15:30 +01:00
Sergey Lyubka
e53d05637a
Binding to IPv6 addresses
2013-07-28 12:15:16 +01:00
Sergey Lyubka
9d75d35365
v. x.x -> v.x.x
2013-07-28 08:20:21 +01:00
Sergey Lyubka
2ea8d85cff
Merge pull request #206 from bick4ord/master
...
adding include of openssl/err.h to fix errors when NO_SSL_DL is defined:
2013-07-26 22:48:49 -07:00
bick
ea81a22529
adding include of openssl/err.h to fix errors when NO_SSL_DL is defined:
...
mongoose.c:4680:23: error: ‘ERR_get_error’ was not declared in this scope
mongoose.c:4681:52: error: ‘ERR_error_string’ was not declared in this scope
2013-07-26 14:12:33 -07:00
Sergey Lyubka
526f3aa31c
Added check for document_root != NULL in convert_uri_to_file_name(). Added #define rmdir _rmdir for win32
2013-07-25 07:22:02 +01:00
Sergey Lyubka
62d66201c9
make match_prefix() case-insensitive
2013-07-25 07:07:25 +01:00
Sergey Lyubka
f32e14478f
Merge pull request #203 from JoseGoncalves/fixes
...
Fix uninitialized argument in getsockname().
2013-07-24 04:58:27 -07:00
José Miguel Gonçalves
ca019799b9
Fix uninitialized argument in getsockname().
2013-07-24 12:24:13 +01:00
Sergey Lyubka
c6fb9ac3d0
Fixed indenting in is_put_or_delete_request()
2013-07-23 08:24:52 +01:00
Sergey Lyubka
c80a88a407
Added test for uploading 2 files
2013-07-23 08:17:00 +01:00
Sergey Lyubka
f2e19ca3ff
Fixed indenting
2013-07-23 08:16:38 +01:00
Sergey Lyubka
16c463d2e9
Added compile-time option to set stack size
2013-07-22 10:10:19 +01:00
Sergey Lyubka
6a99518048
updated readme
2013-07-22 09:54:02 +01:00
Sergey Lyubka
3b242ec68b
Added Android makefile
2013-07-22 09:45:23 +01:00
Sergey Lyubka
7409166409
Updated readme
2013-07-22 09:30:01 +01:00
Sergey Lyubka
ca66b84f7d
Updated readme
2013-07-22 09:27:47 +01:00
Sergey Lyubka
dc1c732f11
Updated readme
2013-07-22 09:24:17 +01:00
Sergey Lyubka
61148f1323
Using absolute paths for all file/directory options
2013-07-22 08:23:15 +01:00
Sergey Lyubka
136e3e353d
updated readme
2013-07-21 10:09:47 +01:00
Sergey Lyubka
c70b80e4e1
marketing for LSP added
2013-07-20 15:30:00 +01:00
Sergey Lyubka
cba4c9d85d
removed travis icon
2013-07-20 15:26:05 +01:00
Sergey Lyubka
3e588065dc
removed
2013-07-20 15:25:39 +01:00
Sergey Lyubka
35cb27dbe6
Always use absolute path for document_root. If relative path is used, it is relative to mongoose.exe directory. See https://github.com/valenok/mongoose/issues/181
2013-07-20 14:11:05 +01:00
Sergey Lyubka
d6b9f76e9c
Added COPT to CFLAGS
2013-07-20 14:08:06 +01:00
Sergey Lyubka
a9d51c0e87
squashed warning
2013-07-20 11:33:34 +01:00
Sergey Lyubka
4b163232e3
fixed docstring for mg_get_valid_option_names
2013-07-20 07:12:49 +01:00
Sergey Lyubka
e003236a03
Made SSI #include file= relative to the current doc, as per spec
2013-07-19 07:57:47 +01:00
Sergey Lyubka
de7745370c
Merge pull request #200 from ejohnstown/master
...
Allow no SSL_CERTIFICATE when using init_ssl callback.
2013-07-18 23:35:16 -07:00
Sergey Lyubka
21786eec8e
Changed int -> SOCKET where appropriate, per Ben Currie
2013-07-18 18:17:48 +01:00
Sergey Lyubka
036b213b2b
Added connection-specific conn_data pointer to struct mg_request_info
2013-07-18 17:31:16 +01:00
John Safranek
61f5f0b725
Allow no SSL_CERTIFICATE when using init_ssl callback.
2013-07-17 16:37:28 -07:00
Sergey Lyubka
d864d72470
On windows, enclosing path to CGI script in quotes to allow paths with spaces
2013-07-17 08:24:52 +01:00
Sergey Lyubka
7ca5962d2d
in pull_all() and read_request(), respect ctx->stop_flag()
2013-07-16 17:17:36 +01:00
Sergey Lyubka
8ce1562f0d
Using SetHandleInformation() to make socket handles on Windows non-inheritable
2013-07-16 15:52:40 +01:00
Sergey Lyubka
49d9016275
For lua, let mg.read() read only if the data is there.
2013-07-16 13:56:00 +01:00
Sergey Lyubka
cdc7380d00
3.8 -> 3.9
2013-07-16 08:13:00 +01:00
Sergey Lyubka
e645b33b6c
using mg.read() only for POST requests
2013-07-16 07:53:08 +01:00
Sergey Lyubka
30f71a8bc4
Added description for the connect() socket interface
2013-07-16 07:24:39 +01:00
Sergey Lyubka
faa030385c
Removing extra SSL_shutdown() call.
2013-07-15 18:20:16 +01:00
Sergey Lyubka
feb3b5db96
Using $(FLAGS) for cocoa target
2013-07-15 10:52:27 +01:00
Sergey Lyubka
508b67d6f5
Removed /Gd from windows compilation flags, cause that breaks sqlite3 + fts (qsort callback is __cdecl, not __stdcall)
2013-07-15 10:41:47 +01:00
Sergey Lyubka
133aec777d
Added enable_keep_alive description
2013-07-15 10:32:52 +01:00
Sergey Lyubka
389ed4e099
Enabling FTS in sqlite
2013-07-15 10:28:52 +01:00
Sergey Lyubka
bc40aa5442
fixed strtoll() for win32: using _atoi64
2013-07-14 12:49:24 +01:00
Sergey Lyubka
5fb9aca2e1
Added -mmacosx-version-min for macos build
2013-07-12 12:39:19 +01:00
Sergey Lyubka
c68df310b8
Added mg_websocket_write(), per morgan3d pull request
2013-07-12 12:25:25 +01:00
Sergey Lyubka
70ce6c5ad3
Added comments to read_websocket(), per morgan3d pull request
2013-07-12 11:55:52 +01:00
Sergey Lyubka
460738f11b
Corrected link to Android NDK
2013-07-11 14:41:04 +01:00
Sergey Lyubka
a09ec8988e
Added lua.lib target
2013-07-11 14:24:24 +01:00
Sergey Lyubka
c46aa050ae
MAX_OPTIONS 40 -> 100
2013-07-11 11:37:39 +01:00
Sergey Lyubka
348db16245
NOT redirecting stderr to stdout for UNIX CGI, to avoid output being littered with error messages.
2013-07-11 08:44:51 +01:00
Sergey Lyubka
c0ca6a53be
put_delete_auth_file is the correct option name
2013-07-10 19:08:21 +01:00
Sergey Lyubka
e58d622d5f
Added note about /Gz for OpenSSL & Windows
2013-07-10 07:57:20 +01:00
Sergey Lyubka
bcb294620f
increased buffer for the ip address string from 20 to 50, to allow ipv6 addresses
2013-07-10 07:48:06 +01:00
Sergey Lyubka
15937a9c5c
readme updated
2013-07-10 07:37:56 +01:00
Sergey Lyubka
fa160cb9a3
Merge pull request #191 from kblinova/master
...
Detect Window's style slashes in mg_upload file names
2013-07-01 00:47:21 -07:00
Sergey Lyubka
137d6484e2
Removed bogus comment
2013-07-01 08:46:20 +01:00
Sergey Lyubka
e7c34c26cb
mg_read() with no Content-Length would read until socket is closed
2013-07-01 08:45:07 +01:00
Katerina Blinova
dfb7d928c2
Review revision for windows path separator detection in mg_upload
2013-06-28 11:05:33 -07:00
Katerina Blinova
4bb9faaf50
Detect Window's style slashes in mg_upload file names
2013-06-27 11:46:52 -07:00
Sergey Lyubka
a856971b6d
Update README.md
2013-06-27 13:07:34 +01:00
Sergey Lyubka
4a88ad5ca9
Merge pull request #184 from unrzn0/master
...
MKCOL and DELETE
2013-06-11 15:30:39 -07:00
Stefan Doehla
17ecb0a459
MKCOL and recursive DELETE
2013-06-12 00:04:07 +02:00
Sergey Lyubka
afd39abc6f
Update README.md
2013-06-06 05:28:46 +02:00
Sergey Lyubka
4babcff8de
Update UserManual.md
2013-06-03 08:18:41 +02:00
Sergey Lyubka
17d48b1d04
Update README.md
2013-06-01 12:23:16 +02:00
Sergey Lyubka
6ab20ed9a3
Update README.md
2013-06-01 12:21:02 +02:00
Sergey Lyubka
a0e5494569
Merge pull request #177 from arvidn/master
...
support serving pre-gzipped files
2013-05-30 10:14:45 -07:00
Sergey Lyubka
f62c733990
Merge pull request #176 from codyhanson/portRangeFix
...
Added bounds checking for listening_ports.
2013-05-30 10:05:21 -07:00
arvidn
d283e3167f
support serving pre-gzipped files transparently provided the user agent accepts gzip content-encoding. The feature breaks if the user agent makes a range request within a gzipped file, and returns 501 in this case
2013-05-30 09:59:11 -07:00
Cody Hanson
94050d44e4
Added bounds checking for listening_ports.
...
Needs to be a valid TCP port number, and not less than 1 or greater than 65535
2013-05-30 10:54:59 -06:00
Sergey Lyubka
dee97cbf22
Update README.md
2013-05-30 18:24:41 +02:00
Sergey Lyubka
be01471968
Update README.md
2013-05-29 13:40:57 +02:00
Sergey Lyubka
a74c44c463
Update README.md
2013-05-29 13:37:31 +02:00
Sergey Lyubka
81e53d8375
Update README.md
2013-05-26 19:12:12 +02:00
Sergey Lyubka
ca626abcac
Update README.md
2013-05-23 18:50:49 +02:00
Sergey Lyubka
b5e7730ac7
Update README.md
2013-05-22 23:56:07 +02:00
Sergey Lyubka
33b920ed2c
Exported mg_url_encode()
2013-05-19 08:00:42 +01:00
Sergey Lyubka
b5b234fab2
Improved docstring for mg_read()
2013-05-19 08:00:12 +01:00
Sergey Lyubka
af89d2446b
Squashed warnings on win32 in Lua code
2013-05-19 07:46:15 +01:00
Sergey Lyubka
791ad49651
Merge pull request #172 from jwang11/master
...
Securely close SSL connection by standard SSL_shutdown
2013-05-18 23:43:51 -07:00
jwang
063b26fece
Securely close SSL conection
...
For SSL in close_connection, current implementation use close_socket_gracefully to close socket firstly, then SSL_free. In my
testing, this approach may cause some pending write data missing. I'd suggest use standard SSL_shutdown in SSL conection. It
need call twice according to openSSL manual - one call sends the close_notify alert and one call receives the response from
the peer
2013-05-19 10:40:10 +08:00
Sergey Lyubka
add079a949
Added socket functions to lua environment
2013-05-19 01:25:54 +01:00
Sergey Lyubka
6e59ad8a0d
Fix for prepare_lua_environment
2013-05-19 01:25:10 +01:00
Sergey Lyubka
f4862b646d
defined ALL_WINOBJS and using it for windows build
2013-05-18 15:21:52 +01:00
Sergey Lyubka
91fa767efb
Fix doc string for websocket_data()
2013-05-18 15:21:20 +01:00
Sergey Lyubka
5e78711467
Fixed masking in websocket code
2013-05-18 10:29:03 +01:00
Sergey Lyubka
b4a622cfd6
merge
2013-05-17 11:00:36 +01:00
Sergey Lyubka
8c118bf4cc
Exported mg_prepare_lua_environment()
2013-05-17 10:52:40 +01:00
Sergey Lyubka
728ebdaafa
Merge pull request #170 from oerik/movadd
...
Added .mov (quicktime) to builtin_mimes_types
2013-05-16 05:39:10 -07:00
Erik Oomen
3a186976d7
Added .mov (quicktime) to builtin_mimes_types
2013-05-16 14:33:58 +02:00
Sergey Lyubka
2e232b3304
Lua functionality change: print renamed to mg.write, read renamed to mg.read. Expanded user manual, fixed example pages.
2013-05-15 17:42:34 +01:00
Sergey Lyubka
d72645bf91
Using local var in open_auth_file
2013-05-15 09:43:38 +01:00
Sergey Lyubka
7d5bcec92d
Better cleanup in close_connection()
2013-05-15 08:28:56 +01:00
Sergey Lyubka
215ea28db0
Added lua to the repo
2013-05-14 13:41:44 +01:00
Sergey Lyubka
9b76d60b38
Merge pull request #131 from abadc0de/lua_read_fixup
...
lsp_mg_read: remove dead code, return nil on empty read
2013-05-13 10:15:34 -07:00
Sergey Lyubka
63ccf8199f
Style changes in poll()
2013-05-13 18:07:38 +01:00
Sergey Lyubka
6bc6022aa9
Merge pull request #164 from fredfung/master
...
Fix parameter 1 for select in poll()
2013-05-13 10:05:26 -07:00
ff.feng
b68db66e97
Fix parameter 1 for select in poll()
2013-05-13 23:57:26 +08:00
Sergey Lyubka
94e1c5a41b
Added sanity checking in send_file_data()
2013-05-12 23:17:44 +01:00
Sergey Lyubka
ab16220861
Not leaking socket in set ports option
2013-05-10 15:40:19 +01:00
Sergey Lyubka
c0eb3e56b4
Not using realloc2 in set_ports_option
2013-05-10 15:21:55 +01:00
Sergey Lyubka
5591aa5a0d
Added .ttf mime type, https://github.com/valenok/mongoose/issues/129
2013-05-10 14:45:12 +01:00
Sergey Lyubka
6f946f5eea
websocket code fix, https://github.com/valenok/mongoose/pull/146
2013-05-10 13:41:48 +01:00
Sergey Lyubka
39cd5b8323
Signature for mg_get_cookie changed
2013-05-10 13:14:04 +01:00
Sergey Lyubka
ca96db714a
Updated readme
2013-05-10 12:30:30 +01:00
Sergey Lyubka
a7f97bf2f2
Fixed leaks, per afs-bb https://github.com/valenok/mongoose/pull/161
2013-05-10 12:22:04 +01:00
Sergey Lyubka
e579355b01
url_decode -> mg_url_decode
2013-05-08 11:40:13 +01:00
Sergey Lyubka
cfbaf7f1ae
Expose mg_url_decode to the API
2013-05-08 11:36:38 +01:00
Sergey Lyubka
ce26234ace
Merge pull request #159 from aerotech/master
...
_CRT_SECURE_NO_WARNINGS should not generate a warning if already defined
2013-05-07 03:29:03 -07:00
Pavel
c28dc45d4c
removing warning about _CRT_SECURE_NO_WARNINGS if it is already defined
...
modified: mongoose.c
2013-05-06 09:02:30 -04:00
Sergey Lyubka
98b6c5e16a
Merge pull request #157 from Thileepan/master
...
Environment variable required for PHP cgi
2013-05-06 01:50:26 -07:00
Thileepan
1d9d1111e1
Environmental variables required for PHP cgi.
...
In few windows machines, the environment variables "ProgramFiles" is required to successfully execute PHP code especially socket functions.
2013-05-06 13:05:37 +05:30
Sergey Lyubka
2a0b55b30b
mg_upload: trigger callback when file is already closed
2013-04-26 21:32:22 +01:00
Sergey Lyubka
1e3b167208
updated readme
2013-04-25 16:34:36 +01:00
Sergey Lyubka
f7821b757c
Updated README
2013-04-19 16:28:39 -07:00
Sergey Lyubka
c352486abb
Squashed warning in push()
2013-04-11 12:51:07 -07:00
Sergey Lyubka
4120b9bcc0
mg_get_cookie() signature change
2013-04-11 12:49:41 -07:00
Sergey Lyubka
f7725f2eeb
updated readme
2013-04-02 09:17:36 -07:00
Sergey Lyubka
be06c3620c
Updated readme
2013-03-28 18:46:15 -07:00
Sergey Lyubka
272644e39f
mg_md5 returns char *, not void
2013-03-27 01:31:12 -07:00
Sergey Lyubka
55ef3afea4
Updated README
2013-03-24 09:06:52 -07:00
Sergey Lyubka
9e07c742ff
Merge pull request #132 from hendrikp/master
...
Fixed crash and description for digest authentication
2013-03-19 10:54:05 -07:00
Hendrik Polczynski
cd2e50c2c4
Update UserManual.md
...
fixed/extended global_auth_file description.
2013-03-19 17:52:17 +01:00
Hendrik Polczynski
fdef2b8643
Update mongoose.c
...
when having connections with and without auth would cause double free and then crash
2013-03-19 17:42:21 +01:00
abadc0de
ce55924a02
lsp_mg_read: remove dead code, return nil on empty read
2013-03-17 23:33:02 -04:00
Sergey Lyubka
fbca54bcaf
Updated readme
2013-03-17 07:53:03 -07:00
Sergey Lyubka
41c25d60d6
Updated README
2013-03-13 05:07:20 -07:00
Sergey Lyubka
a9b5bb351f
Added travis config
2013-03-11 07:25:11 -07:00
Sergey Lyubka
51ed3efcd1
Style fixes
2013-03-09 13:16:41 +00:00
Sergey Lyubka
67cffc8db5
Documented struct mg_callbacks
2013-03-09 13:12:03 +00:00
Sergey Lyubka
72abaa043b
Documented struct mg_callbacks
2013-03-09 13:01:02 +00:00
Sergey Lyubka
b3a511f9c5
Broken down cocoa target
2013-03-08 16:13:29 +00:00
Sergey Lyubka
8d1f6377c4
Changed websocket_data() handler API. Buffering and passing whole websocket message.
2013-03-08 16:03:23 +00:00
Sergey Lyubka
22dddc2eeb
Merge pull request #124 from abadc0de/lua_err
...
Lua page error handling cleanup
2013-03-08 03:15:04 -08:00
Sergey Lyubka
daab527743
Merge pull request #125 from bakwc/warnings
...
A little bit more warnings suppresed
2013-03-08 02:52:14 -08:00
Filipp Kovalev
dd49c0791f
A little bit more warnings suppresed
2013-03-08 14:41:17 +04:00
Sergey Lyubka
4b539d4b95
Suppressed some mingw warnings
2013-03-08 07:18:39 +00:00
Sergey Lyubka
5eabfe5da2
Using pijyoi's patch for connection close.
2013-03-08 07:08:09 +00:00
Sergey Lyubka
36b7c8d60d
Forcing connection close when client disconnects.
2013-03-08 07:03:23 +00:00
abadc0de
aa37b728ad
Merge commit '10234' into lua_err
2013-03-07 03:02:15 -05:00
Sergey Lyubka
62085e5215
updated user manual
2013-03-06 13:37:01 +00:00
Sergey Lyubka
d036f8a3f0
Merge pull request #118 from theaccordance/master
...
Added additional artwork files for Retina Display Support
2013-03-05 11:03:18 -08:00
Sergey Lyubka
fb5e2b8c2f
Setting off IPV6_V6ONLY for USE_IPV6 case
2013-03-05 18:55:33 +00:00
Sergey Lyubka
4505b00733
Removed support for option names
2013-03-05 18:26:10 +00:00
Sergey Lyubka
c485b8264e
Updated readme
2013-03-05 08:44:25 +00:00
Joseph Mainwaring
8edd710c00
Added additonal icon files to support Retina displays
2013-03-03 20:32:08 -06:00
Sergey Lyubka
3984e9f5cc
Grammar in user manual
2013-03-02 10:34:28 +00:00
Sergey Lyubka
d4fa794c83
Added mongoose internals section
2013-03-02 10:30:47 +00:00
Sergey Lyubka
3892e0199e
Passing user_data to init_ssl()
2013-02-28 09:12:52 +00:00
Sergey Lyubka
67f5de624e
updated readme
2013-02-28 08:09:39 +00:00
abadc0de
10234b07c4
Remove dead code
2013-02-27 16:33:05 -05:00
abadc0de
36a83e1452
Merge https://github.com/valenok/mongoose
2013-02-27 15:32:43 -05:00
abadc0de
34df4ec1fd
Fix mg.onerror returns non-zero to stop processing
2013-02-27 15:29:18 -05:00
Sergey Lyubka
69cb94f3fb
Removed header printing from page.lp
2013-02-27 18:06:35 +00:00
Sergey Lyubka
7204d71136
Merge pull request #102 from abadc0de/master
...
Better error handling and an include function for lua pages
2013-02-27 03:27:28 -08:00
Sergey Lyubka
283f590349
Merge pull request #106 from BusyJay/feature-2
...
Fix bugs about range request and explorer crashes
2013-02-27 03:21:33 -08:00
Sergey Lyubka
27735f293b
Updated dates
2013-02-27 11:17:33 +00:00
Sergey Lyubka
a560334fbb
Merge pull request #111 from dpsk/lua_docs
...
Lua docs
2013-02-27 03:10:14 -08:00
Mikhail Nikalyukin
cd1707034c
update README.md
2013-02-27 13:04:08 +02:00
Mikhail Nikalyukin
5ce1fc3c2a
add lua page example with the form submitting
2013-02-27 13:02:39 +02:00
Sergey Lyubka
c78fe425a0
Updated Lua section in user manual
2013-02-27 10:49:31 +00:00
Sergey Lyubka
a58bb71c19
Added Lua section to the user manual
2013-02-27 10:44:59 +00:00
Sergey Lyubka
fc9a9593d2
Added sqlite to linux_lua target
2013-02-27 10:44:42 +00:00
Sergey Lyubka
eb1fdf56e6
Updated readme
2013-02-26 11:47:46 +01:00
abadc0de
ab960df8a9
Lua call stack cleanup
2013-02-25 20:48:36 -05:00
abadc0de
08048bd5bb
Merge https://github.com/valenok/mongoose
2013-02-25 16:23:50 -05:00
abadc0de
800517ac16
Added support for lua error handling and includes
...
- Added mg.onerror, mg.include, mg.redirect
- mg.onerror, if overridden, lets the user trap syntax errors and
other loadbuffer errors, and dump stack traces and debug info
for uncaught runtime errors.
- Log unexpected errors from mg.onerror handlers
- Provide mg.cry so custom handlers can reproduce default behavior
- Call mg.onerror handler before unwinding stack
- If mg.onerror returns non-0, stop loading chunks
- Included pages stop parent page processing if mg.onerror returns non-zero
- Included pages don't sent HTTP errors, they throw lua errors
2013-02-25 16:19:38 -05:00
Jay
690eff4fa2
Fix bugs about range request and explorer crashes
...
1. fix a bug that when header contains "Range: 100-", the range request
support will fail
2. (windows) fix a bug that when explorer.exe crashes due to some
reason, the tray icon will disappear.
2013-02-25 22:17:46 +08:00
Sergey Lyubka
e47b5b775a
Squashed warning
2013-02-24 20:34:32 +00:00
Sergey Lyubka
c15e2af897
Merge pull request #104 from pijyoi/warning-fix
...
minor fixes to reduce warnings in mingw
2013-02-24 12:28:23 -08:00
KIU Shueng Chuan
d8536b011c
portable socket type should be SOCKET
2013-02-24 23:41:32 +08:00
KIU Shueng Chuan
a2239c2b4b
squash mingw variable set but not used warning
2013-02-24 23:29:05 +08:00
KIU Shueng Chuan
d3c02331d4
squash mingw printf format warning
2013-02-24 23:22:34 +08:00
Sergey Lyubka
d707841166
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-02-24 07:58:21 +00:00
Sergey Lyubka
affd82a885
updated readme
2013-02-24 07:56:41 +00:00
Sergey Lyubka
8322c82790
Merge pull request #103 from pijyoi/mingw-fix
...
avoid defining macros already present on mingw32
2013-02-23 00:52:08 -08:00
KIU Shueng Chuan
08708435a7
avoid defining macros already present on mingw32
2013-02-23 10:37:45 +08:00
Sergey Lyubka
1c6036c3ac
Updated readme
2013-02-22 08:08:47 +00:00
Sergey Lyubka
6c3cb6f3eb
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-02-22 04:34:21 +00:00
Sergey Lyubka
a123874ac5
Updated readme
2013-02-21 22:58:51 +00:00
Sergey Lyubka
7931929a42
Fix compile of mg_strcasestr() under windows
2013-02-18 10:49:03 +00:00
Sergey Lyubka
cc4a4fb2ab
Added http_error() to struct mg_callbacks
2013-02-16 15:26:11 +00:00
Sergey Lyubka
3d211d89c5
win32 mmap() must not close file handle, issue 99
2013-02-16 14:37:58 +00:00
Sergey Lyubka
fbf1ccee45
Fix out-of-bounds acces in url_decode()
2013-02-16 14:31:37 +00:00
Sergey Lyubka
0bd43bcae3
Using mg_strcasestr() instead of strstr()
2013-02-16 14:17:38 +00:00
Sergey Lyubka
b809665cad
Squashed warning
2013-02-16 12:54:16 +00:00
Sergey Lyubka
463b49f1bd
Fixed poll() issue with QNX
2013-02-16 12:54:02 +00:00
Sergey Lyubka
a881aad5c6
Updated readme
2013-02-16 11:48:34 +00:00
Sergey Lyubka
aae0995cd2
Updated README
2013-02-12 21:24:08 +00:00
Sergey Lyubka
26b3f227d9
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-02-12 21:04:42 +00:00
Sergey Lyubka
665770d602
cleaning up more files on make clean
2013-02-12 21:04:23 +00:00
Sergey Lyubka
fcafaa73d6
Style fixes in the comments
2013-02-12 21:03:54 +00:00
Sergey Lyubka
079b9ec2c1
Added linux_lua target
2013-02-12 12:33:44 +00:00
Sergey Lyubka
7bd9a85897
Merge pull request #92 from jmucchiello/send_http_error
...
Send http error
2013-02-10 13:51:34 -08:00
Joe Mucchiello
2efc5d9fce
http_error callback
...
Allow user to display status code errors
2013-02-10 15:58:06 -05:00
Joe Mucchiello
1cb094e059
Revert "Add http_error callback"
...
This reverts commit 27fe9c8f01 .
2013-02-10 15:50:20 -05:00
Joe Mucchiello
27fe9c8f01
Add http_error callback
...
Allows user code to display its own error status responses or just log
the errors. Is called even in cases where begin_request is not called.
2013-02-10 15:02:37 -05:00
jmucchiello
9178fbd153
Merge pull request #1 from valenok/master
...
update
2013-02-10 11:51:24 -08:00
Sergey Lyubka
b2b43ab0cd
updated user manual
2013-02-10 16:27:19 +00:00
Sergey Lyubka
1415d187eb
Added comments about auth checks done before begin_request()
2013-02-10 15:32:08 +00:00
Sergey Lyubka
a65078b858
Calling begin_request() after auth checks.
2013-02-10 15:25:11 +00:00
Sergey Lyubka
7107afae5c
updated readme
2013-02-10 15:00:34 +00:00
Sergey Lyubka
f6a807c5a4
updated readme
2013-02-10 08:17:59 +00:00
Sergey Lyubka
47b11dd19e
Updated README
2013-02-08 10:50:45 +00:00
Sergey Lyubka
61cdc93405
Updated README
2013-02-08 10:49:29 +00:00
Sergey Lyubka
7a52bd643c
Updated manual
2013-02-08 10:45:40 +00:00
Sergey Lyubka
63e8052e4b
Added index.lp to the index_files
2013-02-08 10:26:25 +00:00
Sergey Lyubka
782d0cda46
Updated user manual
2013-02-08 10:10:02 +00:00
Sergey Lyubka
72803eb7f8
num_threads 20 -> 50
2013-02-08 10:09:53 +00:00
Sergey Lyubka
c7fd221ab7
Updated README
2013-02-08 09:17:59 +00:00
Sergey Lyubka
492185e35f
Updated README
2013-02-08 09:17:21 +00:00
Sergey Lyubka
845d7b08e1
Fixed assert for keepalive code path
2013-02-08 08:21:52 +00:00
Sergey Lyubka
49bac31d2d
Updated README
2013-02-08 08:21:05 +00:00
Sergey Lyubka
9baf2d4ba4
Using keep alive in unit test
2013-02-08 08:19:01 +00:00
Sergey Lyubka
1becd26a8f
Updated readme
2013-02-07 20:58:37 +00:00
Sergey Lyubka
ffa983552f
3.7 -> 3.8
2013-02-06 09:40:26 +00:00
Sergey Lyubka
13d0b67c00
More updates to User Manual
2013-02-05 18:00:49 +00:00
Sergey Lyubka
bda8e90733
Added protection against running under launchd
2013-02-05 17:59:56 +00:00
Sergey Lyubka
fed2057a33
Added comment
2013-02-05 17:59:16 +00:00
Sergey Lyubka
a27f62f89f
More options
2013-02-05 14:04:38 +00:00
Sergey Lyubka
d53902844c
Squashed warning for lua+sqlite code path
2013-02-04 22:14:42 +00:00
Sergey Lyubka
9870b80c65
Updated README
2013-02-04 20:18:07 +00:00
Sergey Lyubka
cde25a8b82
Removed embedded test
2013-02-03 19:56:24 +00:00
Sergey Lyubka
1b7f036199
Removed embedded test
2013-02-03 19:56:16 +00:00
Sergey Lyubka
b80157b7ea
Setting user data pointer properly
2013-02-03 19:15:27 +00:00
Sergey Lyubka
f9311f0b30
Building cocoa version with lua + sqlite
2013-02-02 16:42:01 +00:00
Sergey Lyubka
bdd933f597
Fixed UNIX code path for handle_lsp_request()
2013-02-02 16:41:43 +00:00
Sergey Lyubka
ee55d38b55
API CHANGE: using struct mg_callbacks
2013-02-01 16:48:30 +00:00
Sergey Lyubka
62162ff3e4
Added /DNO_SSL_DL to w target
2013-02-01 13:53:31 +00:00
Sergey Lyubka
98f66c8867
Updated User Manual
2013-01-31 22:33:08 +00:00
Sergey Lyubka
c132191cad
Prepare to change the API to use explicit callbacks
2013-01-31 18:29:22 +00:00
Sergey Lyubka
d73aa1ad09
Added skeleton for regex checks
2013-01-31 18:06:05 +00:00
Sergey Lyubka
d5bc58c38d
Using sqlite as an example
2013-01-31 15:17:40 +00:00
Sergey Lyubka
51a80e4844
Do not output headers when serving Lua server pages
2013-01-31 15:17:19 +00:00
Sergey Lyubka
54f15a8fe3
Adding lua+sqlite functionality in the default windows binary build
2013-01-31 13:38:57 +00:00
Sergey Lyubka
ce0826e285
Adding lua+sqlite functionality in the default windows binary build
2013-01-31 13:38:32 +00:00
Sergey Lyubka
b21a8b2193
Removed wait_until_socket_is_readable(). Rely on socket timeout.
2013-01-29 11:21:23 +00:00
Sergey Lyubka
8bb49642da
Merge pull request #86 from thekvs/master
...
I've just fixed a typo.
2013-01-28 12:06:28 -08:00
Konstantin Sorokin
3f78df86ac
fixed typo
2013-01-28 18:49:19 +04:00
Sergey Lyubka
c30f7a5258
Merge pull request #77 from bamiaux/add_request_timeout
...
Add request_timeout option
2013-01-28 03:13:28 -08:00
Sergey Lyubka
7ed94d1918
Unit test call fixed
2013-01-27 20:49:30 +00:00
Sergey Lyubka
dc513a9a15
Wrapped SSL code into #ifndef NO_SSL
2013-01-27 20:49:17 +00:00
Sergey Lyubka
8ce6cf61b7
Using relative path to yassl
2013-01-27 20:48:52 +00:00
Sergey Lyubka
e63f7fe33a
Always initializing struct file on stack
2013-01-25 21:50:00 +00:00
Sergey Lyubka
b589e0cdf4
Fixed mg_upload() and some SSL related issues
2013-01-25 20:28:09 +00:00
Sergey Lyubka
2b87f909ce
Makefile refactored
2013-01-25 20:27:52 +00:00
Sergey Lyubka
ec7d0b1abd
Added test_mg_upload()
2013-01-25 20:27:08 +00:00
Sergey Lyubka
5bb3ede46d
Removed mongoose.1
2013-01-25 13:21:19 +00:00
Sergey Lyubka
5105717f78
Added printf checkers for mg_download
2013-01-24 09:35:54 +00:00
Sergey Lyubka
9d1e356709
changed README
2013-01-24 09:35:11 +00:00
Sergey Lyubka
3d7192d9fa
Typo in mongoose.h fixed
2013-01-24 01:16:23 +00:00
Sergey Lyubka
1b3cbb17c1
Updated README
2013-01-23 23:48:07 +00:00
Sergey Lyubka
f1f03e4378
Updated README
2013-01-23 23:43:59 +00:00
Sergey Lyubka
625a2a3652
Updated README
2013-01-23 23:42:46 +00:00
Sergey Lyubka
33a31d9308
Updated README
2013-01-23 23:39:55 +00:00
Sergey Lyubka
5e9bd1f05e
Update README.md
2013-01-23 23:34:01 +00:00
Sergey Lyubka
75d9a6c844
Removed mg_connect() and mg_fetch(). Added mg_download()
2013-01-23 21:54:27 +00:00
Sergey Lyubka
179761fd99
Removed LUA_FLAGS from CL flags
2013-01-23 21:14:11 +00:00
Sergey Lyubka
b783813e54
Always sending MG_NEW_REQUEST, as first step in processing the request
2013-01-22 12:28:22 +00:00
Sergey Lyubka
4b29689a42
Binding to 127.0.0.1 to prevent popup windows on mac
2013-01-22 12:26:56 +00:00
Sergey Lyubka
9c4853471c
Added stub for test_mg_upload()
2013-01-22 09:08:00 +00:00
Sergey Lyubka
81e21a3a0b
Using get_url_to_first_open_port() in cocoa build
2013-01-22 09:00:17 +00:00
Sergey Lyubka
bec6ea00ea
Using unit test targets
2013-01-22 08:59:42 +00:00
Sergey Lyubka
ed32e3be0f
Added unix_unit_test and windows_unit_test targets
2013-01-22 08:59:13 +00:00
Sergey Lyubka
83fae879bf
Binding to 127.0.0.1 to prevent annoying popups on mac
2013-01-21 22:29:31 +00:00
Sergey Lyubka
2169e6d77f
Added -pthread to the CFLAGS
2013-01-21 17:51:56 +00:00
Sergey Lyubka
850e0a5922
Updated readme
2013-01-21 09:11:58 +00:00
Sergey Lyubka
322ed3cc6f
fflush()-ing uploaded file before calling MG_UPLOAD callback
2013-01-21 01:39:14 +00:00
Sergey Lyubka
6d4d53c247
Squashed linux warning in process_new_connection()
2013-01-20 10:11:57 +00:00
Sergey Lyubka
e6f8d40942
SSL redirect, using Host: header
2013-01-20 10:06:31 +00:00
Sergey Lyubka
7e051206ad
Removed obsolete manual reference
2013-01-20 00:21:57 +00:00
Sergey Lyubka
76d913796c
Getting first SSL listener dynamically
2013-01-19 22:32:26 +00:00
Sergey Lyubka
4c2609df2c
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-01-19 10:46:10 +00:00
Sergey Lyubka
f79bd71fd4
Implemented ssl redirection
2013-01-19 10:45:58 +00:00
Sergey Lyubka
5d4f5b6000
Merge pull request #83 from rogerz/mingw-build-error
...
Fix building error under mingw
2013-01-18 05:36:50 -08:00
Rogerz Zhang
fe7c245a6b
Fix building error under mingw
2013-01-18 21:22:44 +08:00
Sergey Lyubka
f24bebaca8
3.6 -> 3.7
2013-01-18 11:08:20 +00:00
Sergey Lyubka
08afdfa8b6
better cleanup
2013-01-18 10:43:52 +00:00
Sergey Lyubka
05f7d65fc9
Added "Start browser" menu item
2013-01-18 10:38:58 +00:00
Sergey Lyubka
a194e07545
2011 -> 2013
2013-01-18 09:45:54 +00:00
Sergey Lyubka
dbb8a5bbf4
put_delete_passwords_file -> put_delete_auth_file
2013-01-18 09:45:36 +00:00
Sergey Lyubka
d3005df019
Bug fix in Win32 mg_mkdir
2013-01-17 17:51:59 +00:00
Sergey Lyubka
ef9b103a00
Started adding ssl redirection support
2013-01-17 17:50:18 +00:00
Sergey Lyubka
f0a2924a7c
Added config editor for Win32
2013-01-17 17:14:41 +00:00
Sergey Lyubka
f109030cd0
Renamed: global_passwords_file -> global_auth_file, put_delete_passwords_file -> put_delete_auth_file.
2013-01-17 17:14:11 +00:00
Sergey Lyubka
eebdd06532
Added comdlg32.lib to GUILIB
2013-01-17 17:13:15 +00:00
Sergey Lyubka
ca2fc71a01
Changed systray icon
2013-01-17 11:26:50 +00:00
Sergey Lyubka
e61e371c16
Changed user manual
2013-01-17 11:20:59 +00:00
Sergey Lyubka
d5f07f5b9b
Changed README
2013-01-17 11:07:53 +00:00
Sergey Lyubka
0a8d5dde51
Changed README
2013-01-17 10:59:42 +00:00
Sergey Lyubka
5646caa572
Using poll() instead of select() to prevent FD_SETSIZE overflows, for programs that open large number of descriptors
2013-01-16 23:45:03 +00:00
Sergey Lyubka
c7e5573d08
Not building DLLs. Using separate target for cocoa mac app.
2013-01-16 23:43:06 +00:00
Sergey Lyubka
b9a226d109
Adding command line options
2013-01-15 13:53:25 +00:00
Sergey Lyubka
fcf8b86288
Adding command line options
2013-01-15 13:51:35 +00:00
Sergey Lyubka
a8b08c6784
Fixing http://code.google.com/p/mongoose/issues/detail?id=392
2013-01-15 13:24:53 +00:00
Sergey Lyubka
1fb6f391a1
In mg_upload(), use fopen() with "wb" mode instead of "wbx", cause "x" is not understood by Mac and Windows.
2013-01-13 10:55:42 +00:00
Sergey Lyubka
fcbc36ecde
return 0; after PostQuitMessage()
2013-01-10 16:26:01 +00:00
Sergey Lyubka
70771f29ce
Config edit implemented for mac
2013-01-10 16:24:42 +00:00
Sergey Lyubka
121391504f
mongoose.app -> Mongoose.app
2013-01-10 16:24:12 +00:00
Sergey Lyubka
8455742440
Pass reply status code to MG_REQUEST_COMPLETE
2013-01-10 09:56:24 +00:00
Sergey Lyubka
5b786a5089
make release corrected
2013-01-09 21:21:04 +00:00
Sergey Lyubka
a6e74e7707
3.5 -> 3.6
2013-01-09 20:55:21 +00:00
Benoît Amiaux
acf72a6109
Add request_timeout option
2013-01-09 17:09:04 +01:00