Attention is currently required from: pespin, fixeria.
Hello Jenkins Builder, pespin, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-abis/+/30616
to look at the new patch set (#4).
Change subject: ipa: Add ipa_client_conn_open2 with connect timeout argument
......................................................................
ipa: Add ipa_client_conn_open2 with connect timeout argument
Related: SYS#6237
Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
---
M TODO-RELEASE
M include/osmocom/abis/ipa.h
M src/input/ipa.c
3 files changed, 43 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/16/30616/4
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
Gerrit-Change-Number: 30616
Gerrit-PatchSet: 4
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: pespin, fixeria.
daniel has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30617 )
Change subject: ipaccess: Add connect timeout in e1inp_line
......................................................................
Patch Set 4:
(1 comment)
File include/osmocom/abis/e1_input.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/30617/comment/81924433_814bc2d7
PS3, Line 231: int connect_timeout; /* secs or E1INP_USE_DEFAULT */
> no need for it to be an int, it can be an unsigned int (0 means disabled). […]
As far as I can see that doesn't work with the VTY configuration because there's no way to access the driver data?
ipaccess_line is allocated by the driver line_update() which in turn already tries to open/connect so it's not something you can just call.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30617
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I7379102d19c172bed2aa00377d92bc885f54b640
Gerrit-Change-Number: 30617
Gerrit-PatchSet: 4
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Dec 2022 13:52:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: fixeria, daniel.
daniel has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30616 )
Change subject: ipa: Add ipa_client_conn_open2 with connect timeout argument
......................................................................
Patch Set 3:
(1 comment)
File include/osmocom/abis/ipa.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/98cfb424_d64911e9
PS3, Line 73: struct osmo_timer_list timer;
I'm reusing this member which I haven't seen used anywhere, even outside libosmo-abis
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
Gerrit-Change-Number: 30616
Gerrit-PatchSet: 3
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Dec 2022 13:36:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: fixeria, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30616 )
Change subject: ipa: Add ipa_client_conn_open2 with connect timeout argument
......................................................................
Patch Set 3:
(2 comments)
File include/osmocom/abis/ipa.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/f6f6a7d0_185d2d35
PS3, Line 108: int ipa_client_conn_open2(struct ipa_client_conn *link, int connect_timeout);
unsigned int connect_timeout
File src/input/ipa.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/6eee0b64_ea82f987
PS2, Line 136: osmo_timer_del(&link->timer);
> That's also called in ipa_conn_client_close() which is called from ipa_connect_failure() […]
Ah I see, better add a comment innside the if block above, soemthing like "/* link->timer is deleted when closing the conn) */"
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
Gerrit-Change-Number: 30616
Gerrit-PatchSet: 3
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Dec 2022 13:31:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: fixeria, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30617 )
Change subject: ipaccess: Add connect timeout in e1inp_line
......................................................................
Patch Set 4:
(1 comment)
File include/osmocom/abis/e1_input.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/30617/comment/8436f61f_8ca62d2b
PS3, Line 231: int connect_timeout; /* secs or E1INP_USE_DEFAULT */
no need for it to be an int, it can be an unsigned int (0 means disabled).
BTW, this is quite ipaccess specific, so IMHO this should go into struct ipaccess_line (aka line->driver_data)
AFAIU this "connect-timeout" has no meaning in E1 lines.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30617
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I7379102d19c172bed2aa00377d92bc885f54b640
Gerrit-Change-Number: 30617
Gerrit-PatchSet: 4
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Dec 2022 13:28:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: pespin, fixeria.
daniel has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30616 )
Change subject: ipa: Add ipa_client_conn_open2 with connect timeout argument
......................................................................
Patch Set 3:
(5 comments)
File TODO-RELEASE:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/28f125ce_22d8f945
PS2, Line 10: libosmo-abis API change New function ipa_client_conn_open2
> better s/API change/new API/g, it helps me quickly understanding how to bump the libversion stuff.
Ack
File include/osmocom/abis/ipa.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/7f45fd8d_3f2cb563
PS2, Line 108: int ipa_client_conn_open2(struct ipa_client_conn *link, int timeout);
> connect_timeout?
Ack
File src/input/ipa.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/22fbfecf_8efba762
PS2, Line 41: osmo_timer_del(&link->timer);
Here
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/7d366c24_8c16f5c1
PS2, Line 136: osmo_timer_del(&link->timer);
> you should delete the timer before returning above, otherwise you leave it set if the socket returne […]
That's also called in ipa_conn_client_close() which is called from ipa_connect_failure()
This here is just the happy path deleting the timer on successful connect. Do you want me to add comments somewhere?
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/631aae25_7dce5149
PS2, Line 246: int ipa_client_conn_open2(struct ipa_client_conn *link, int timeout)
> connect_tmeout
Ack
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
Gerrit-Change-Number: 30616
Gerrit-PatchSet: 3
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Dec 2022 13:27:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin, fixeria.
Hello Jenkins Builder, pespin, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-abis/+/30616
to look at the new patch set (#3).
Change subject: ipa: Add ipa_client_conn_open2 with connect timeout argument
......................................................................
ipa: Add ipa_client_conn_open2 with connect timeout argument
Related: SYS#6237
Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
---
M TODO-RELEASE
M include/osmocom/abis/ipa.h
M src/input/ipa.c
3 files changed, 38 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/16/30616/3
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
Gerrit-Change-Number: 30616
Gerrit-PatchSet: 3
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: fixeria, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30616 )
Change subject: ipa: Add ipa_client_conn_open2 with connect timeout argument
......................................................................
Patch Set 2: Code-Review-1
(4 comments)
File TODO-RELEASE:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/eaee12b9_c649f521
PS2, Line 10: libosmo-abis API change New function ipa_client_conn_open2
better s/API change/new API/g, it helps me quickly understanding how to bump the libversion stuff.
File include/osmocom/abis/ipa.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/0fa3006e_ed0ccbbd
PS2, Line 108: int ipa_client_conn_open2(struct ipa_client_conn *link, int timeout);
connect_timeout?
File src/input/ipa.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/f177ff73_dd4c9cc1
PS2, Line 136: osmo_timer_del(&link->timer);
you should delete the timer before returning above, otherwise you leave it set if the socket returned an error before timeout.
https://gerrit.osmocom.org/c/libosmo-abis/+/30616/comment/9207107e_524632ea
PS2, Line 246: int ipa_client_conn_open2(struct ipa_client_conn *link, int timeout)
connect_tmeout
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
Gerrit-Change-Number: 30616
Gerrit-PatchSet: 2
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Dec 2022 13:19:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment