mafintosh / mafintosh/utp-native

Assertion error occasionally coming from the utp internal

Open
#39 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
101
Forks
36
PR merge metrics
No merged PRs in 30d

Description

I'm running some tests on utp-native, and I've noticed on some repeated invocations:

```
node: ../deps/libutp/utp_internal.cpp:3405: void utp_shutdown(UTPSocket*, int): Assertion `conn' failed.
```

If I wait a bit of time, and restart the tests, it works again.

Seems to happen when I try to create a connection and then fail the connection and have to shutdown.

It's weird that this error only occurs upon starting the program again. It appears like there is some state kept between program invocations.

Contributor guide

No contributing guide indexed for this repository

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 reproducing the repeated connection-failure and shutdown sequence described in the issue, then inspect deps/libutp/utp_internal.cpp around line 3405 and the utp-native test setup. The work is done when repeated invocations no longer trigger the conn assertion during shutdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript
Domain
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.