Bug #281

FilePacketSniffer - usage of SimpleDateFormat must be thread safe

Added by Philipp Buluschek almost 4 years ago.

Status:New Start date:11/26/2014
Priority:Low Due date:
Assignee:- % Done:


Category:- Spent time: -
Target version:-
Has a patch:No Has license agreement signed:No


FilePacketSniffer uses a SimpleDateFormat to write dates to the output. SimpleDateFormat is not thread safe, so it must be synchronized externally if it is to be used from several threads.
In particular, incomingPacket(ZToolPacket) and outcomingPacket(ZToolPacket) both use the Fromat but are called from different threads.

Check for correct synchronization.

Also available in: Atom PDF