/
tcpgate.ini
372 lines (311 loc) · 8.34 KB
/
tcpgate.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
#
# Debug settings for each binary
#
[@debug]
testcl= ndrx=3 ubf=1 tp=5 file=${NDRX_APPHOME}/log/testcl.log
testsv= ndrx=3 ubf=1 tp=3 file=
tcpgatesv= ndrx=3 tp=3 threaded=l
[@tcpgate]
gencore=0
[@tcpgate/pers/async/active]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-async-active.log
[@tcpgate/pers/async/passive]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-async-passive.log
[@tcpgate/pers/async/active/idlerst]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-async-active-idlerst.log
[@tcpgate/pers/async/passive/idlerst]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-async-passive-idlerst.log
# Active side doing idle
[@tcpgate/pers/async/active/idlerstact]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-async-active-idlerstact.log
# Active side doing idle
[@tcpgate/pers/async/passive/idlerstact]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-async-passive-idlerstact.log
[@tcpgate/pers/asyncsync/active]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-asyncsync-active.log
[@tcpgate/pers/asyncsync/passive]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-asyncsync-passive.log
[@tcpgate/pers/sync/active]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-pers-sync-active.log
[@tcpgate/pers/sync/passive]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-pers-sync-passive.log
[@tcpgate/nonpers/active]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-nonpers-active.log
[@tcpgate/nonpers/pasive]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-nonpers-passive.log
[@tcpgate/pers/sync_offset_incl/active]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-pers-sync-offset_incl-active.log
[@tcpgate/pers/sync_offset_incl/passive]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-pers-sync-offset_incl-passive.log
[@tcpgate/pers/sync_offset/active]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-pers-sync-offset-active.log
[@tcpgate/pers/sync_offset/passive]
debug= iflags=detailed threaded=l file=${NDRX_APPHOME}/log/tcpgatesv-pers-sync-offset-passive.log
[@tcpgate/pers/sequence/active]
debug= iflags=detailed file=${NDRX_APPHOME}/log/tcpgatesv-sequence-active.log
[@tcpgate/pers/sequence/passive]
debug= iflags=detailed file=${NDRX_APPHOME}/log/tcpgatesv-sequence-passive.log
[@tcpgate/pers/tls/active]
debug= iflags=detailed file=${NDRX_APPHOME}/log/tcpgatesv-tls-active.log
[@tcpgate/pers/tls/passive]
debug= iflags=detailed file=${NDRX_APPHOME}/log/tcpgatesv-tls-passive.log
################################################################################
# Normal async channel
################################################################################
# Common settings
[@tcpgate/pers/async]
periodic_zero_msg=5
framing=llll
#this will cut first 4x chars from data string and change the data it self...
corr_svc=CORSVC
status_svc=CONSTAT
req_reply_timeout=10
framing_half_swap=1
# max time for no incoming data
in_idle_max=20
# check every 5x sedonds, the master driver of this is
in_idle_check=5
[@tcpgate/pers/async/active]
gateway=TCP_P_ASYNC_A
incoming_svc=TESTSVC
type=A
periodic_zero_msg=5
ip=127.0.0.1
port=9999
max_connections=10
[@tcpgate/pers/async/passive]
gateway=TCP_P_ASYNC_P
incoming_svc=TESTSVC
type=P
periodic_zero_msg=5
ip=0.0.0.0
port=9999
max_connections=10
#
# Idle connection reset tests
#
[@tcpgate/pers/async/active/idlerst]
# Nothing here.., use parent config
gateway=TCP_P_ASYNC_AR
port=9988
max_connections=2
[@tcpgate/pers/async/passive/idlerst]
#
# We will not send zero messages
#
gateway=TCP_P_ASYNC_PR
periodic_zero_msg=0
port=9988
max_connections=2
in_idle_max=0
in_idle_check=0
#
# Active side does not send zero messages
#
[@tcpgate/pers/async/active/idlerstact]
# Nothing here.., use parent config
gateway=TCP_P_ASYNC_ARA
port=9987
max_connections=2
periodic_zero_msg=0
in_idle_max=0
in_idle_check=0
[@tcpgate/pers/async/passive/idlerstact]
#
# But passive do send
#
gateway=TCP_P_ASYNC_PRA
port=9987
max_connections=2
#
# Testing of incoming_svc_sync = true
#
[@tcpgate/pers/asyncsync]
incoming_svc=TESTSVC
incoming_svc_sync=yes
corr_svc=CORSVC
[@tcpgate/pers/asyncsync/active]
gateway=TCP_P_ASYSY_A
type=A
periodic_zero_msg=5
ip=127.0.0.1
port=9998
max_connections=1
[@tcpgate/pers/asyncsync/passive]
gateway=TCP_P_ASYSY_P
type=P
periodic_zero_msg=5
ip=0.0.0.0
port=9998
max_connections=1
################################################################################
# Async, correlated by connection id
################################################################################
# Common settings
[@tcpgate/pers/sync]
periodic_zero_msg=5
# Delimiter based (stx + etx)
framing=D
# STX
delim_start=0x02
# ETX
delim_stop=0x03
req_reply_timeout=2
status_svc=CONSTAT
status_refresh=1
[@tcpgate/pers/sync/active]
gateway=TCP_P_SYNC_A
incoming_svc=TESTSVC
type=A
periodic_zero_msg=5
ip=127.0.0.1
port=7777
max_connections=2
req_reply=1
[@tcpgate/pers/sync/passive]
gateway=TCP_P_SYNC_P
incoming_svc=TESTSVC
type=P
periodic_zero_msg=5
ip=0.0.0.0
port=7777
max_connections=2
req_reply=2
################################################################################
# Request/reply TCP1 will send the request to tcp2 (open connection
# send the message, wait for reply, close connection)
################################################################################
# Common settings
[@tcpgate/nonpers]
framing=bbbbbb
req_reply_timeout=40
status_svc=CONSTAT
[@tcpgate/nonpers/active]
gateway=TCP_NP_A
incoming_svc=TESTSVC
type=A
ip=127.0.0.1
port=19999
max_connections=10
req_reply=3
[@tcpgate/nonpers/pasive]
gateway=TCP_NP_P
incoming_svc=TESTSVC
type=P
ip=0.0.0.0
port=19999
max_connections=10
req_reply=4
################################################################################
# Sync, by connection id, with offsets
################################################################################
# Common settings
[@tcpgate/pers/sync_offset_incl]
framing=LLLL
framing_half_swap=1
framing_offset=4
req_reply_timeout=2
status_svc=CONSTAT
status_refresh=1
port=7778
incoming_svc=TESTOFFSET
# For load balance, while tpcgate puts connection back to RR list
# we might make a next call and we see that connection is busy...
max_connections=1
periodic_zero_msg=5
[@tcpgate/pers/sync_offset_incl/active]
gateway=TCP_P_SYNCOFFI_A
type=A
req_reply=1
ip=127.0.0.1
req_reply=1
[@tcpgate/pers/sync_offset_incl/passive]
gateway=TCP_P_SYNCOFFI_P
type=P
ip=0.0.0.0
req_reply=2
# Common settings
[@tcpgate/pers/sync_offset]
periodic_zero_msg=5
framing=llll
framing_offset=4
req_reply_timeout=2
status_svc=CONSTAT
status_refresh=1
port=7774
incoming_svc=TESTOFFSET
periodic_zero_msg=5
max_connections=1
[@tcpgate/pers/sync_offset/active]
gateway=TCP_P_SYNCOFF_A
type=A
req_reply=1
ip=127.0.0.1
req_reply=1
[@tcpgate/pers/sync_offset/passive]
gateway=TCP_P_SYNCOFF_P
type=P
ip=0.0.0.0
req_reply=2
# Message sequencing
[@tcpgate/pers/sequence]
periodic_zero_msg=5
framing=llll
req_reply_timeout=2
framing_half_swap=1
# max time for no incoming data
in_idle_max=20
# check every 5x sedonds, the master driver of this is
in_idle_check=5
incoming_svc=SEQTEST
port=9977
[@tcpgate/pers/sequence/active]
gateway=TCP_P_SEQ_A
type=A
periodic_zero_msg=5
ip=127.0.0.1
max_connections=2
seqout=1
[@tcpgate/pers/sequence/passive]
gateway=TCP_P_SEQ_P
type=P
periodic_zero_msg=5
ip=0.0.0.0
port=9977
max_connections=5
seqin=1
# Common settings, async mode
[@tcpgate/pers/tls]
periodic_zero_msg=5
framing=llll
#this will cut first 4x chars from data string and change the data it self...
status_svc=CONSTAT
req_reply_timeout=10
framing_half_swap=1
# max time for no incoming data
in_idle_max=20
port=9997
# check every 5x sedonds, the master driver of this is
in_idle_check=5
tls_enable=1
tls_ca_roots=${NDRX_APPHOME}/conf/ca.crt
tls_min_version=TLS11
[@tcpgate/pers/tls/active]
gateway=TCP_P_TLS_A
incoming_svc=TESTSVC
type=A
ip=${TEST_HOSTNAME}
max_connections=2
tls_cert_file=${NDRX_APPHOME}/conf/client.crt
tls_key_file=${NDRX_APPHOME}/conf/client.key
req_reply=1
[@tcpgate/pers/tls/passive]
gateway=TCP_P_TLS_P
incoming_svc=TESTSVC
type=P
ip=0.0.0.0
max_connections=10
tls_cert_file=${NDRX_APPHOME}/conf/server.crt
tls_key_file=${NDRX_APPHOME}/conf/server.key
tls_client_auth=1
req_reply=2