Skip to content

Commit

Permalink
Merge pull request #249 from ibi-group/increase-otp-request-timeout
Browse files Browse the repository at this point in the history
fix(OtpDispatcher): Match request timeout to OTP with GraphQL timeout [OTP-878]
  • Loading branch information
binh-dam-ibigroup authored Aug 19, 2024
2 parents 3435d21 + 22d3e8a commit 34a3436
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public class OtpDispatcher {
*/
public static final String OTP_GRAPHQL_ENDPOINT = getConfigPropertyAsText("OTP_GRAPHQL_ENDPOINT", "/routers/default/index/graphql");

private static final int OTP_SERVER_REQUEST_TIMEOUT_IN_SECONDS = 10;
/**
* Match the OTP GraphQL request timeout defined at
* https://github.com/opentripplanner/OpenTripPlanner/blob/176e5f51923e82f8a4c2aa2a0b8284e1497b4439/src/main/java/org/opentripplanner/apis/gtfs/GtfsGraphQLAPI.java#L54
*/
private static final int OTP_SERVER_REQUEST_TIMEOUT_IN_SECONDS = 30;

/**
* Provides a response from the OTP server target service based on the query parameters provided.
Expand Down

0 comments on commit 34a3436

Please sign in to comment.