Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9086947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:36:14+00:00 2026-06-16T21:36:14+00:00

I have written a TCP server using dnode . Basically, everything works fine. Now

  • 0

I have written a TCP server using dnode. Basically, everything works fine.

Now I have also created some unit tests, and one of them fails with ECONNREFUSED.

What’s strange about this is that

  • the code being tested works great when run outside the unit test, inside the application,
  • the code being tested works if I comment out the test before the failing test.

So obviously there seems to be an interdependency between two tests. Both work alone, but not together with each other.

The problem is that I get a quite useless error message:

Error: connect ECONNREFUSED
    at errnoException (net.js:768:11)
    at Object.afterConnect [as oncomplete] (net.js:759:19)

It’s nice to see that it’s an ECONNREFUSED error, but how do I figure out what is causing the issue?

As there are lots of callbacks who incorporate anonymous functions it is not that easy to figure out which line causes the issues :-(.

Any ideas / hints?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:36:15+00:00Added an answer on June 16, 2026 at 9:36 pm

    I solved it by myself, see the comments above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a TCP server implementation using which I created an application which
I have written a Python TCP/IP server for internal use, using win32serviceutil/py2exe to create
I have written a TCP server using the Socket class's asynchronous/IOCP methods, BeginSend()/BeginRead()/etc. I
I have written a secure TCP server in .NET. This was basically as simple
I have a TCP server app that is written in C#. I accept TCP
I have a client/server program in TCP written in C, and I would like
I have written this code in JavaScript and works perfectly fine when I include
Okay - I'm beaten. I have a (PHP-CLI) server written using PHP's socket_* functions.
I have a socket server, written in C++ using boost::asio, and I'm sending data
I have a chat server in C/Linux using TCP sockets. When using libev I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.