Bug 29967 - p2pv2 fails when endpoints aren't updated yet
Summary: p2pv2 fails when endpoints aren't updated yet
Status: RESOLVED FIXED
Alias: None
Product: papyon
Classification: Unclassified
Component: general (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: papyon-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
: 30163 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-02 02:28 UTC by Riccardo (c10ud)
Modified: 2010-09-13 08:35 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Riccardo (c10ud) 2010-09-02 02:28:59 UTC
display-picture-changed signal is emitted with NLNs, but soon after login we don't have endpoint data yet (arrives with UBXs), so if we start transfering the dp, peer_guid is None and the transfer fails resulting in a nice kaboom.

a possible solution is emitting that signal also when an UBX is received, and make the p2p session fail when version is 2 and peer_guid is None.

emitting the signal ONLY when an UBX is received is not a viable solution since the servers send only NLNs when an user changes his/her/its picture.
Comment 1 Youness Alaoui 2010-09-02 14:24:53 UTC
How does it work with WLM ? wouldn't it take the GUIDs from the JOI on the SB? or just send without the GUID and then use the GUID it receives in the response?
also, how could it be version 2 and peer_guid is None? what is the deciding factor? I thought that it should be :
if peer_guid is None:
   version = 1
else:
   version = 2

am I wrong ?
Comment 2 Riccardo (c10ud) 2010-09-02 14:52:43 UTC
(In reply to comment #1)
> How does it work with WLM ? wouldn't it take the GUIDs from the JOI on the SB?
> or just send without the GUID and then use the GUID it receives in the
> response?
> also, how could it be version 2 and peer_guid is None? what is the deciding
> factor? I thought that it should be :
> if peer_guid is None:
>    version = 1
> else:
>    version = 2
> 
> am I wrong ?

yesterday i had a brief look at the code with lfrb, and he said he thinks the endpoint list isn't ready yet, so i guess papyon is updating this list with UBXs (i didn't have time to check the code) and this bug is sort of a race condition where this list isn't updated yet and the p2p transfer is started (because i am starting the p2p transfer as soon as i receive the dp-changed signal that comes with NLNs).
Comment 3 Louis-Francis Ratté-Boulianne 2010-09-13 08:34:22 UTC
*** Bug 30163 has been marked as a duplicate of this bug. ***
Comment 4 Louis-Francis Ratté-Boulianne 2010-09-13 08:35:54 UTC
Fixed in papyon 0.5.1


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.