Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8667811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:03:51+00:00 2026-06-12T18:03:51+00:00

Background: I have a custom HTTP server written in Erlang to stream stuff to

  • 0

Background: I have a custom HTTP server written in Erlang to stream stuff to an iPad app. I was using NSURLConnection – the standard high-level Apple way to consume HTTP content. However I was having problems with small chunks of data being buffered and not passed to my code immediately, so I was forced to switch to CFNetwork.

While NSURLConnection never complained, CFNetwork sometimes (~1 in 3 times) gives the following error and kills the connection:

The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 303.)

According to Apple docs, this corresponds to “The HTTP server response could not be parsed.”

This only occurs after the connection has been opened for a couple of seconds, and the response is being made.

I’ve taken a packet capture on the server with tshark. It’s quite large, and contains UTF-8 as well as confidential details.

How can I go about verifying that it’s a valid HTTP 1.1 chunked response?

Just to clarify, I’ve looked through the result of tcpick -C -yP -r ... and couldn’t see anything immediately amiss, but I’m wondering if there’s anything I can pass it through to confirm it’s byte for byte valid.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:03:52+00:00Added an answer on June 12, 2026 at 6:03 pm

    Turns out it was sndbuf in the Erlang web server being set too low that was the problem.

    That was a 5 hour waste of scanning a packet capture, implementing chunked HTTP with CFStream from scratch, etc, etc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using iOS 4.3 on an ipad app I have a custom NSOperation that uses
First, a little background. I have written a custom HTTP compression module for ASP.NET.
I have a custom ViewGroup (blue background) that when touched sometime during the app's
Background: Trying to implement a list in app.config as per these examples: http://jopinblog.wordpress.com/2007/04/20/custom-configurationsections-in-net-20-config-files/ http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/0f3557ee-16bd-4a36-a4f3-00efbeae9b0d
Background I have a custom collection that is binded to the datagridview this.datagridview.DataSource =
I have a custom background image on one of my Wordpress login pages. After
I have a custom UINavigationController that draws a custom background. That navigation controller is
I have a custom made UINavigationBar (different size, background etc) that has inside a
I have a custom tableview cell created programmatically that consists of: a background view
In the following example, I have a custom JComponent being drawn on green background,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.