question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SendAndWait does not work anymore after v5 update

See original GitHub issue

Oops… Were all tests ran before publishing the update? 😝

Title says it all: SendAndWait does not work anymore after v5 update.

The exact same code below will work just fine on the latest v4, but will crash starting from v5 (System.TimeoutException: A response to a synchronous request was not received within the timeout window.)

In fact, SyncRequestReceived is never fired.

using System.Text;
using WatsonTcp;

using var server = new WatsonTcpServer("0.0.0.0", 1337);
using var client = new WatsonTcpClient("127.0.0.1", 1337);

server.Callbacks.SyncRequestReceived += request =>
{
    Console.WriteLine("server received request: " + Encoding.UTF8.GetString(request.Data));
    
    return new SyncResponse(request, "hello back!");
};

server.Events.MessageReceived += (_, _) => { };
client.Events.MessageReceived += (_, _) => { };

server.Start();
client.Connect();

var response = client.SendAndWait(1000, "hello!");

Console.WriteLine("client received response: " + Encoding.UTF8.GetString(response.Data));
Console.ReadKey(true);

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jchristncommented, Nov 23, 2022

Excellent! Great to hear! Thanks for all of your help identifying these issues and remediating them. Let’s move back to the state machine discussion.

1reaction
Laiteuxcommented, Nov 23, 2022

And it works! Thanks a bunch (:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Saga Configuration and Run Problem.
After that nothing happens anymore. Yes the sendAndWait that throws an exception puzzles me too. I will check better that part of the...
Read more >
Understanding of Axon Event Sourcing - spring boot
Once this CommandHandler is finished executing, the aggregate object doesn't exist anymore. Now in my TestRunner class again, the Command ...
Read more >
Query Processing - Axon Reference Guide
The Query Gateway is a convenient interface towards the Query dispatching mechanism. While you are not required to use a Gateway to dispatch...
Read more >
webMethods Integration Server Built-In Services Reference
This guide describes features and functionality that may or may not be available with your licensed version of webMethods Integration Server ...
Read more >
Fax Not Working? Troubleshooting Tips for Common Issues
1. Check the connection. If you are having issues sending faxes despite dialing the correct fax number, the problem could be connectivity-related. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found