{"action":"created","issue":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/743","repository_url":"https://api.github.com/repos/jstedfast/MailKit","labels_url":"https://api.github.com/repos/jstedfast/MailKit/issues/743/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MailKit/issues/743/comments","events_url":"https://api.github.com/repos/jstedfast/MailKit/issues/743/events","html_url":"https://github.com/jstedfast/MailKit/issues/743","id":348638087,"node_id":"MDU6SXNzdWUzNDg2MzgwODc=","number":743,"title":"Only one usage of each socket address permitted","user":{"login":"jag43","id":10996026,"node_id":"MDQ6VXNlcjEwOTk2MDI2","avatar_url":"https://avatars2.githubusercontent.com/u/10996026?v=4","gravatar_id":"","url":"https://api.github.com/users/jag43","html_url":"https://github.com/jag43","followers_url":"https://api.github.com/users/jag43/followers","following_url":"https://api.github.com/users/jag43/following{/other_user}","gists_url":"https://api.github.com/users/jag43/gists{/gist_id}","starred_url":"https://api.github.com/users/jag43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jag43/subscriptions","organizations_url":"https://api.github.com/users/jag43/orgs","repos_url":"https://api.github.com/users/jag43/repos","events_url":"https://api.github.com/users/jag43/events{/privacy}","received_events_url":"https://api.github.com/users/jag43/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T09:05:59Z","updated_at":"2018-08-08T16:42:12Z","closed_at":null,"author_association":"NONE","body":"We have started getting this error on our web server. We have multiple applications that need to send emails. I believe the error makes sense as only 1 application can use the socket at a time, but do you have any advice for how to allow multiple applications to send emails?\r\n\r\nOur setup has been running ok for some months and we believe we started getting the error after upgrading to `dotnet core 2.1`, but it may also be due to increased load.\r\n\r\nStack trace\r\n```\r\nSystem.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted\r\nat System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\nat System.Net.Sockets.Socket.Connect(EndPoint remoteEP)\r\nat System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)\r\nat MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)\r\nat CustomAssembly.Services.EmailService.SendAsync(MimeMessage message) in D:\\a\\1\\s\\WinApps\\CustomAssembly\\Services\\EmailService.cs:line 116\r\n```"},"comment":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/comments/411472858","html_url":"https://github.com/jstedfast/MailKit/issues/743#issuecomment-411472858","issue_url":"https://api.github.com/repos/jstedfast/MailKit/issues/743","id":411472858,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTQ3Mjg1OA==","user":{"login":"jstedfast","id":338984,"node_id":"MDQ6VXNlcjMzODk4NA==","avatar_url":"https://avatars2.githubusercontent.com/u/338984?v=4","gravatar_id":"","url":"https://api.github.com/users/jstedfast","html_url":"https://github.com/jstedfast","followers_url":"https://api.github.com/users/jstedfast/followers","following_url":"https://api.github.com/users/jstedfast/following{/other_user}","gists_url":"https://api.github.com/users/jstedfast/gists{/gist_id}","starred_url":"https://api.github.com/users/jstedfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstedfast/subscriptions","organizations_url":"https://api.github.com/users/jstedfast/orgs","repos_url":"https://api.github.com/users/jstedfast/repos","events_url":"https://api.github.com/users/jstedfast/events{/privacy}","received_events_url":"https://api.github.com/users/jstedfast/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T16:42:12Z","updated_at":"2018-08-08T16:42:12Z","author_association":"OWNER","body":"Are you setting a `SmtpClient.LocalEndPoint`?"}}
{"actor":{"display_login":"jstedfast"}}