Attention is currently required from: Hoernchen, ale-leehrtz, tnt.
1 comment:
File src/dahdi_trunkdev.c:
Patch Set #2, Line 362: pll->csv = fopen(path, "a");
this is a (buffered, but still fundamentally) blocking use of a file descriptor. If the storage or I/O subsystem is not fast enough (e.g. a lot of file/disk I/O on the system), the fprintf statements will block the entire osmo-e1d and make sure you loose/drop all kinds of data.
A proper implementation of writing to a file from a non-blocking event-loop driven process like osmo-e1d would have to use non-blocking writes only. you could use talloc_asprintf() to print your lines to a heap buffer, and then enqueue those buffers to the write queue of a file descriptor.
I think we *might* accept this patch as-is, but probably should make sure that the csv logging is treated as an experimental feature with known potential problems in both documentation and also a warning log line printed during start-up if e1i->dahdi_trunkdev.pll.log_file is actually configued by the user.
To view, visit change 44232. To unsubscribe, or for help writing mail filters, visit settings.