334 Commits (fc6331e279f45dd14d4202d746d6ae536022be9d)

Author SHA1 Message Date
Con Kolivas fc6331e279 More gracefully handle out of sync/corrupt binary messages by searching memory for EOL instead of strings 9 years ago
Con Kolivas 4a64775a86 Fix off-by-one error in bkey send size and clear buffer properly in clear_bufline 9 years ago
ckolivas be17fb808a Dont zero binary data eom 9 years ago
ckolivas 05b3a8e39a Append bkey binary data to read_socket_line when it exists 9 years ago
Con Kolivas 879294fe1a Correctly handle existing instance running 9 years ago
Con Kolivas debaa03d9d Simply encode/decode binary keys correctly in messages for now 9 years ago
Con Kolivas a743d307cf Add a function for sending binary data to another process 9 years ago
Con Kolivas 7ad63b09e2 Pass unix message length with unix_recv 9 years ago
Con Kolivas 84c6f0f900 Read off the max open file limits and clamp max clients to 90% of it 9 years ago
Con Kolivas a6cc0bd90c Provide helper functions for setting buffer sizes on any socket fds 9 years ago
Con Kolivas f2ae887a62 Fix initial rcvbufsiz detection 9 years ago
Con Kolivas 1a003db4be Increase receive buffer size whenever possible to beyond largest message size 9 years ago
Con Kolivas 4eed1715c3 Fix logic fail 9 years ago
Con Kolivas f78fe91cef Only ever increase buffer size in add_buflen 9 years ago
Con Kolivas 297e8a83d5 Typo 9 years ago
Con Kolivas 64e74c71f8 Further simplify recv_available 9 years ago
Con Kolivas 96e6f83d57 Allow non EOL data to be stored in read_socket_line 9 years ago
Con Kolivas 360fdf967f Always read all pending data in read_socket_line 9 years ago
Con Kolivas 93adf51c0d Rename add_bufline to add_buflen since it's not a line being added 9 years ago
Con Kolivas 7b887e9ac6 Add mechanism for parsing received block messages from the main pool at remote nodes to submit them locally 9 years ago
Con Kolivas 75a9e3ec3c Add connection mechanism and message workqueues for trusted remotes 9 years ago
Con Kolivas bd7ca390ff Add variable parsing for trusted remote nodes 9 years ago
Con Kolivas f6cf94f187 Copyright date updates 9 years ago
Con Kolivas 225ea83e33 Failure to recv after wait_read_select should be fatal 9 years ago
Con Kolivas 52b3a28b88 Check regularly for an invalidated file handle in read_socket_line 9 years ago
Con Kolivas 6398a4cac6 Add a nodeserver option for dedicated serverurls that will accept incoming requests to act as a mining node 9 years ago
Con Kolivas cb2c0577cb Placeholders for api files 9 years ago
Con Kolivas 5b816982e5 Compression of any sort is slower than ordinary network transfers so remove it 9 years ago
Con Kolivas 47ecddf88a Pass select timed out return of zero in read_socket_line 9 years ago
ckolivas 3a9f5a491e Add an option to selectively enable/disable compression in passthrough modes 9 years ago
Con Kolivas effeba4999 Fix logic fails 9 years ago
Con Kolivas 85302af03f Decrement timeout in read_cs_length 9 years ago
Con Kolivas ff5e74fbd1 Rework read_socket_line loop to not bother reading more once it has a message 9 years ago
Con Kolivas 7e4fee659e Minor fixes 9 years ago
Con Kolivas 5fb2ea342e Various fixes 9 years ago
Con Kolivas 5146b715fc Empty buffer on failure 9 years ago
Con Kolivas 4ef8ab49e3 Fix reinsertion logic 9 years ago
Con Kolivas d69ed7ffcf More fixes 9 years ago
Con Kolivas c9f0858c56 Fixes? 9 years ago
Con Kolivas 11d14620e6 Convert to gzip 9 years ago
Con Kolivas e3fc6a1e56 Selectively compress only large packets greater than one MTU and identify lz4 compatible clients immediately 9 years ago
Con Kolivas 4a52065a55 Only send packets compressed if they're smaller 9 years ago
Con Kolivas 950b855b2d Implement backwardly compatible lz4 compression support to be used by passthroughs and nodes 9 years ago
Con Kolivas b09bb253fc Act as a passthrough in node mode, passing what type of stratum message we're passing through 9 years ago
Con Kolivas eab56b032a Set up local bitcoind connections in node mode 9 years ago
Con Kolivas 6a39cdb299 Add configuration option for node mode 9 years ago
Con Kolivas e1d6f62d3e Name ckpassthrough if no name is given 9 years ago
Con Kolivas d2d5a5daaa Don't use persistent connections to bitcoind 9 years ago
Con Kolivas 83dbc9db12 Use epoll for wait_read_select 9 years ago
Con Kolivas 432d1ce4d5 Don't treat POLLRDHUP as fatal unless we can't receive data after it, and return errors from wait_select functions when they close the socket 9 years ago