Bryan Roe
bac3533d29
Added missing #ifdef
2019-10-31 10:59:46 -07:00
Bryan Roe
1be7ee3394
Fixed DoWhile readloop on Windows, to fix some edge case reading race conditions
2019-10-29 10:58:41 -07:00
Bryan Roe
46aaa971ae
fixed compiler warning
2019-09-20 16:42:28 -07:00
Bryan Roe
365fe2d36f
Fixed bug where if WatchDog is specified on Linux, a compile error happens because of a typo
2019-09-19 16:35:47 -07:00
Bryan Roe
5d2e5dab8b
Added compile switch to support SSL/TLS key export for debug
2019-09-17 00:52:04 -07:00
Bryan Roe
eb76a93551
Fixed compiler warnings
2019-09-09 17:44:42 -07:00
Bryan Roe
72db242dee
Added ability to end stdin on child_process spawned process
2019-09-06 21:41:48 -07:00
Bryan Roe
d7f0424d2c
Updated crash handler on linux, so that if a core file would've been generated on crash, it will reset/restart the signal handler, so that a core file will be generated after logging the crash.
2019-08-27 15:00:18 -07:00
Bryan Roe
fa6836d17a
Added ability to generate Dump file on crash, on Windows
2019-08-26 14:16:39 -07:00
Bryan Roe
84882e0b52
Fixed the following bugs on Windows:
...
1. Normally when a process exits when a stream is paused, I delayed the exit propagation until resume was called, so data was not lost. However, if no data was read, resume may not get called, causing the descriptor to continually trigger the event loop. For example, if the user explicity killed the process, resume won't get triggered after the fact.
2. If the above descriptor continually triggers the event loop, other descriptors will not get serviced, which can cause a stall
3. The above two issues caused KVM issues on windows, where it would not clean up properly and leak handles because the exit wasn't gettign called. But at the same time there's a race condition depending on where in the event list the descriptor is, could cause future KVM sessions to stall.
2019-08-23 17:07:12 -07:00
Bryan Roe
66273f8950
1. Updated waitExit() for windows to support a timeout
...
2. Updated ProcessPipe for Windows, to disable inheritance on detach
3. Updated service-manager to support restart on self for windows
2019-08-07 15:23:13 -07:00
Bryan Roe
a89a3204c1
1. Added ability to query if Select was interrupted with APC
...
2. Updated So that before readableStream and 'exit' are dispatched, APC's are unrolled if 'select' was interrupted, preventing stack corruption caused by trying to make a re-entrant winsock call, which is not supported by winsock.
2019-08-07 11:32:33 -07:00
Bryan Roe
4cef81719e
1. Fixed upper limit for inline JS on command line
...
2. Updated win-info to be able to fetch list of installed apps
2019-07-31 15:14:01 -07:00
Bryan Roe
245a130b50
Fixed compiler warnings
2019-07-30 15:45:03 -07:00
Bryan Roe
3efdc27478
1. Updated so that APCs are used for thread dispatching for Read/Exit on Windows
...
2. Updated to add support for child_process.waitExit() on Windows.
2019-07-23 16:16:53 -07:00
Bryan Roe
58f0230c7a
fixed compiler warning
2019-07-17 17:14:41 -07:00
Bryan Roe
735ac0f0c9
Fixed compiler warnings
2019-07-16 15:12:21 -07:00
Bryan Roe
608c77106f
Merge branch 'master' of https://github.com/Ylianst/MeshAgent
2019-06-25 10:47:15 -07:00
Bryan Roe
bf3eabda1c
Fixed line endings, which caused compilation error with clang
2019-06-25 10:46:58 -07:00
Bryan Roe
e2bcd832b5
Fixed infinite loop bug... Check if OnSendOK needs to be sent
2019-06-24 17:23:32 -07:00
Bryan Roe
604e853354
fixed freebsd bugs
2019-06-20 16:48:38 -07:00
Bryan Roe
eb297dbfe8
Updated AsyncSocket_MultiWrite and WebRTC for OpenSSL/1.1.1c
2019-06-20 14:14:50 -07:00
Bryan Roe
6de8178723
Updated TLS buffering, to fix issue associated with OpenSSL/1.1.1c
...
Still needs additional work
2019-06-20 13:56:33 -07:00
Bryan Roe
13ad575bb5
1. Fixed to address changes with OpenSSL/1.1.1c
...
2. ToDo: Still need to update WebRTC and Pending Writes
2019-06-19 15:29:56 -07:00
Bryan Roe
124c0d386f
Initial modifications to support FreeBSD
2019-06-17 15:45:46 -07:00
Bryan Roe
9f99051e20
1. Fixed re-entrancy issue with Pre/Post select when WaitExit is used
...
2. Updated cleanup, so that the processing loop unwinds first
2019-06-13 13:47:26 -07:00
Bryan Roe
bb82553fa8
1. Updated LinkedList to use ILibMemory_SmartAllocate
...
2. Updated ILibChain_Continue to flag when it exits the processing loop
3. Updated main loop to reset continuation flag at the start of each loop
2019-06-13 13:36:43 -07:00
Bryan Roe
4451e12e7a
Updated Cleanup for Linux/MacOS, still need to fix
2019-06-06 18:47:41 -07:00
Bryan Roe
4a11c63b6c
Fixed semaphores on MacOS
2019-06-06 18:45:42 -07:00
Bryan Roe
f15c11c845
1. Updated MacOS, so detached child process uses fork instead of vfork
...
2. Updated detached to be a bitmask on the type
3. Updated MacOS message-box cleanup
2019-06-04 13:06:17 -07:00
Bryan Roe
78512cda21
Updated, so writableAll is supported on Posix, on server domain sockets
2019-05-29 15:23:59 -07:00
Bryan Roe
134f34d9cf
1. added 'ILibChain_IsLinkAlive' macro
...
2. incremental update for macos message-box
2019-05-24 15:11:27 -07:00
Bryan Roe
26d86ce449
Added canary check to mitigate crash on linux
2019-05-16 23:38:51 -07:00
Bryan Roe
fdb4411825
Added comments describing differences between two similar macros
2019-05-15 10:46:16 -07:00
Bryan Roe
7cf000571d
1. Fixed compiler warning
...
2. Updated so process.exit() throws exception when called in agent mode
2019-05-14 14:52:39 -07:00
Bryan Roe
d0fb36d10b
Add ability to specify detached=true in options
2019-05-12 21:39:02 -07:00
Bryan Roe
6770921ca7
Updated ReadEx/WriteEx so it returns status, which can be used to detect broken pipe
2019-05-01 21:19:56 -07:00
Bryan Roe
40b3ca4d03
1. Added CancelEx
...
2. Updated, so if ReadEx is used, buffer is not freed directly
2019-05-01 16:10:58 -07:00
Bryan Roe
9319b61bfa
Fixed bug with ReallocRaw macro, if the memoy location moves
2019-05-01 16:10:11 -07:00
Bryan Roe
8c6a230d1e
1. Fixed bug with createConnection()
...
2. Updated Windows IPC
2019-04-30 15:15:20 -07:00
Bryan Roe
1e58eaf103
Experimental
2019-04-26 16:07:06 -07:00
Bryan Roe
f6ccbce1fb
1. Fixed return value of util_from_cer to be consistent with other util methods
...
2. Added DER support to tls.loadCertificate
3. Updated sign/verify methods
2019-04-03 17:39:22 -07:00
Bryan Roe
31be55c945
Fixed bug, where Packet Validation failed, because HttpStream was always configured as server.
2019-03-27 15:00:39 -07:00
Bryan Roe
4bc5619137
Fixed typo
2019-03-26 22:58:17 -07:00
Bryan Roe
ed18cb7944
1. Updated to use #define for maximum header size
...
2. Modified AsyncSocket_Disconnect, to shutdown SD_SEND/SHUT_RD, instead of RDWR/BOTH, because sent data could be lost if a reset was sent
3. Added hardening for http.server packet parsing
2019-03-26 22:10:29 -07:00
Bryan Roe
65ebe45873
Added WebServer protections against Malformed packets, invalid content-length, and overly large headers.
2019-03-26 01:05:27 -07:00
Bryan Roe
429b645a54
1. Added ability to modify environment variables on ScriptContainers
...
2. Fixed bug, where child ScriptContainer would exit if return value had a JSON parse error
2019-03-12 22:23:30 -07:00
Bryan Roe
0aa0a8cfa4
Added ILibBase64DecodeEx
2019-03-04 14:29:52 -08:00
Bryan Roe
b25a54c8b5
Fixed race condition, where on Linux when you compact the DB, it may not unlock before it reopens
2019-03-01 15:31:43 -08:00
Bryan Roe
4c05359e33
Fixed how the request transform stream buffers data
2019-03-01 10:26:04 -08:00