{"action":"created","issue":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/197","labels_url":"https://api.github.com/repos/jstedfast/MailKit/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MailKit/issues/197/comments","events_url":"https://api.github.com/repos/jstedfast/MailKit/issues/197/events","html_url":"https://github.com/jstedfast/MailKit/issues/197","id":81778495,"number":197,"title":"The buffers supplied to a function was too ","user":{"login":"MattAfflek","id":2795295,"avatar_url":"https://avatars.githubusercontent.com/u/2795295?v=3","gravatar_id":"","url":"https://api.github.com/users/MattAfflek","html_url":"https://github.com/MattAfflek","followers_url":"https://api.github.com/users/MattAfflek/followers","following_url":"https://api.github.com/users/MattAfflek/following{/other_user}","gists_url":"https://api.github.com/users/MattAfflek/gists{/gist_id}","starred_url":"https://api.github.com/users/MattAfflek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattAfflek/subscriptions","organizations_url":"https://api.github.com/users/MattAfflek/orgs","repos_url":"https://api.github.com/users/MattAfflek/repos","events_url":"https://api.github.com/users/MattAfflek/events{/privacy}","received_events_url":"https://api.github.com/users/MattAfflek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jstedfast/MailKit/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-28T06:00:25Z","updated_at":"2015-06-11T22:10:44Z","closed_at":"2015-05-28T10:00:54Z","body":"From time to time I receive this error message.\r\n```\r\nSystem.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The buffers supplied to a function was too small\r\n   --- End of inner exception stack trace ---\r\n   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)\r\n   at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)\r\n   at MailKit.Net.Imap.ImapClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)\r\n   at MailKit.MailService.<>c__DisplayClass3.<ConnectAsync>b__2()\r\n   at System.Threading.Tasks.Task.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n   at DownloadAndUpdatePrices.Email.EmailService.<DownloadFileAsync>d__0.MoveNext() in d:\\ProjectIS-3\\WebProjectAutosouz\\DownloadAndUpdatePrices\\DownloadAndUpdatePrices\\Email\\EmailService.cs:line 35\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at DownloadAndUpdatePrices.BLL.DownloadService.<DownloadFileAsync>d__0.MoveNext() in d:\\ProjectIS-3\\WebProjectAutosouz\\DownloadAndUpdatePrices\\DownloadAndUpdatePrices\\BLL\\DownloadService.cs:line 22\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at DownloadAndUpdatePrices.Program.<Process>d__d.MoveNext() in d:\\ProjectIS-3\\WebProjectAutosouz\\DownloadAndUpdatePrices\\DownloadAndUpdatePrices\\Program.cs:line 48\r\n```"},"comment":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/comments/111289727","html_url":"https://github.com/jstedfast/MailKit/issues/197#issuecomment-111289727","issue_url":"https://api.github.com/repos/jstedfast/MailKit/issues/197","id":111289727,"user":{"login":"migig","id":10752448,"avatar_url":"https://avatars.githubusercontent.com/u/10752448?v=3","gravatar_id":"","url":"https://api.github.com/users/migig","html_url":"https://github.com/migig","followers_url":"https://api.github.com/users/migig/followers","following_url":"https://api.github.com/users/migig/following{/other_user}","gists_url":"https://api.github.com/users/migig/gists{/gist_id}","starred_url":"https://api.github.com/users/migig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migig/subscriptions","organizations_url":"https://api.github.com/users/migig/orgs","repos_url":"https://api.github.com/users/migig/repos","events_url":"https://api.github.com/users/migig/events{/privacy}","received_events_url":"https://api.github.com/users/migig/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T22:10:44Z","updated_at":"2015-06-11T22:10:44Z","body":"@MattAfflek If I understand you correctly, you get the error when you access multiple mailboxes, or make multiple connections... something like that?"}}