obex-client: doesn't allways closes socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Recently I've found that obex client doesn't allways close socket, I
was using obexd-0.29...
Even more sometimes it closes same socket twice using
g_io_channel_unref() and close()

When it comes to client/session.c:rfcomm_connect() with error,
session->sock is not set and socket is not closed on
session_shutdown()
Don't know why g_io_channel_unref() isn't called for that socket..

test-case:
./send-files xx:xx:xx:xx:xx xxx.xxx
ls /proc/`pgrep obexd-client`/fd | wc -l

then don't accept incoming connection on your phone, press no

When you press yes to receive file, see strace output obexd-client
closes socket twice...

vitja.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux