mafintosh / mafintosh/utp-native
Assertion error occasionally coming from the utp internal
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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