• 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: What logs 'unknown [stream] error code...' ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What logs 'unknown [stream] error code...' ?


  • Subject: Re: What logs 'unknown [stream] error code...' ?
  • From: Jim Luther <email@hidden>
  • Date: Thu, 18 Sep 2008 09:57:56 -0700

Those log messages are from CFNetwork's FTP code that sits under NSURLConnection (the code that runs when you use a ftp URL). The translation of error codes from CFFTP to NSURL in Leopard needs some work and is covered by <rdar://problem/3307477> and you're seeing some of that (the FTP domain errors used to be translated better).

I can help you translate the log messages in your post:

domain 1 is kCFStreamErrorDomainPOSIX and the error codes for that domain can be found in <sys/errno.h>. For example, 61 is ECONNREFUSED (Connection refused).

domain 6 is kCFStreamErrorDomainFTP (the FTP domain) and the error codes for that domain are the FTP reply codes that you'll find in rfc959 <http://www.ietf.org/rfc/rfc959.txt> (and other related FTP RFCs). For example, 421 is "Service not available, closing control connection. This may be a reply to any command if the service knows it must shut down." and 550 is "Requested action not taken. File unavailable (e.g., file not found, no access)."

domain 12 is kCFStreamErrorDomainNetDB and the error codes for that domain can be found in <netdb.h>. For example, 8 is EAI_NONAME (hostname nor servname provided, or not known)

- Jim

On Sep 18, 2008, at 9:26 AM, Jerry Krinock wrote:

One of the functions in my application sends a request to each of the user's Safari bookmarks, logs the first response, then closes the connection. While it's waiting for a response, it opens connections to other bookmarks, throttled to have no more than 64 connections open simultaneously. In my code, this is all done in one thread, thanks, I suppose, to the magic of NSURLConnection.

Although I've been shipping this for 3 years and have had almost no trouble with this function, yesterday a user reported that my app crashed twice during while executing it. He retried today, and it did not crash, but my trouble-zipping tool sucked these odd messages out of today's console log. These messages are not generated by my code. Does anyone know where these come from and what they might mean?

Sep 18 11:09:37 jDoe Bookdog[7351]: unknown error code: domain 12, error 8
Sep 18 11:09:38 jDoe Bookdog[7351]: unknown stream error code in FTP domain - 421
Sep 18 11:09:57 jDoe Bookdog[7351]: unknown error code: domain 12, error 8
Sep 18 11:09:57 jDoe Bookdog[7351]: unknown error code: domain 1, error 61
Sep 18 11:10:07 jDoe Bookdog[7351]: unknown error code: domain 12, error 8
Sep 18 11:10:07 jDoe Bookdog[7351]: unknown stream error code in FTP domain - 550
Sep 18 11:10:17 jDoe Bookdog[7351]: unknown stream error code in FTP domain - 550
Sep 18 11:10:31 jDoe Bookdog[7351]: unknown error code: domain 12, error 8
Sep 18 11:10:33 jDoe Bookdog[7351]: unknown stream error code in FTP domain - 550
Sep 18 11:10:33 jDoe Bookdog[7351]: unknown error code: domain 12, error 8
Sep 18 11:10:35 jDoe Bookdog[7351]: unknown stream error code in FTP domain - 550


Thanks,

Jerry Krinock
_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: What logs 'unknown [stream] error code...' ?
      • From: Jerry Krinock <email@hidden>
References: 
 >What logs 'unknown [stream] error code...' ? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: What logs 'unknown [stream] error code...' ?
  • Next by Date: Re: Write stream proxy
  • Previous by thread: What logs 'unknown [stream] error code...' ?
  • Next by thread: Re: What logs 'unknown [stream] error code...' ?
  • Index(es):
    • Date
    • Thread