-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Rest api cannot return complete data #2923
Comments
In China, all Internet Service Providers must enforce compliance checks, and licenses are required for all HTTP services. Your connection will be aborted during transmission if they are detected before completion. It is said that such checks were deployed at the IDC level, so probably no software-level solution. |
But even the two devices under the local router still have this problem |
Here is the plugin code where I'm having trouble
|
Reproduced. It seems that the library is not handling Line 354 in 510d696
|
Reproduction steps (if applicable)?
When returning data through
RestCommand
, the connection may be interrupted while transferring data, especially when the size of the transferred data is slightly larger.This problem cannot be reproduced when testing locally, it only occurs when testing between multiple devices, such as the server and the player's computer.
Any stack traces or error messages (if known)?
An exception occurs when I use java to request api
java.net.SocketException: Connection reset
And prompt
net::ERR_CONTENT_LENGTH_MISMATCH
in Chrome. The returned data is incomplete, only the first half of the dataI have tried to use the HttpListener in HttpServer.dll to create a server for testing, and found that the problem occurs when the returned data is too long, but the server created with System.Net.HttpListener returns the same data normally.
The text was updated successfully, but these errors were encountered: