29 Commits

Author SHA1 Message Date
Markus Pilman
9d80ee0cb6 fdbrpc is compiling 2022-06-23 17:15:49 -06:00
Renxuan Wang
e548c0d604 Add DNS cache. 2022-04-04 15:08:17 -07:00
Renxuan Wang
ff934ca2ad Change MockDNS to DNSCache. 2022-04-04 15:08:17 -07:00
Renxuan Wang
ebe928e7e1 Throw lookup_failed() when hostname resolving fails. 2022-04-04 15:08:17 -07:00
sfc-gh-tclinkenbeard
a71099471b Update copyright header dates 2022-03-21 13:36:23 -07:00
Renxuan Wang
2ea4146e1f Add resolveTCPEndpointBlocking() to resolve hostnames where async resolving is impossible. 2022-01-28 12:20:41 -08:00
Renxuan Wang
e642b2f5bc Address comments. 2022-01-18 14:34:18 -08:00
Renxuan Wang
28832a99d6 Address comment. 2022-01-18 14:34:18 -08:00
Renxuan Wang
b8bab06e16 Add the functions to set and get mock DNS.
These functions will be used in restarting tests, where mock DNS needs to be saved to and read from files.
2022-01-18 14:34:18 -08:00
Renxuan Wang
4630b0ccea Move DNS mock from SimExternalConnection to Sim2.
This is a revise PR of #5934. In simulation, we don't have direct access to SimExternalConnection.
2021-11-15 17:02:51 -08:00
Renxuan Wang
d9965e0e5a Add DNS mock in SimExternalConnection.
This is a substep in supporting hostnames in cluster files. So that in simulation, we can add <hostname, ip addresses> mappings to mock DNS.
2021-11-11 17:05:05 -08:00
sfc-gh-tclinkenbeard
5a0502cbf4 Improve SimExternalConnection::read performance 2021-01-31 16:08:03 -08:00
sfc-gh-tclinkenbeard
27314b111c Fix Windows build issues 2021-01-26 13:41:37 -08:00
sfc-gh-tclinkenbeard
88cc2f752a Define BOOST_DATE_TIME_NO_LIB in SimExternalConnection.actor.cpp 2021-01-25 16:23:36 -08:00
sfc-gh-tclinkenbeard
191f215b9d Remove chrono dependency 2021-01-13 21:54:22 -08:00
sfc-gh-tclinkenbeard
913401aaee Move SendBufferIterator out of network.h
This class is only needed for implementation in Net2.actor.cpp and
SimExternalConnection.actor.cpp, so this class should not be included
everywhere network.h is included
2020-12-26 16:30:00 -04:00
sfc-gh-tclinkenbeard
0b45c969b9 Remove invalid assertion from SimExternalConnection::read 2020-12-24 21:20:04 -04:00
sfc-gh-tclinkenbeard
a7202a5b42 Use connectExernal in INetworkConnections::connect 2020-12-24 21:20:04 -04:00
sfc-gh-tclinkenbeard
1dfa2acb93 Reduce sleep in SimExternalConnection::write 2020-12-24 21:20:04 -04:00
sfc-gh-tclinkenbeard
d9b5309f4f Add random delays to SimExternalConnection 2020-12-24 21:20:04 -04:00
sfc-gh-tclinkenbeard
917da45c3f Miscellaneous improvements to SimExternalConnection unit test 2020-12-24 21:20:04 -04:00
sfc-gh-tclinkenbeard
555c3d95fc Added fdbrpc/SimExternalClient unit test 2020-12-24 21:20:03 -04:00
sfc-gh-tclinkenbeard
94d7c17978 Implemented SimExternalConnection::onReadable 2020-12-24 21:20:03 -04:00
sfc-gh-tclinkenbeard
8cb029b777 Made SimExternalConnection reading and writing deterministic 2020-12-24 21:20:03 -04:00
sfc-gh-tclinkenbeard
16476ec9e1 Implemented SimExternalConnection::read 2020-12-24 21:20:03 -04:00
sfc-gh-tclinkenbeard
1e7ea8ece1 Implemented SimExternalConnection::write 2020-12-24 21:20:02 -04:00
sfc-gh-tclinkenbeard
87282eda47 Implemented SimExternalConnection::getPeerAddress 2020-12-24 21:20:02 -04:00
sfc-gh-tclinkenbeard
9f22ae7831 Implement SimExternalConnection::connect 2020-12-24 21:20:02 -04:00
sfc-gh-tclinkenbeard
fed1a03950 Added SimExternalConnection (most methods not implemented yet) 2020-12-24 21:20:02 -04:00