Skip to contentSkip to conversation

Increase default obex timeout: 10 sec to 500 sec

PATCH In review Purendra Singh 4 participants 6 messages Oct 20, 2023 – Oct 31, 2023 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

v2 cover Increase default obex timeout: 10 sec to 500 sec

Hello Maintainers,

This issue is observed when multiple profiles are active from multiple connected devices: A2DP + HID + OBex File transfer

File received status of some reference devices is delayed, that causes timeout and file transfer status error (Variation of timeout is between ~100 seconds to ~450 seconds).

We tested with Motorola Edge, Samsung M33, OnePlus 6T.

Experimentaly we increased the timeout and at 500 seconds no issue was observed.

Regards,
Purendra Singh

Purendra Singh (1):
gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

 gobex/gobex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/1 gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

This issue is observed when multiple profiles are active from multiple connected devices: A2DP + HID + OBex File transfer

File received status of some reference devices is delayed, that causes timeout and file transfer status error (Variation of timeout is between ~100 seconds to ~450 seconds).

We tested with Motorola Edge, Samsung M33, OnePlus 6T.

Experimentaly we increased the timeout and at 500 seconds no issue was observed.

---
 gobex/gobex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
gobex/gobex.c +1 -1
index e9b89cead..f0e1c2c83 100644
@@ -22,7 +22,7 @@
 #define G_OBEX_MINIMUM_MTU	255
 #define G_OBEX_MAXIMUM_MTU	65535
 
-#define G_OBEX_DEFAULT_TIMEOUT	10
+#define G_OBEX_DEFAULT_TIMEOUT	500
 #define G_OBEX_ABORT_TIMEOUT	5
 
 #define G_OBEX_OP_NONE		0xff
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH BlueZ v2 1/1] gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

Dear Purendra,

Thank you for sending version 2. (No space is necessary in the prefix before the colon.)

Am 20.10.23 um 11:37 schrieb Purendra Singh:

Quoted 10 lines

This issue is observed when multiple profiles are active from multiple connected devices: A2DP + HID + OBex File transfer

File received status of some reference devices is delayed, that causes timeout and file transfer status error (Variation of timeout is between ~100 seconds to ~450 seconds).

We tested with Motorola Edge, Samsung M33, OnePlus 6T.

Experimentaly we increased the timeout and at 500 seconds no issue was

Experimentally

Quoted 1 line

observed.

Oh, it’s really seconds. Isn’t greater than 8 minute timeout *not* very user friendly?

Quoted 9 lines
---
  gobex/gobex.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
gobex/gobex.c +0 -0
index e9b89cead..f0e1c2c83 100644

gobex/gobex.c line 28

Quoted 8 lines
gobex/gobex.c +1 -1
@@ -22,7 +22,7 @@
  #define G_OBEX_MINIMUM_MTU	255
  #define G_OBEX_MAXIMUM_MTU	65535
 
-#define G_OBEX_DEFAULT_TIMEOUT	10
+#define G_OBEX_DEFAULT_TIMEOUT	500
  #define G_OBEX_ABORT_TIMEOUT	5
 
  #define G_OBEX_OP_NONE		0xff

Kind regards,

Paul

#3 lore raw

Re: [PATCH BlueZ v2 1/1] gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

Hi,

Quoted 18 lines · Paul Menzel

Dear Purendra,

Thank you for sending version 2. (No space is necessary in the prefix before the colon.)

Am 20.10.23 um 11:37 schrieb Purendra Singh:

Quoted 9 lines

This issue is observed when multiple profiles are active from multiple connected devices: A2DP + HID + OBex File transfer

File received status of some reference devices is delayed, that causes timeout and file transfer status error (Variation of timeout is between ~100 seconds to ~450 seconds).

We tested with Motorola Edge, Samsung M33, OnePlus 6T.

Quoted 8 lines
Quoted 1 line

Experimentaly we increased the timeout and at 500 seconds no issue was

Experimentally

Quoted 1 line

observed.

Oh, it’s really seconds. Isn’t greater than 8 minute timeout *not* very user friendly?

Yeah, something like that would probably cause the user to assume the operation didn't work.

