Skip to content

csocket - connect() needs to have a timeout mechanism (for TCP-connection drop) #10

@uhurden

Description

@uhurden

Hi cybergarage,

I have been using cyberlink in iOS project for a while, and I noticed in some networks I have issue with device discovery.
I narrowed down an issues and found that after parsing SSD-header, when ssdp listener thread is trying to retrieve a device description it just blocks on connect, in the case when TCP-connection gets dropped on RST.
So I think you should also has a timeout mechanism on connect().

(I resolved it by setting a socket to non-blocking mode, then using select() with timeout, and after select returns, setting the socket back to blocking mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions