Is it possible to prioritize a listening port?

Hi guys,

I have a question about prioritization of listening ports (listening address) when we create libp2p node.

Assuming that a node has two listening ports A and B, I want to receive packets from A before B.
That’s because the data from port A is urgent and one from B is not.
But now, the packet size of B’s data is so than A’s data so that port A have to compete against port B.
As a result, the processing for the data of A is delayed.
So, I wonder it is possible to prioritize a listening port.

I found the similar question in https://github.com/libp2p/go-libp2p-pubsub/issues/210
But it seems like a function that is not yet supported.

Please give me some idea about it.
Thanks

Not in libp2p itself but you can likely do this using tc (on linux).

Thank you!
I’ll try it!