Closed sirK84 closed 7 years ago
Thank you for reporting the issue in such a fine detail, it helped a lot.
The storage plugin is opened as soon as there is a connection which is not in a new
state (carries some valid IPFIX header). However, the handling of close message in SCTP expected that the connection has already initialized the storage plugin. I've just added a check for closing of connections in a new
state and it works for me.
Hi,
Could you help me with following case:
Problem description: Storage plugin is not closed properly if SCTP exporter disconnects without sending any ipfix data.
Ipfixcol version: 0.9.3 buildID: 520399
Test scenario
start ipfixcol with dummy storage plugin (implementation attached): $ ipfixcol -s -v3
establish new SCTP association e.g. with sctp_darn: $ sctp_darn -H 127.0.0.1 -h 127.0.0.1 -p 4739 -s sctp_darn ready to send... 127.0.0.1:0-127.0.0.1:4739> Recieved SCTP_COMM_UP New connection, peer addresses 127.0.0.1:4739 10.0.2.15:4739 192.168.99.101:4739 172.17.0.1:4739 127.0.0.1:0-127.0.0.1:4739>
close association with Ctrl + C
Expected result: Storage plugin is closed properly after exporter disconnects (or not initialized at all since there is no data sent)
Actual result: Storage plugin initializes after exporter is disconnected and could not be closed. To close plugin main application shutdown is required:
Attachments:
Kind Regards Krzysztof