Skip to content

Commit

Permalink
Add dial timeout to access point to prevent slow server startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jschenke488 committed Oct 29, 2024
1 parent 3a37926 commit 8168c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/access_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (ap *AccessPoint) ConfigureTeamWifi(teams [6]*model.Team) error {
if ap.password != "" {
httpRequest.Header.Add("Authorization", fmt.Sprintf("Bearer %s", ap.password))
}
var httpClient http.Client
httpClient := http.Client{Timeout: time.Second * 3}
httpResponse, err := httpClient.Do(httpRequest)
if err != nil {
return err
Expand Down

0 comments on commit 8168c55

Please sign in to comment.