haskell-distributed / haskell-distributed/distributed-process

[NTTCP-2] Network.Transport.TCP may reject incoming connection request

Open
#437 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

network-transport-tcp
Dominant language
Haskell
Stars
751
Forks
99
Avg merge
45m
Merged PRs (30d)
2

Description

[Imported from JIRA. Reported by Edsko de Vries @edsko) as NTTCP-2 on 2012-09-24 11:35:00]
Suppose A and B are connected, but the connection breaks. When A realizes this immediately and sends a new (heavyweight) connection request to B, then it /might/ happen that B has not yet realized that the current connection has broken and will therefore reject the incoming request from A as invalid.

This is low priority because

  • the window of opportunity for the problem to occur is small, especially because in the case of a true network failure it will take some time before a new connection can be established
  • even if the problem does arise, A can simply try to connect again (A might have to that anyway, to find out if the network problem has been resolved).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Network.Transport.TCP implementation and tracing how incoming heavyweight connection requests are validated when an existing connection has broken. Reproduce the timing window if possible, then add coverage showing that a valid replacement request is accepted or that the connection state is handled consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
distributed-systems, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.