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.

Question: Get output from queueAndFlush

See original GitHub issue

Hello,

I am wondering if there is anyway to send a request to the server with the below, and get the result output back. Example:

var result = Packet.builder().putByte(2).putString(message).queueAndFlush(client);

Any hint appreciated. Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bytecod3rcommented, Sep 2, 2020

Updating the Client.java to latest version fixed the issue. I was struggling with it for days!! Thanks @jhg023 😃 I close this then.

1reaction
jhg023commented, Sep 2, 2020

@bytecod3r Ideally another issue should be opened, but I’m fine with answering more questions here.

Both I and many others use SimpleNet in a production environment, where some of us are even sending more than 500 KB of data every 100ms.

A few days ago, I fixed an issue where chunked packets were not being received correctly, and deployed version 1.6.6 of SimpleNet. Is this the version that you’re testing with?

If so, this could indicate that a bug is present in either your code or in SimpleNet.

Assuming you’ve tested your code with the latest version of SimpleNet, are you able to create a repository with the affected code so I can take a look to see if I can spot anything wrong?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Optimize writeAndFlush for lots of small messages (do smart ...
This code is very ineffective when size of response is small, and number of request/responses are huge. Because this code seems to issue ......
Read more >
Is it possible to lose messages using MSMQ MessageQueue ...
I am will to be that changing currentMessage = q.Peek(new TimeSpan(0,0,30)); to currentMessage = q.Receive(); will fix your problem. I've been ...
Read more >
Lettuce Reference Guide
The output is just two values. The GET to the absent key Mark does not emit a value. The reactive API provides operators...
Read more >
Java Tricky Output Questions - GeeksforGeeks
Java Tricky Output Questions · Question 1: What will be the Output of the below code: · Answer: b) Error · Question 2:...
Read more >
Output Questions in Java - based on Loops | Computer
OUTPUT QUESTIONS PDF : https://drive.google.com/file/d/1tB_3XcPq3HiPOvPR63XbMox1rjwQbII6/view?usp=sharingJoin this channel to get access to ...
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