Skip to content

Commit

Permalink
fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandmartel committed May 19, 2016
1 parent 7bbbcb5 commit ace343c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public class RepeatDownloadExample {
*/
private static final int REPORT_INTERVAL = 1000;

/**
* set socket timeout to 3s.
*/
private static final int SOCKET_TIMEOUT = 3000;

/**
* Repeat download example main.
*
Expand All @@ -75,8 +80,7 @@ public static void main(final String[] args) {

final SpeedTestSocket speedTestSocket = new SpeedTestSocket();

//set socket timeout to 3s
speedTestSocket.setSocketTimeout(3000);
speedTestSocket.setSocketTimeout(SOCKET_TIMEOUT);

speedTestSocket.addSpeedTestListener(new ISpeedTestListener() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ private int writeFlushSocket(final byte[] data) throws IOException {
final Future<Integer> future = executor.submit(new Callable() {

/**
* execute sequential write/flush task
* execute sequential write/flush task.
*
* @return status
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class SpeedTestSocketTest {
private static final int SOCKET_TO_VALID = 10000;

/**
* default value for socket timeout
* default value for socket timeout.
*/
private static final int SOCKET_TO_DEFAULT = 10000;

Expand Down

0 comments on commit ace343c

Please sign in to comment.