Skip to content
Success

Changes

Summary

  1. server: Avoid lseek syscall on every packet write to pcap file (details)
Commit bf4f0ae829500e18668c06010809ae22713a4ae5 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 modifiedsrc/osmo_server_core.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h