fix everything

This commit is contained in:
ayunami2000 2022-02-01 18:38:42 -05:00
parent fb2cbccb4a
commit 4d4adf128d
5 changed files with 16640 additions and 16604 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
<script type="text/javascript" src="music.js"></script>
<script type="text/javascript" src="classes.js?t=updateme8"></script>
<script type="text/javascript" src="classes.js?t=updateme9"></script>
<script type="text/javascript">
//window.eag_self_proxy=true;//set to true to set the default proxy to the current url
//window.eag_proxy_list="";//set to a string of comma-separated proxy ip:port combinations for a custom proxy list

View File

@ -66,6 +66,7 @@ public class WebsocketNetworkManager implements INetworkManager {
http.setFixedLengthStreamingMode(out.length);
http.setRequestProperty("Content-Type","application/json; charset=UTF-8");
http.setConnectTimeout(5000);
http.setReadTimeout(5000);
http.connect();
http.getOutputStream().write(out);
Reader in = new BufferedReader(new InputStreamReader(http.getInputStream(), "UTF-8"));

View File

@ -215,6 +215,7 @@ public class GuiScreenEditProfile extends GuiScreen {
URLConnection con = url.openConnection();
HttpURLConnection http = (HttpURLConnection) con;
http.setConnectTimeout(5000);
http.setReadTimeout(5000);
http.connect();
if(http.getResponseCode()!=HttpURLConnection.HTTP_NOT_FOUND){
http.disconnect();

View File

@ -58,6 +58,7 @@ public class WebsocketNetworkManager implements INetworkManager {
http.setFixedLengthStreamingMode(out.length);
http.setRequestProperty("Content-Type","application/json; charset=UTF-8");
http.setConnectTimeout(5000);
http.setReadTimeout(5000);
http.connect();
http.getOutputStream().write(out);
Reader in = new BufferedReader(new InputStreamReader(http.getInputStream(), "UTF-8"));