При использовании библиотеки Nethereum C # в стеке TCP имеется много CLOSE_WAIT. - PullRequest
0 голосов
/ 09 июля 2019

Когда я использую методы Nethereum (GetBlockWithTransactionsByNumber, GetBlockWithTransactionsByNumber и т. Д.) В цикле, в стеке TCP накапливается много CLOSE_WAIT.Как я могу решить эту проблему?

Пример моего кода:

Web3 etheriumService = new Web3(config.Address);
var lastBlockHashById = await EtheriumService.Eth.Blocks.GetBlockWithTransactionsByNumber.SendRequestAsync(new BlockParameter(ulong.Parse(savedBlockId)));
var dbBlock = await this.EtheriumService.Eth.Blocks.GetBlockWithTransactionsByNumber.SendRequestAsync(new BlockParameter(0));
//and etc

Вот экран: enter image description here

...