Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasynceagain.nim flaky: Address already in use #625

Open
timotheecour opened this issue Feb 26, 2021 · 0 comments
Open

tasynceagain.nim flaky: Address already in use #625

timotheecour opened this issue Feb 26, 2021 · 0 comments

Comments

@timotheecour
Copy link
Owner

the fix is to do something like

to avoid flaky Address already in use errors

CC: ci_testresults.nim
Hint:  [Link]
Hint: 56871 lines; 3.079s; 76.148MiB peakmem; Debug build; proj: /home/build/Nim/tools/ci_testresults.nim; out: /home/build/Nim/tools/ci_testresults [SuccessX]
Hint: /home/build/Nim/tools/ci_testresults  [Exec]
Category: async
Name: tests/async/tasynceagain.nim c
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 0
--------- Given  --------
exitcode: 1

Output:
tasynceagain.nim(67)     tasynceagain
asyncmacro.nim(262)      main
asyncmacro.nim(29)       mainNimAsyncContinue
tasynceagain.nim(35)     mainIter
asyncmacro.nim(262)      runServer
asyncmacro.nim(29)       runServerNimAsyncContinue
tasynceagain.nim(17)     runServerIter
asyncnet.nim(652)        bindAddr
oserr.nim(94)            raiseOSError
[[reraised from:
tasynceagain.nim(67)     tasynceagain
asyncdispatch.nim(1935)  waitFor
asyncdispatch.nim(1627)  poll
asyncdispatch.nim(1368)  runOnce
asyncdispatch.nim(208)   processPendingCallbacks
asyncfutures.nim(423)    asyncCheckCallback
]]
Error: unhandled exception: Address already in use
Async traceback:
  tasynceagain.nim(67) tasynceagain
  asyncmacro.nim(262)  main
  asyncmacro.nim(29)   mainNimAsyncContinue
    ## Resumes an async procedure
  tasynceagain.nim(35) mainIter
  asyncmacro.nim(262)  runServer
  asyncmacro.nim(29)   runServerNimAsyncContinue
    ## Resumes an async procedure
  tasynceagain.nim(17) runServerIter
  asyncnet.nim(652)    bindAddr
  oserr.nim(94)        raiseOSError
Exception message: Address already in use
Exception type: [OSError]

-------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant