Attention is currently required from: neels.
laforge has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/osmo-upf/+/37759?usp=email )
Change subject: pfcp-tool: n-sessions [3/4]: add poll arg to pfcp_tool_mainloop()
......................................................................
Patch Set 3: Code-Review+1
(1 comment)
Patchset:
PS3:
luckily the main loop is never going to want to call poll() directly, so its fine to shadow that global symbol name..
--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/37759?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I20bb2803b28681face18ee665d8a1aad06d58091
Gerrit-Change-Number: 37759
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 03 Sep 2024 17:50:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Attention is currently required from: neels, pespin.
laforge has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/osmo-upf/+/37758?usp=email )
Change subject: pfcp-tool: n-sessions [2/4]: generalize function args
......................................................................
Patch Set 3: Code-Review+1
(1 comment)
File src/osmo-pfcp-tool/pfcp_tool.c:
https://gerrit.osmocom.org/c/osmo-upf/+/37758/comment/17fe2fac_68bb804f?usp… :
PS3, Line 182: LOGP(DLPFCP, LOGL_ERROR, "Failed to transmit PFCP: %s\n", strerror(-rc));
> since this program is used for load testing and may potentially switch to being multithread, it may […]
Acknowledged
--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/37758?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I112206049e704b7adad7072b1f7953f7ee4f18ca
Gerrit-Change-Number: 37758
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 03 Sep 2024 17:48:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Attention is currently required from: laforge.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38018?usp=email )
Change subject: HTTP_Adapter: Rename s/g_pars/g__pars
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> I'd go for g_http_pars, that way its clear and extensible, so the next component doesn't have to use […]
Fine with it, I'll do the change as requested.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38018?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia07cf8717593073a71632e247d7fe0775e66eb13
Gerrit-Change-Number: 38018
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Tue, 03 Sep 2024 17:44:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Attention is currently required from: pespin.
laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38018?usp=email )
Change subject: HTTP_Adapter: Rename s/g_pars/g__pars
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I'd go for g_http_pars, that way its clear and extensible, so the next component doesn't have to use g_____pars at some point (exaggerating)
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38018?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia07cf8717593073a71632e247d7fe0775e66eb13
Gerrit-Change-Number: 38018
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 03 Sep 2024 17:43:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38018?usp=email )
Change subject: HTTP_Adapter: Rename s/g_pars/g__pars
......................................................................
HTTP_Adapter: Rename s/g_pars/g__pars
The HTTP_Adapter component is a probable candidate to end up as part of
another component extending it, like the Prometheus_Checker coming up
soon.
Since the fields in HTTP_Adapter are available to subclass components,
that means they cannot use the usual "g_pars".
Rename the self-enclosed "g_pars" in HTTP_Adapter to let subclasses use
it.
Change-Id: Ia07cf8717593073a71632e247d7fe0775e66eb13
---
M library/HTTP_Adapter.ttcn
1 file changed, 7 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/18/38018/1
diff --git a/library/HTTP_Adapter.ttcn b/library/HTTP_Adapter.ttcn
index 97233e5..bba0216 100644
--- a/library/HTTP_Adapter.ttcn
+++ b/library/HTTP_Adapter.ttcn
@@ -19,7 +19,8 @@
type component http_CT {
port HTTPmsg_PT HTTP;
- var HTTP_Adapter_Params g_pars;
+ /* double underscore to have "g_pars" available on components extending this one: */
+ var HTTP_Adapter_Params g__pars;
};
type record HTTP_Adapter_Params {
@@ -30,7 +31,7 @@
function f_http_init(HTTP_Adapter_Params pars) runs on http_CT {
map(self:HTTP, system:HTTP);
- g_pars := pars;
+ g__pars := pars;
}
template (value) Connect ts_HTTP_Connect(template (value) charstring hostname,
@@ -187,7 +188,7 @@
/* In case the caller didn't specify a client_id, we will create a new connection. */
if (istemplatekind(client_id, "omit")) {
- HTTP.send(ts_HTTP_Connect(g_pars.http_host, g_pars.http_port, g_pars.use_ssl));
+ HTTP.send(ts_HTTP_Connect(g__pars.http_host, g__pars.http_port, g__pars.use_ssl));
T.start;
alt {
[] HTTP.receive(Connect_result:?) -> value rc;
@@ -207,16 +208,16 @@
if (not istemplatekind(body, "omit") and istemplatekind(binary_body, "omit")) {
/* HTTP message with ASCII content */
- HTTP.send(ts_HTTP_Req(url, method, body, host := g_pars.http_host & ":" & int2str(g_pars.http_port),
+ HTTP.send(ts_HTTP_Req(url, method, body, host := g__pars.http_host & ":" & int2str(g__pars.http_port),
custom_hdr := custom_hdr, client_id := use_client_id));
} else if (not istemplatekind(binary_body, "omit") and istemplatekind(body, "omit")) {
/* HTTP message with binary content */
HTTP.send(ts_HTTP_Req_Bin(url, method, binary_body,
- host := g_pars.http_host & ":" & int2str(g_pars.http_port),
+ host := g__pars.http_host & ":" & int2str(g__pars.http_port),
custom_hdr := custom_hdr, client_id := use_client_id));
} else if (istemplatekind(binary_body, "omit") and istemplatekind(body, "omit")) {
/* HTTP message without content (e.g. a GET request) */
- HTTP.send(ts_HTTP_Req(url, method, host := g_pars.http_host & ":" & int2str(g_pars.http_port),
+ HTTP.send(ts_HTTP_Req(url, method, host := g__pars.http_host & ":" & int2str(g__pars.http_port),
custom_hdr := custom_hdr, client_id := use_client_id));
} else {
setverdict(fail, "either binary_body or body must be used (a request can contain either ASCII data or binary data, not both!");
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38018?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia07cf8717593073a71632e247d7fe0775e66eb13
Gerrit-Change-Number: 38018
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>