Skip to content

Network.Socket.close hangs #326

Description

@basvandijk

In yesodweb/wai#691 I wrote a simple program using warp that deadlocks on Network.Socket.close. Could this be a bug in network?

Activity

  1. self-assigned this
    on Jun 1, 2018
  2. afcady commented on Jun 19, 2018

    @afcady

    @basvandijk you must now interrupt accept before you call close. See #327 where I posted the relevant code.

  3. eborden commented on Jun 24, 2018

    @eborden
    Collaborator

    Closing in favor of #327

  4. basvandijk commented on Jun 24, 2018

    @basvandijk
    MemberAuthor

    I just build warp-close-test against network-HEAD and the test finished successfully. I see that in network-HEAD the withMVar in accept and the modifyMVar in close are no longer there. That very likely fixed the deadlock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions