Skip to content

Commit

Permalink
adding sockettimeout exception code to HttpClientCore
Browse files Browse the repository at this point in the history
  • Loading branch information
Devendra committed Oct 26, 2013
1 parent a9f7a45 commit c4f1beb
Show file tree
Hide file tree
Showing 29 changed files with 22 additions and 19 deletions.
Binary file modified android/Pubnub-Android-3.5.5.jar
Binary file not shown.
Binary file modified android/examples/PubnubExample/libs/Pubnub-Android-3.5.5.jar
Binary file not shown.
Binary file modified android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.5.jar
Binary file not shown.
Binary file modified blackberry/Pubnub-BlackBerry-3.5.5.jar
Binary file not shown.
Binary file modified codenameone/Pubnub-CodeNameOne-3.5.5.cn1lib
Binary file not shown.
Binary file modified j2me/Pubnub-MicroEdition-3.5.5.jar
Binary file not shown.
Binary file modified java/Pubnub-StandardEdition-3.5.5.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion java/doc/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
All Classes
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
All Classes
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/Callback.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:34 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:11 IST 2013 -->
<TITLE>
Callback
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/HttpUtil.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
HttpUtil
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/Pubnub.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
Pubnub
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/PubnubError.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
PubnubError
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/PubnubException.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
PubnubException
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/PubnubUtil.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
PubnubUtil
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/package-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
com.pubnub.api
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
com.pubnub.api
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/package-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:35 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
com.pubnub.api Class Hierarchy
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
Constant Field Values
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/deprecated-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
Deprecated List
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
API Help
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
Index
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Sun Oct 27 01:39:36 IST 2013-->
<!-- Generated by javadoc on Sun Oct 27 02:57:12 IST 2013-->
<TITLE>
Generated Documentation (Untitled)
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/overview-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
Class Hierarchy
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/serialized-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 01:39:36 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Sun Oct 27 02:57:12 IST 2013 -->
<TITLE>
Serialized Form
</TITLE>
Expand Down
Binary file modified java/jars/Pubnub-UnitTests-3.5.5.jar
Binary file not shown.
Binary file modified java/jars/PubnubDemoConsole.jar
Binary file not shown.
Binary file modified java/jars/PubnubExample.jar
Binary file not shown.
5 changes: 4 additions & 1 deletion java/src1/com/pubnub/api/HttpClientCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ public synchronized HttpResponse fetch(String url, Hashtable headers)
int rc = HttpURLConnection.HTTP_INTERNAL_ERROR;
try {
rc = connection.getResponseCode();
} catch (IOException e) {
} catch (SocketTimeoutException ste) {
throw ste;
}
catch (IOException e) {
throw new PubnubException(getErrorObject(PNERROBJ_HTTP_RC_ERROR, url + " : " + e.toString()));
}

Expand Down

0 comments on commit c4f1beb

Please sign in to comment.