Giter VIP home page Giter VIP logo

Comments (6)

kcclark avatar kcclark commented on May 27, 2024

I forgot to mention that I am still non arc. 7.0.X

from cocoaasyncsocket.

robbiehanson avatar robbiehanson commented on May 27, 2024

I noticed there was an update that closes the file descriptors in closeWithError,
but I don't know if they cover the same path.

I believe it does. I tested it, and the file descriptor is getting closed. I added some extra logs just now for testing.

Am I missing something? Are you sure the file descriptor isn't getting closed?

from cocoaasyncsocket.

kcclark avatar kcclark commented on May 27, 2024

I a sure the file descriptor was not getting closed, but that was before we pulled Kyle Fuller's fix:

Fix an issue where a refused connection will not be cleaned up properly. 5c28a2a/

The particulars, as best I understand it, happened when we tried to connect to a host using GCDAsyncSocketMsgController:

  • (id)initWithDelegate: ( id ) inDelegate
    queue: ( dispatch_queue_t ) inDispatchQueue
    interface: ( NSString * ) inInterface
    host: ( NSString * ) inHost
    port: ( UInt16 ) inPort ;

When the host wasn't on the interface specified, or was explicity rejected, the connection would fail, causing the file descriptor leak.

Please let me know particularly if our patch will cause problems, or if it's safe for us to remove our patch because Kyle's fix covers the same problem in a better place.

Ken

On May 14, 2012, at 3:05 AM, Robbie Hanson wrote:

I noticed there was an update that closes the file descriptors in closeWithError,
but I don't know if they cover the same path.

I believe it does. I tested it, and the file descriptor is getting closed. I added some extra logs just now for testing.

Am I missing something? Are you sure the file descriptor isn't getting closed?


Reply to this email directly or view it on GitHub:
#52 (comment)

from cocoaasyncsocket.

robbiehanson avatar robbiehanson commented on May 27, 2024

You meant this fix right: 6f46421

Yes, this fix should also cover the same problem.

from cocoaasyncsocket.

kcclark avatar kcclark commented on May 27, 2024

sorry, i copied the parent hash.

Yes, that is the fix I was referring to.

On May 14, 2012, at 11:43 AM, Robbie Hanson wrote:

You meant this fix right: 6f46421

Yes, this fix should also cover the same problem.


Reply to this email directly or view it on GitHub:
#52 (comment)

from cocoaasyncsocket.

robbiehanson avatar robbiehanson commented on May 27, 2024

Cool. Marking the issue as closed. But let me know if you see any further problems with this, and I reopen the issue.

from cocoaasyncsocket.

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.