Skip to content

Commit 3cb9d2e

Browse files
author
weishu.tws
committed
[VXP]: adjust timeout for http request.
1 parent 564d9f7 commit 3cb9d2e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VirtualApp/app/src/main/java/io/virtualapp/settings/RecommendPluginActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ private void loadRecommend() {
7777
URL url = new URL(ADDRESS);
7878
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
7979
connection.setRequestMethod("GET");
80-
connection.setConnectTimeout(8000);
81-
connection.setReadTimeout(8000);
80+
connection.setConnectTimeout(30000);
81+
connection.setReadTimeout(30000);
8282
if(connection.getResponseCode() == 200){
8383
BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), "utf-8"));
8484
String line;

VirtualApp/app/src/main/res/layout/activity_list.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
android:gravity="center"
1818
android:textSize="18sp"
1919
android:textColor="#000000"
20+
android:visibility="gone"
2021
android:text="No Data"
2122
android:layout_width="match_parent"
2223
android:layout_height="match_parent"/>

0 commit comments

Comments
 (0)