Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.

Commit d3f4641

Browse files
committed
Merge branch 'release/jakarta' into build/jakarta/2020.330
2 parents f2f5c88 + ab4fb10 commit d3f4641

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Jakarta
22

3+
## Release 2020.330 patch2
4+
5+
* seedlink
6+
7+
* Fixed data continuation bug with seedlink sources,
8+
e.g. chain_plugin, slarchive, slinktool
9+
* Add `composed_station_id` global setup parameter which can be used by
10+
3rd-party plugins in their setup script to decide whether to composed
11+
station ids or just the station code.
12+
313
## Release 2020.330 patch1
414

515
* cmake

src/seedlink/apps/3rd-party/slarchive/src/slarchive.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ int main (int argc, char **argv) {
102102

103103
/* Allocate and initialize a new connection description */
104104
slconn = sl_newslcd();
105+
if ( slconn ) {
106+
// Change default from libslink >= 2.6
107+
slconn->lastpkttime = 0;
108+
}
105109

106110
/* Process given parameters (command line and parameter file) */
107111
if ( parameter_proc (argc, argv) < 0 ) {

src/seedlink/apps/3rd-party/slinktool/src/slinktool.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ main (int argc, char **argv)
106106

107107
/* Allocate and initialize a new connection description */
108108
slconn = sl_newslcd();
109+
if ( slconn ) {
110+
slconn->lastpkttime = 0;
111+
}
109112

110113
/* Process given parameters (command line and parameter file) */
111114
if ( parameter_proc (argc, argv) < 0 )

src/seedlink/apps/seedlink/config/seedlink.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ def updateConfig(self):
593593
self._set_default("connections_per_ip", "20", False)
594594
self._set_default("bytespersec", "0", False)
595595

596+
# This seedlink version expectes composed station ids: net.sta
597+
self._set("composed_station_id", "true", False)
598+
596599
## Expand the @Variables@
597600
if hasSystem:
598601
e = seiscomp3.System.Environment.Instance()

src/seedlink/apps/utils/load_timetable.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ int main(int argc, char **argv)
282282
slcd->netdly = 1;
283283
slcd->keepalive = 0;
284284
slcd->sladdr = address;
285+
slcd->lastpkttime = 0;
285286

286287
/* If no host is given for the SeedLink server, add 'localhost' */
287288
if(*slcd->sladdr == ':')

src/seedlink/plugins/chain_plugin/chain_plugin.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ StationGroup::StationGroup(const string &address, bool multi_init, bool batch_in
10281028
slcd->keepalive = keepalive;
10291029
slcd->netto = netto;
10301030
slcd->netdly = netdly;
1031+
slcd->lastpkttime = 0;
10311032
}
10321033

10331034
StationGroup::~StationGroup()

0 commit comments

Comments
 (0)