Skip to content

Commit 390e785

Browse files
Added comment for timeout in configuration section when using the GraphServiceClient behind a corporate proxy in README.md
1 parent 634ccc3 commit 390e785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ proxies['http://'] = proxies.pop('http')
123123
proxies['https://'] = proxies.pop('https')
124124
scopes = ['https://graph.microsoft.com/.default']
125125
http_client = GraphClientFactory.create_with_default_middleware(
126-
client=AsyncClient(proxies=proxies, timeout=Timeout(timeout=60.0)))
126+
client=AsyncClient(proxies=proxies, timeout=Timeout(timeout=60.0))) # HTTP timeout connection set to 60 seconds
127127
auth_provider = AzureIdentityAuthenticationProvider(credentials=credentials, scopes=scopes)
128128
client = GraphServiceClient(request_adapter=GraphRequestAdapter(auth_provider=auth_provider, client=http_client))
129129
```

0 commit comments

Comments
 (0)