Quoted 22 lines
Quoted 9 lines
---
  gobex/gobex.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
gobex/gobex.c +0 -0
index e9b89cead..f0e1c2c83 100644

gobex/gobex.c line 28

Quoted 8 lines
gobex/gobex.c +1 -1
@@ -22,7 +22,7 @@
  #define G_OBEX_MINIMUM_MTU  255
  #define G_OBEX_MAXIMUM_MTU  65535
 
-#define G_OBEX_DEFAULT_TIMEOUT       10
+#define G_OBEX_DEFAULT_TIMEOUT       500
  #define G_OBEX_ABORT_TIMEOUT        5
 
  #define G_OBEX_OP_NONE              0xff

Kind regards,

Paul

Signature · 1 line
Luiz Augusto von Dentz
#4 lore raw

RE: [EXT] Re: [PATCH BlueZ v2 1/1] gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

Hello Luiz and Paul,

Quoted 42 lines

-----Original Message-----
From: Luiz Augusto von Dentz <[email protected]>
Sent: Friday, October 20, 2023 11:19 PM
To: Paul Menzel <[email protected]>
Cc: Purendra Singh <[email protected]>; linux- [email protected]; Devyani Godbole <[email protected]>; Nitin Jadhav <[email protected]>
Subject: [EXT] Re: [PATCH BlueZ v2 1/1] gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Hi,

Quoted 23 lines · Paul Menzel

Dear Purendra,

Thank you for sending version 2. (No space is necessary in the prefix before the colon.)

Am 20.10.23 um 11:37 schrieb Purendra Singh:

Quoted 11 lines

This issue is observed when multiple profiles are active from multiple connected devices: A2DP + HID + OBex File transfer

File received status of some reference devices is delayed, that causes timeout and file transfer status error (Variation of timeout is between ~100 seconds to ~450 seconds).

We tested with Motorola Edge, Samsung M33, OnePlus 6T.

Experimentaly we increased the timeout and at 500 seconds no issue was

Experimentally

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

observed.

Oh, it’s really seconds. Isn’t greater than 8 minute timeout *not* very user friendly?

Yeah, something like that would probably cause the user to assume the operation didn't work.

This is the maximum timeout we have set based on experimenting different reference devices mentioned in earlier comment. This will only come into picture if the reference devices slow in responding the file received status.

Quoted 22 lines
Quoted 22 lines
Quoted 10 lines
---
  gobex/gobex.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
gobex/gobex.c index renamed from gobex/gobex.c +0 -0

e9b89cead..f0e1c2c83 100644

gobex/gobex.c line 28

Quoted 8 lines
gobex/gobex.c +1 -1
@@ -22,7 +22,7 @@
  #define G_OBEX_MINIMUM_MTU  255
  #define G_OBEX_MAXIMUM_MTU  65535
 
-#define G_OBEX_DEFAULT_TIMEOUT       10
+#define G_OBEX_DEFAULT_TIMEOUT       500
  #define G_OBEX_ABORT_TIMEOUT        5
 
  #define G_OBEX_OP_NONE              0xff

Kind regards,

Quoted 6 lines
Quoted 1 line

Paul

--
Luiz Augusto von Dentz

Thanks
Purendra

#5 lore raw
In reply to Purendra Singh

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=795037

---Test result---

Test Summary:

CheckPatch                    PASS      0.52 seconds
GitLint                       FAIL      0.59 seconds
BuildEll                      PASS      28.17 seconds
BluezMake                     PASS      857.22 seconds
MakeCheck                     PASS      12.30 seconds
MakeDistcheck                 PASS      173.62 seconds
CheckValgrind                 PASS      270.50 seconds
CheckSmatch                   PASS      359.55 seconds
bluezmakeextell               PASS      116.60 seconds
IncrementalBuild              PASS      725.43 seconds
ScanBuild                     PASS      1075.10 seconds

Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[BlueZ,v2,1/1] gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec

WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
1: T1 Title exceeds max length (83>80): "[BlueZ,v2,1/1] gobex/gobex.c : Increase default obex timeout from 10 sec to 500 sec"

---
Regards,
Linux Bluetooth