network: Don't loop in hot paths.

The actual problem needs to be addressed differently.

Change-Id: I9225a22bf7b538397c3ad3c4eb1bab6db30afbe7
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>