Git Product home page Git Product logo

Comments (9)

jstedfast avatar jstedfast commented on May 17, 2024

I can possibly improve cancellation such as making it so that cancel will close the socket, thus causing the Stream.Read() to be aborted, but I'm not sure there's any other way to work around this.

Thanks for the bug report, I'll try to look into this soon.

from mailkit.

mganss avatar mganss commented on May 17, 2024

I think my bug description wasn't correct. When I said "hang" I meant that's what it looks like from the caller of Fetch(). It's not actually blocking in System.Net.Security.SslStream.Read but rather spinning in the methods mentioned (until canceled). So I think fixing this should be possible by making sure all occurrences of EOF are handled.

from mailkit.

jstedfast avatar jstedfast commented on May 17, 2024

Oh, thanks for the clarification.

from mailkit.

jstedfast avatar jstedfast commented on May 17, 2024

Could you test to see if this patch fixes the problem for you?

from mailkit.

mganss avatar mganss commented on May 17, 2024

Yes, that fixes it (exception gets thrown). Thanks.

from mailkit.

jstedfast avatar jstedfast commented on May 17, 2024

Awesome. I'll try to make similar fixes for SMTP and POP3 later today, as they probably suffer the same sort of problem.

from mailkit.

jstedfast avatar jstedfast commented on May 17, 2024

@mganss would you be willing to send me the first few lines of a log connecting to Courier IMAP? I mostly care about the greeting, but the CAPABILITIES would also be nice. Thanks!

from mailkit.

mganss avatar mganss commented on May 17, 2024
S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.
C: A00000000 STARTTLS
S: A00000000 OK Begin SSL/TLS negotiation now.
C: A00000001 CAPABILITY
S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION
S: A00000001 OK CAPABILITY completed

Is that enough?

from mailkit.

jstedfast avatar jstedfast commented on May 17, 2024

@mganss yes, that is perfect! Thank you!

from mailkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.