SendAndWait does not work anymore after v5 update
See original GitHub issueOops… 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:
- Created 10 months ago
- Comments:13 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
And it works! Thanks a bunch (: