Mantis Bugtracker

Простой вид комментарии ] расширенный вид ] история ] печать ]
Номер Категория Серьезность Воспроизводимость Создан Изменен
0000019 [obex-data-server] General блокада всегда 2007-11-24 03:36 2008-10-17 19:59
Инициатор skirsdeda Видимость общая  
Ответственный skirsdeda
Приоритет высокий Решение решен  
Состояние закрыт   Версия продукта 0.2
Суть 0000019: DBus timeout for CreateBluetoothSession
Подробности If session connecting takes longer time (e.g. devices aren't paired yet), CreateBluetoothSession function times out. To fix this, CreateBluetoothSession should return immediately. OdsSession object should be initialized with invalid fd first and only after socket is connected, it would be assigned to OdsSession object and CONNECTED signal would be emitted.
Дополнительные сведения
Tэги Нет прикрепленных тэгов.
Вложенные файлы

- Связи
блокирует 0000058закрытskirsdeda 0.4 tracker 

-  Комментарии
skirsdeda (администратор)
2008-01-22 01:10

To maintain Session independence from transport stuff, Session should have public fd property which would be initialized to -1 first. When assigned a valid value, Session would emit CONNECTED signal.
skirsdeda (администратор)
2008-01-28 19:10

Suggested API change for Manager:
string CreateBluetoothSession(string address, string pattern)
     Returns path of Session object instantly (Session is connected after this function returns. Either Connected signal is emitted (Session object) if connection was successful or SessionDisconnected signal is emitted (Manager object) if connecting failed.
void SessionConnected(object path)
      Signals when session is connected and usable (instead of SessionCreated signal, since sessions are now created even before attempting to connect).

void SessionDisconnected(object path, string error_name, string error_message)
      Signals when session is disconnected or fails to connect initially. error_name and error_message are used only for initial connection failure.
skirsdeda (администратор)
2008-02-02 19:42

Now I'm thinking that it would be better to introduce Timeout error, which would happen just before DBus timeout so that obex-data-server can do proper cleanup.
RobertRawlins (инициатор)
2008-03-11 20:10

That sounds like a good solution to me, at the moment I get the timeout thrown by dbus but like you say, this doesnt invoke any time of clean up. Iether that or catch the dbus connection and do your cleanup then rethrow your own? make sense?

heston_james (инициатор)
2008-05-14 10:22

This little bug should be fixed along with the fix for detecting rfcomm timeouts and refusales so we should be killing two birds with one stone when that fix comes along. Because we'll be returning the empty session object immediatly from CreateBluetoothSession() then dbus wont kick up a fuss waiting for a reply whilst we're connecting the RFCOMM sockets.

I'll be working on that fix today so we'll see how things progress, I'll start screaming and waving my arms in the air when I get stuck (which is quite likely).

heston_james (инициатор)
2008-07-07 15:12

Tadas, this bug is now effectivly resolved due to the changes made for bug 0000053.

- история
Дата изменения Пользователь Поле Изменение
2007-11-24 03:36 skirsdeda Новый вопрос
2007-11-24 03:47 skirsdeda Ответственный => skirsdeda
2007-11-24 03:47 skirsdeda Состояние новый => подтвержден
2007-12-11 17:46 skirsdeda Серьезность большая => блокада
2007-12-11 17:46 skirsdeda Состояние подтвержден => назначен
2007-12-11 17:46 skirsdeda version => 0.9
2008-01-18 15:29 hadess Отслеживать: hadess
2008-01-22 01:10 skirsdeda Комментарий добавлен: 0000038
2008-01-28 19:10 skirsdeda Комментарий добавлен: 0000063
2008-02-02 19:41 skirsdeda version 0.9 => 0.2
2008-02-02 19:42 skirsdeda Комментарий добавлен: 0000069
2008-03-11 20:10 RobertRawlins Комментарий добавлен: 0000158
2008-03-11 22:33 skirsdeda Связь добавлена блокирует 0000058
2008-03-17 20:11 RobertRawlins Отслеживать: RobertRawlins
2008-05-14 10:22 heston_james Комментарий добавлен: 0000244
2008-07-07 15:12 heston_james Комментарий добавлен: 0000354
2008-07-08 17:05 skirsdeda Состояние назначен => отработан
2008-07-08 17:05 skirsdeda Решение открыт => решен
2008-07-24 15:00 skirsdeda Целевая версия => 0.4
2008-10-17 19:59 skirsdeda Решен в версии => 0.4
2008-10-17 19:59 skirsdeda Состояние отработан => закрыт

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker