Skip to content

Commit

Permalink
StashApiClient: Provide descriptions for all timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
proski committed Apr 10, 2019
1 parent 9759f1d commit b1237c0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,15 @@
@SuppressFBWarnings("EQ_DOESNT_OVERRIDE_EQUALS")
public class StashApiClient {

// Request timeout: maximum time between sending an HTTP request and receiving
// a response to it from the server.
private static final int HTTP_REQUEST_TIMEOUT_SECONDS = 60;

// Connection timeout: maximum time for connecting to the HTTP server.
private static final int HTTP_CONNECTION_TIMEOUT_SECONDS = 15;

// Socket timeout: maximum period of inactivity between two data packets
// arriving to the client once the connection is established.
private static final int HTTP_SOCKET_TIMEOUT_SECONDS = 15;

private static final Logger logger =
Expand Down

0 comments on commit b1237c0

Please sign in to comment.