{"action":"created","issue":{"url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/160","repository_url":"https://api.github.com/repos/yuantiku/YTKNetwork","labels_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/160/comments","events_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/160/events","html_url":"https://github.com/yuantiku/YTKNetwork/issues/160","id":148911469,"number":160,"title":"YTKNetworkAgent线程安全","user":{"login":"pingguoilove","id":4142489,"avatar_url":"https://avatars.githubusercontent.com/u/4142489?v=3","gravatar_id":"","url":"https://api.github.com/users/pingguoilove","html_url":"https://github.com/pingguoilove","followers_url":"https://api.github.com/users/pingguoilove/followers","following_url":"https://api.github.com/users/pingguoilove/following{/other_user}","gists_url":"https://api.github.com/users/pingguoilove/gists{/gist_id}","starred_url":"https://api.github.com/users/pingguoilove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingguoilove/subscriptions","organizations_url":"https://api.github.com/users/pingguoilove/orgs","repos_url":"https://api.github.com/users/pingguoilove/repos","events_url":"https://api.github.com/users/pingguoilove/events{/privacy}","received_events_url":"https://api.github.com/users/pingguoilove/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yuantiku/YTKNetwork/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-17T02:30:43Z","updated_at":"2016-05-06T03:56:42Z","closed_at":null,"body":"[以下代码](https://github.com/yuantiku/YTKNetwork/blob/master/YTKNetwork/YTKNetworkAgent.m#L90)\r\n```\r\nif (request.requestSerializerType == YTKRequestSerializerTypeHTTP) {\r\n        _manager.requestSerializer = [AFHTTPRequestSerializer serializer];\r\n    } else if (request.requestSerializerType == YTKRequestSerializerTypeJSON) {\r\n        _manager.requestSerializer = [AFJSONRequestSerializer serializer];\r\n    }\r\n```\r\n\r\n在多个线程并发访问addRequest:接口的时候可能会引起serializer不正确吧？"},"comment":{"url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/comments/217342451","html_url":"https://github.com/yuantiku/YTKNetwork/issues/160#issuecomment-217342451","issue_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/160","id":217342451,"user":{"login":"lancy","id":1206841,"avatar_url":"https://avatars.githubusercontent.com/u/1206841?v=3","gravatar_id":"","url":"https://api.github.com/users/lancy","html_url":"https://github.com/lancy","followers_url":"https://api.github.com/users/lancy/followers","following_url":"https://api.github.com/users/lancy/following{/other_user}","gists_url":"https://api.github.com/users/lancy/gists{/gist_id}","starred_url":"https://api.github.com/users/lancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lancy/subscriptions","organizations_url":"https://api.github.com/users/lancy/orgs","repos_url":"https://api.github.com/users/lancy/repos","events_url":"https://api.github.com/users/lancy/events{/privacy}","received_events_url":"https://api.github.com/users/lancy/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T03:56:42Z","updated_at":"2016-05-06T03:56:42Z","body":"这个地方的确有问题，我们这段时间正在想一个好的方案来解决；当前的多线程 workaround 方案，可以把 `[api start]` 都 dipatch 到一个串行队列执行"}}