Skip to content

daemon: avoid excessive getsockname() syscalls

Vladimír Čunát requested to merge perf-getsockname-2 into master

Calling this on every incoming UDP request could cost us up to 5% time.

Implementation is not so nice because right now "session" = socket, and we share sockets = sessions for UDP.

In future we will clean this by refactoring session layer.

Edited by Petr Špaček

Merge request reports