1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 12:13:16 +00:00
Commit Graph

64 Commits

Author SHA1 Message Date
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
Bryan Roe
1b5a6d0bc6 Updated selfupdate to use fork/execv instead of command
Updated SelfUpdate logging
Added SelfUpdate debugging helpers
2019-02-01 17:22:33 -08:00
Bryan Roe
bd16538a8e Fixed compiler warnings on MacOS 2019-02-01 01:13:07 -08:00
Bryan Roe
5995742cef Added db key to log update messages to aid in debugging update failures. 2019-01-31 14:40:52 -08:00
Bryan Roe
1f4f3185bd Updated JS WebRTC debug hooks 2019-01-29 22:41:35 -08:00
Bryan Roe
97a2e5b12c Updated so compiles for MIPS correctly 2019-01-23 14:32:52 -08:00
Bryan Roe
9351108e60 Fixed typo in macro 2019-01-18 17:03:13 -08:00
Bryan Roe
f65a5935dd Fixed compiler warnings 2019-01-18 15:28:28 -08:00
Bryan Roe
e5600ea6b0 Added missing fseek 2019-01-18 14:58:13 -08:00
Bryan Roe
4f5d3bcfe4 Fixed file format to be consistent between 32/64 bit... Updated so it will auto update old format to new format 2019-01-18 14:26:16 -08:00
Bryan Roe
2366122d58 Fixed bug where clearing proxy setting, didn't clear all the settings 2019-01-17 22:59:27 -08:00
Bryan Roe
ba28e98ef7 1. Fixed bug where the last result data length could include the NULL terminator if the input string length was too long.
2. Updated DB calls, to Get/Put will truncate the NULL terminator if it is specified in the key name
3. Updated COMPACT, so keynames will be fixed if it contains a NULL terminator
2019-01-17 18:05:26 -08:00
Bryan Roe
f39beca4aa 1. Fixed bug where pendingBytesToSend went negative
2. Fixed bug where if bytesSent was -1, it caused allocated buffer to be offset incorrectly
2019-01-16 15:50:02 -08:00