• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Not getting an NSStreamEventHasBytesAvailable message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not getting an NSStreamEventHasBytesAvailable message


  • Subject: Re: Not getting an NSStreamEventHasBytesAvailable message
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Tue, 14 Feb 2017 23:04:53 +0000

On 14 Feb 2017, at 17:13, Jens Alfke <email@hidden> wrote:

> Then I’m back to the question of why this problem is occurring.

I’ve no idea.  Honestly, it sounds like a bug, but it’s hard to be sure without an in-depth look.

Is the stream scheduled via a run loop?  Or a queue?

If it’s a run loop, are you sure that the only code touching the stream is running on that run loop?  Similarly if you’re using a queue?

Did this problem happen on earlier versions of macOS?

Have you enabled TLS on the socket stream?

Anything interesting in the CFNetwork diagnostic log?

If, when things get stuck, you force the app to do a read, does it actually get data?

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Not getting an NSStreamEventHasBytesAvailable message (From: Jens Alfke <email@hidden>)
 >Re: Not getting an NSStreamEventHasBytesAvailable message (From: Jens Alfke <email@hidden>)
 >Re: Not getting an NSStreamEventHasBytesAvailable message (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: Not getting an NSStreamEventHasBytesAvailable message (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Not getting an NSStreamEventHasBytesAvailable message
  • Previous by thread: Re: Not getting an NSStreamEventHasBytesAvailable message
  • Index(es):
    • Date
    • Thread