{"action":"created","issue":{"url":"https://api.github.com/repos/smslib/comm2ip/issues/3","labels_url":"https://api.github.com/repos/smslib/comm2ip/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/smslib/comm2ip/issues/3/comments","events_url":"https://api.github.com/repos/smslib/comm2ip/issues/3/events","html_url":"https://github.com/smslib/comm2ip/issues/3","id":93526012,"number":3,"title":"Serial port not accessible for fast reconnect.","user":{"login":"tobiascapin","id":3449410,"avatar_url":"https://avatars.githubusercontent.com/u/3449410?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiascapin","html_url":"https://github.com/tobiascapin","followers_url":"https://api.github.com/users/tobiascapin/followers","following_url":"https://api.github.com/users/tobiascapin/following{/other_user}","gists_url":"https://api.github.com/users/tobiascapin/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiascapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiascapin/subscriptions","organizations_url":"https://api.github.com/users/tobiascapin/orgs","repos_url":"https://api.github.com/users/tobiascapin/repos","events_url":"https://api.github.com/users/tobiascapin/events{/privacy}","received_events_url":"https://api.github.com/users/tobiascapin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/smslib/comm2ip/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"tdelenikas","id":3892955,"avatar_url":"https://avatars.githubusercontent.com/u/3892955?v=3","gravatar_id":"","url":"https://api.github.com/users/tdelenikas","html_url":"https://github.com/tdelenikas","followers_url":"https://api.github.com/users/tdelenikas/followers","following_url":"https://api.github.com/users/tdelenikas/following{/other_user}","gists_url":"https://api.github.com/users/tdelenikas/gists{/gist_id}","starred_url":"https://api.github.com/users/tdelenikas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdelenikas/subscriptions","organizations_url":"https://api.github.com/users/tdelenikas/orgs","repos_url":"https://api.github.com/users/tdelenikas/repos","events_url":"https://api.github.com/users/tdelenikas/events{/privacy}","received_events_url":"https://api.github.com/users/tdelenikas/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-07-07T13:02:04Z","updated_at":"2015-07-10T17:53:15Z","closed_at":null,"body":"I found a little trouble in case of serial reconnect. If the serialport is closed and opened just after I got a \"System.UnauthorizedAccessException\" for unavailable port. \r\nTo reprocude it, try to do a fast socket reconnection.\r\n\r\nNote from SerialPort.Close method msdn docs:\r\n>The best practice for any application is to wait for some amount of time after calling the Close method before attempting to call the Open method, as the port may not be closed instantly.\r\n\r\nTo avoid this I suggest to create a single SerialPort per port and use always the same object for each tcp socket thread. Moreover, I think the Send() method to SerialPort should be synchronized between threads.\r\n\r\nAnyway, thanks for this nice library!\r\n"},"comment":{"url":"https://api.github.com/repos/smslib/comm2ip/issues/comments/120477781","html_url":"https://github.com/smslib/comm2ip/issues/3#issuecomment-120477781","issue_url":"https://api.github.com/repos/smslib/comm2ip/issues/3","id":120477781,"user":{"login":"tobiascapin","id":3449410,"avatar_url":"https://avatars.githubusercontent.com/u/3449410?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiascapin","html_url":"https://github.com/tobiascapin","followers_url":"https://api.github.com/users/tobiascapin/followers","following_url":"https://api.github.com/users/tobiascapin/following{/other_user}","gists_url":"https://api.github.com/users/tobiascapin/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiascapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiascapin/subscriptions","organizations_url":"https://api.github.com/users/tobiascapin/orgs","repos_url":"https://api.github.com/users/tobiascapin/repos","events_url":"https://api.github.com/users/tobiascapin/events{/privacy}","received_events_url":"https://api.github.com/users/tobiascapin/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T17:53:15Z","updated_at":"2015-07-10T17:53:15Z","body":"An example:  I have a serial thermal printer connect to a PC. I want to print here from many hosts connected in the same network. Why this scenario I can print ticket or labels from network. \r\nIf you do not think that your library fits this requirements I suggest to limit one client socket per serial port.\r\nThanks!"}}