{"action":"closed","issue":{"url":"https://api.github.com/repos/StabbyCutyou/buffstreams/issues/2","labels_url":"https://api.github.com/repos/StabbyCutyou/buffstreams/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/StabbyCutyou/buffstreams/issues/2/comments","events_url":"https://api.github.com/repos/StabbyCutyou/buffstreams/issues/2/events","html_url":"https://github.com/StabbyCutyou/buffstreams/issues/2","id":92891217,"number":2,"title":"Review locking strategies","user":{"login":"StabbyCutyou","id":1528618,"avatar_url":"https://avatars.githubusercontent.com/u/1528618?v=3","gravatar_id":"","url":"https://api.github.com/users/StabbyCutyou","html_url":"https://github.com/StabbyCutyou","followers_url":"https://api.github.com/users/StabbyCutyou/followers","following_url":"https://api.github.com/users/StabbyCutyou/following{/other_user}","gists_url":"https://api.github.com/users/StabbyCutyou/gists{/gist_id}","starred_url":"https://api.github.com/users/StabbyCutyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StabbyCutyou/subscriptions","organizations_url":"https://api.github.com/users/StabbyCutyou/orgs","repos_url":"https://api.github.com/users/StabbyCutyou/repos","events_url":"https://api.github.com/users/StabbyCutyou/events{/privacy}","received_events_url":"https://api.github.com/users/StabbyCutyou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T14:57:59Z","updated_at":"2015-07-11T17:23:02Z","closed_at":"2015-07-11T17:23:02Z","body":"There is possibly some naivete in how I'm locking. Possible improvements:\r\n\r\n2 locks, one for listening, one for dialing\r\n\r\nMove writes out of locks, break the lookup + write into 2 ops when writing to an endpoint, since conns are already threadsafe.\r\n\r\nSynchronize access to the conn map so I need less locking code littered around map acces"}}