The DefaultResourceManager was misbehaving for our use case.
Removing it, we no longer get neither “connections per ip limit exceeded” errors not ECONNRESET from peers!!!
Is the concern about running with NullResourceManager also apply to PrivateNetwork?
What is the advised alternative?
2.1 Is it possible to configure the DefaultResourceManager? Any documentation and example how to do that?
2.2 SHould I implement my own ResourceManager? Any documentation and example how to do that? Any skeleton I can use?
Yes, you can configure the rcmgr very precisely, although the details have changed since I worked on it.
You can also write your own implementation as well, but this may be more involved.
I dont advocate the use of pnet in general, as the protocol has a very weak security posture; if the key leaks you have to tear down the network basically.