This commit contains two features and one bug fix.
Features:
Support tokio backend for better performance in send / recv hybrid communication scenarios.
Improved packet split method utils::chunk_size. This method can divide the communication packet into multiple small packets of equal size as required, and the packet body is not less than the minimum limit.
Bug fix:
In our implementation, one p2p communication corresponds to multiple TCP links. When establishing the link, there was a false assumption that the order in which the server accepts is the same as the order in which the client initiates the connect. Because accept function is take a connection from the pool of tcp links, Instead of one-to-one correspondence with connection. Any way, I fixed this bug.
This commit contains two features and one bug fix.
Features:
utils::chunk_size
. This method can divide the communication packet into multiple small packets of equal size as required, and the packet body is not less than the minimum limit.Bug fix:
accept
function is take a connection from the pool of tcp links, Instead of one-to-one correspondence with connection. Any way, I fixed this bug.