Аноним | вход | зарегистрировать новую учетную запись | 2022-07-05 02:54 EEST |
главная | моя сводка | список вопросов | журнал изменений | план развития | документация | моя учетная запись |
Простой вид [ комментарии ] | [ расширенный вид ] [ история ] [ печать ] | ||||||
Номер | Категория | Серьезность | Воспроизводимость | Создан | Изменен | ||
0000490 | [obex-data-server] BIP | большая | всегда | 2010-10-22 10:20 | 2010-10-27 14:13 | ||
Инициатор | nami | Видимость | общая | ||||
Ответственный | skirsdeda | ||||||
Приоритет | обычный | Решение | решен | ||||
Состояние | отработан | Версия продукта | 0.4.5 | ||||
Суть | 0000490: A patch to fix bip image receive error | ||||||
Подробности |
When client send image use ods-bip-test.py , the server will show "PARSEERR" error: ------------------------------------------------- ##DEBUG: /org/openobex/serversession3 OBEX event: PROGRESS(0x0), PUT(0x2), (null)(0x0) io callback OBEX_HandleInput(): obex_transport_handle_input(): obex_transport_handle_input(): Data available on client socket obex_data_indication(): obex_transport_read(): Request to read max 32767 bytes obex_data_indication(): Got 8 bytes obex_data_indication(): Got 8 bytes msg len=8 obex_server(): obex_server(): STATE_REC obex_data_request(): len = 3 bytes obex_transport_write(): do_write(): sending 3 bytes ##DEBUG: /org/openobex/serversession3 OBEX event: PARSEERR(0x5), (null)(0x20), (null)(0x1) obex_object_delete(): free_headerq(): free_headerq(): free_headerq(): io callback server session closed closing connection OBEX_FreeInterfaces(): ---------------------------------------------------------- I found that this error is caused by send_image_handle function, it should response OBEX_RSP_CONTINUE but not OBEX_RSP_SUCCESS. So I make a patch to fix this bug. --- /home/nami/obex-data-server-0.4.5/src/ods-server-session.c 2009-10-21 22:10:19.000000000 +0800 +++ ./ods-server-session.c 2010-10-22 15:22:20.741507926 +0800 @@ -298,7 +298,7 @@ if (server_session->priv->require_imaging_thumbnails) OBEX_ObjectSetRsp (object, OBEX_RSP_PARTIAL_CONTENT, OBEX_RSP_PARTIAL_CONTENT); else - OBEX_ObjectSetRsp (object, OBEX_RSP_SUCCESS, OBEX_RSP_SUCCESS); + OBEX_ObjectSetRsp (object, OBEX_RSP_CONTINUE, OBEX_RSP_SUCCESS); } } I verified it ,the server can receive image correctly. |
||||||
Дополнительные сведения | |||||||
Tэги | Нет прикрепленных тэгов. | ||||||
Вложенные файлы |
![]() ![]() |
||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |