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
Bryan Roe
9205af5804
removed debug line
2019-02-25 22:39:24 -08:00
Bryan Roe
382ea03135
Updated file access, so the db can be queried while an agent is still active
2019-02-25 21:43:48 -08:00
Bryan Roe
b9af163039
Added ability to log control channel messages
2019-02-14 14:03:33 -08:00
Bryan Roe
ed92a0b21c
Fixed capitalization of include, when NOTLS is built
2019-02-13 16:36:38 -08:00
Bryan Roe
995c4015b0
Added functionality so if 'webSocketMaskOverride' is specified in the db, the optimization to disable masking for TLS protected websockets is disabled
2019-02-12 13:43:42 -08:00
Bryan Roe
ae72740a18
1. Updated ILibProcessPipe, so that buffer will grow as necessary
...
2. Updated Windows KVM, to add an accumulator for JUMBO commands
2019-02-06 16:32:31 -08:00
Bryan Roe
26a3ccefd0
Added missing includes, if NOTLS is specified for Linux
2019-02-04 12:49:44 -08:00
Bryan Roe
e9f5209552
Changed how the ForceUnblockPipe works on Linux, to not use fdopen/fdclose.
...
Also modified, so when flushing the ForceUnblockPipe, if the descriptor is invalid, it will recreate it, fixing a 100% CPU issue on linux, that seems to happen after a self-update.
2019-02-02 22:49:20 -08:00
Bryan Roe
817f2786e2
Updated 'ChainViewer'
2019-02-02 02:55:12 -08:00
Bryan Roe
aeaa229e31
1. Modified WebRTC_DataChannel to use union, to simplify struct def
...
2. Added ChainLink MetaData
3. Added 'ChainViewer' to allow JS to debug Chain events
2019-02-01 23:33:02 -08:00