Skip to content

Conversation

@lorenzo9uerra
Copy link
Contributor

With the "create" event inotifywait gets triggered as soon as the file is created, which means that if a file is still being transfered for example with scp, inotifywait gets triggered and the file is being submitted to caronte, but the file is incomplete and shows an EOF error. With "close_write" inotifywait gets triggered only when the transfer is completed, so the pcap is fed correctly to caronte

As the inotifywait docs say:

close_write
              A watched file or a file within a watched directory was closed, after being opened in writable mode.  This does not necessarily imply the file was written to.

@eciavatta eciavatta changed the base branch from main to hotfix/1.21.2 June 30, 2022 06:44
@eciavatta eciavatta merged commit c242e5e into eciavatta:hotfix/1.21.2 Jun 30, 2022
@eciavatta
Copy link
Owner

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants