Closed Bug 1074120 Opened 10 years ago Closed 10 years ago

[Bluetooth] OPP file transfer maybe broken

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: tzimmermann, Unassigned)

References

Details

OPP transfer don't work any longer. I observed this on Flame-kk with v2.1, but master is probably also affected. STR

  - switch on and off BT once
  - switch on BT for a second time
  - observe error 'Accept failed: 5' in logcat

Expected:

  - no error, OPP works

Actual result 

  - OPP doesn't work

The error message is a result of bug 1063066, and I guess the OPP problem is as well.
We should first figure out, why the error message shows up and why the socket get's closed during initialization.

And we might also simply remove the |Proceed| from the socket's close code and let it stop silently.
See Also: → 1063066
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #1)
> We should first figure out, why the error message shows up and why the
> socket get's closed during initialization.

The error message shows since [1] closes the listening socket. When establishing outgoing connection, gecko closes the listening socket first and then creates another socket to connect to remote device.

[1] http://hg.mozilla.org/mozilla-central/file/9d66436af432/dom/bluetooth/bluedroid/BluetoothSocketHALInterface.cpp#l529
(In reply to Ben Tian [:btian] from comment #2)
> (In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #1)
> > We should first figure out, why the error message shows up and why the
> > socket get's closed during initialization.
> 
> The error message shows since [1] closes the listening socket. When
> establishing outgoing connection, gecko closes the listening socket first
> and then creates another socket to connect to remote device.
> 
> [1]
> http://hg.mozilla.org/mozilla-central/file/9d66436af432/dom/bluetooth/
> bluedroid/BluetoothSocketHALInterface.cpp#l529

OK, makes sense. I think we should somehow handle this case or don't call |Proceed|.
Hmm, I restarted the phone and did some more testing, but OPP seems to work now. Maybe this is was transient error because of something else... I suggest to keep this bug open for a few days and watch out for the problem.
Summary: [Bluetooth] OPP file transfer broken → [Bluetooth] OPP file transfer maybe broken
Thomas, shall we close this bug?
Flags: needinfo?(tzimmermann)
Sure. I haven't seen this bug any more, and no one else has reported a similar thing. Let's close it.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(tzimmermann)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.