Skip to content

Deadlock: Blocked Socket.close() at High Speed #1

@samar1tan

Description

@samar1tan

When downloading a tiny file (e.g., 1 B) or many files in parallel, our client would stick into a deadlock probably because dataSocket.close() in Downloader.java, which is actually Socket.close() in Java, can't be completed and return. Other downloading tasks (threads) will wait forever. I tried to force the thread to wait for an extra 1 sec before closing the socket if it lasts less than 1 sec, but this solution doesn't work in parallel downloading and seems stupid.

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