Commit graph

11 commits

Author SHA1 Message Date
pbattu
00efb88ac7 fc changes to support ubuntu-18.04 upgrade 2019-05-21 18:42:14 -03:00
Eric Frias
87a2513981 Remove some unused asio completion functions 2015-08-04 10:39:04 -04:00
Eric Frias
751777e754 Fix more locations where we were making boost::asio calls with buffers declared on the stack which could cause problems when the calling tasks were canceled. 2014-09-11 16:30:03 -04:00
Eric Frias
aa6882b3b7 Allow us to safely cancel tasks that are executing asynchronous network reads
and writes.  This was previously unsafe because we almost always passed read/write
buffers to boost that were on the stack. Canceling the task deleted the stack and
therefore the buffer, but couldn't reliably prevent boost from writing to the buffer
if data came in after the cancel.  This commit adds variants of the read and write
functions that take a shared_ptr<char> instead of a raw char* as the buffer, and
these variants will ensure the shared_ptr will outlive the boost::asio read/write.
2014-09-09 11:10:37 -04:00
Daniel Larimer
eed62c8338 sockets now wait for any pending write or read operations to finish before destructing 2014-07-17 17:03:25 -04:00
Eric Frias
ce7139c073 Start of work towards throttling TCP connections 2014-04-17 12:00:52 -04:00
Daniel Larimer
57e5796839 clean up exception handling on asio / sockets 2013-07-14 17:58:27 -04:00
Daniel Larimer
59a121d64b Updating FC with changes from phoenix-int 2013-06-05 15:19:00 -04:00
Daniel Larimer
38f97ef61a fix json rpc server memory leak 2013-01-11 09:12:53 -05:00
Daniel Larimer
018609fafa moving more functions from mace to fc 2012-09-08 23:46:19 -04:00
Daniel Larimer
34e33d058b adding sha1 and hex methods... 2012-09-08 02:41:28 -04:00