Skip to content
Success

Changes

Summary

  1. server: Avoid lseek syscall on every packet write to pcap file (details)
Commit 6d8d94d0eda29b457f3fe528b5e8b9fe7d52a3dc by Pau Espin Pedrol
server: Avoid lseek syscall on every packet write to pcap file

Instead of requesting the current size to the OS, keep track of the
amount of bytes stored in conn->wr_offset, and check agains that value
when we want to write new data to the file.
This should remove quite a lot of oeverhead when lots of traffic is
being handled.

Change-Id: I437eaca982d65d0f06e7d24863875f85267f0e44
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_core.c