Skip to content

Commit

Permalink
Use HTTP, x3 times faster than HTTPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
忘篱 committed Aug 2, 2018
1 parent 8f15c74 commit 391badf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ git clone https://github.com/aliyun/aliyun-openapi-net-sdk.git
## History

* Use HTTP, x3 times faster than HTTPS.
* [8f15c74](https://github.com/winlinvip/rtc-app-csharp/commit/8f15c74804437f5e77f335bccdf62147b396ef2a), Log the request id and cost in ms.
* [0dc5727](https://github.com/winlinvip/rtc-app-csharp/commit/0dc572712c55fd0fcdfc9762d0cf752995488da2), Support recover for some OpenAPI error.
* [1b7aac5](https://github.com/winlinvip/rtc-app-csharp/commit/1b7aac5a065f52f663e1b4474eeee6b099124dc8), Set endpoint to get correct error.
* Support create channel and sign user token.
5 changes: 4 additions & 1 deletion rtc-app-csharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ static ChannelAuth RecoverForError(ClientException ex, string appId, string chan
// that's caused by query endpoint failed.
// @remark SDk will cache endpoints, however it will query endpoint for the first
// time, so it's good for performance to set the endpoint.
DefaultProfile.AddEndpoint(regionId, regionId, request.Product, endpoint);
DefaultProfile.AddEndpoint(regionId, regionId, request.Product, endpoint);

// Use HTTP, x3 times faster than HTTPS.
request.Protocol = Aliyun.Acs.Core.Http.ProtocolType.HTTP;

CreateChannelResponse response = client.GetAcsResponse(request);

Expand Down

0 comments on commit 391badf

Please sign in to comment.