Fix domain lookup #4

Closed
opened 2025-07-21 18:59:30 +03:00 by YuruC3 · 2 comments
Owner

Some sample errors

Error: 'NoneType' object has no attribute 'country_short'
Error: unpack requires a buffer of 4 bytes
Error: unpack requires a buffer of 1 bytes

Some sample errors Error: 'NoneType' object has no attribute 'country_short' Error: unpack requires a buffer of 4 bytes Error: unpack requires a buffer of 1 bytes
Author
Owner

Also there are some strange results stored

Æ*)ïú$ÊFBpB ?
Ïw]U ª>>BŒNô¸Š0

etc etc

Also there are some strange results stored Æ*)ïú$ÊFBpB ? Ïw]U ª>>BŒNô¸Š0 etc etc
Author
Owner

It was caused by multiple threads trying to read IP2Locaiton.bin simultaneously.

The fix was to use SHARED_MEMORY. It loads the file to memory to avoid trash readings.
It is also less read/write intense on the disk

It was caused by multiple threads trying to read IP2Locaiton.bin simultaneously. The fix was to use SHARED_MEMORY. It loads the file to memory to avoid trash readings. It is also less read/write intense on the disk
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: YuruC3/OPNsense-NetFlow-export#4
No description provided.