3636 * <pre><code>
3737 * public onCreate(Bundle state) {
3838 * super.onCreate(state);
39- * <p/>
39+ *
4040 * HttpProxyCacheServer proxy = getProxy();
4141 * String proxyUrl = proxy.getProxyUrl(VIDEO_URL);
4242 * videoView.setVideoPath(proxyUrl);
4343 * }
44- * <p/>
44+ *
4545 * private HttpProxyCacheServer getProxy() {
4646 * // should return single instance of HttpProxyCacheServer shared for whole app.
4747 * }
48- * <code/ ></pre>
48+ * </code ></pre>
4949 *
5050 * @author Alexey Danilov (danikula@gmail.com).
5151 */
@@ -291,7 +291,7 @@ private void closeSocketOutput(Socket socket) {
291291 socket .shutdownOutput ();
292292 }
293293 } catch (IOException e ) {
294- onError ( new ProxyCacheException ( "Error closing socket output stream " , e ));
294+ LOG . warn ( "Failed to close socket on proxy side: {}. It seems client have already closed connection. " , e . getMessage ( ));
295295 }
296296 }
297297
@@ -359,11 +359,11 @@ public Builder(Context context) {
359359
360360 /**
361361 * Overrides default cache folder to be used for caching files.
362- * <p/ >
362+ * <p>
363363 * By default AndroidVideoCache uses
364364 * '/Android/data/[app_package_name]/cache/video-cache/' if card is mounted and app has appropriate permission
365365 * or 'video-cache' subdirectory in default application's cache directory otherwise.
366- * <p/ >
366+ * </p >
367367 * <b>Note</b> directory must be used <b>only</b> for AndroidVideoCache files.
368368 *
369369 * @param file a cache directory, can't be null.
@@ -387,9 +387,10 @@ public Builder fileNameGenerator(FileNameGenerator fileNameGenerator) {
387387
388388 /**
389389 * Sets max cache size in bytes.
390+ * <p>
390391 * All files that exceeds limit will be deleted using LRU strategy.
391392 * Default value is 512 Mb.
392- * <p/ >
393+ * </p >
393394 * Note this method overrides result of calling {@link #maxCacheFilesCount(int)}
394395 *
395396 * @param maxSize max cache size in bytes.
@@ -403,7 +404,6 @@ public Builder maxCacheSize(long maxSize) {
403404 /**
404405 * Sets max cache files count.
405406 * All files that exceeds limit will be deleted using LRU strategy.
406- * <p/>
407407 * Note this method overrides result of calling {@link #maxCacheSize(long)}
408408 *
409409 * @param count max cache files count.
0 commit comments