Skip to content

Commit 8f6d383

Browse files
Decrease API request timeout to 5 seconds
Reduced timeout for API requests from 16 to 5 seconds.
1 parent 4e3dde7 commit 8f6d383

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/gsr_booking/api_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def get_authorized_rooms(self, user):
242242
response = requests.get(
243243
url,
244244
auth=HTTPBasicAuth(settings.PENNGROUPS_USERNAME, settings.PENNGROUPS_PASSWORD),
245-
timeout=16,
245+
timeout=5,
246246
)
247247

248248
# Check HTTP status first

0 commit comments

Comments
 (0)