()
| 202 | Callable<Integer> readTask = new Callable<Integer>() { |
| 203 | |
| 204 | public Integer call() throws Exception { |
| 205 | int ret; |
| 206 | try { |
| 207 | |
| 208 | ret = in.read(input_data); |
| 209 | } catch (SSLException e) { |
| 210 | |
| 211 | // System.err.println(String.format("SSLException: %s", e.getMessage())); |
| 212 | ret = -1; // should be finished |
| 213 | } catch (SocketException e) { |
| 214 | |
| 215 | // System.err.println(String.format("SocketException: %s", e.getMessage())); |
| 216 | ret = -1; // should be finished |
| 217 | } |
| 218 | return ret; |
| 219 | } |
| 220 | }; |
| 221 | |
| 222 | try { |