planetarium / NineChronicles

Unity client application for Nine Chronicles, a fully decentralized idle RPG powered by the community.
https://nine-chronicles.com/
GNU Affero General Public License v3.0
347 stars 146 forks source link

원격테이블 다운로드실패 원인파악 #4854

Open jonny-jeahyunchoi opened 3 weeks ago

jonny-jeahyunchoi commented 3 weeks ago

https://stackoverflow.com/questions/71144714/system-threading-tasks-taskcanceledexception-a-task-was-canceled-exception https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-7.0#remarks

애초에 HttpClient는 전역선언으로 재사용하도록 디자인되어있어 매번 선언시 소켓수 부족으로 익셉션이 날수있다고함

jonny-jeahyunchoi commented 3 weeks ago

테스트로 http요청시 30개정도 더미요청을 만들고 동시에 진행해봤지만, 에디터에서는 재현 불가

jonny-jeahyunchoi commented 2 weeks ago

UnityWebRequest로 전환후 빈도가 급격히 줄어드는 부분 확인