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

  • SEARCH
  • Home
  • 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 9248231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:54:09+00:00 2026-06-18T09:54:09+00:00

In a conditionally compliant/general-purpose server, something likes this #define HTTP_MSG_LEN_MAX = ??; … int

  • 0

In a conditionally compliant/general-purpose server, something likes this

#define HTTP_MSG_LEN_MAX = ??;

...

int read_request(sockfd, ...)
{
  char *buf = malloc(sizeof(char) * http_msg_len_max + 1);
  int read_total = 0;
  int read_once = 0;

    while (zStrFind(buf, "\r\n\r\n") != -1 && read_total < HTTP_MSG_LEN_MAX) {
      read_once = read(sockfd, buf + read_total, HTTP_MSG_LEN_MAX - read_total);

     if (read_once < 0) {
       fprintf(stderr, "read failed: %s \n", strerror(errno));
       free(buf);
       return -1;
     }

     read_total += read_once;
  }

  ...

  return 0;
}

I already know maximum length of HTTP URI in request,
but what’s the maximum length of an HTTP message?
RFC2616 doesn’t mentions it.

  • 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-18T09:54:10+00:00Added an answer on June 18, 2026 at 9:54 am

    There is no maximum length (per specification).

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

Sidebar

Related Questions

I need this asp:TableRow to show conditionally. <asp:TableRow> <asp:TableCell><asp:Label id=ExtraAmountType runat=server Width=182px></asp:Label></asp:TableCell> <asp:TableCell Width=10%
Suppose you write a function in SQL Server that conditionally calls itself. If you
My forehead is bruised out of frustration over this issue. In the standards compliant
I just encountered this (made up code to demonstrate the problem): public ICollection<string> CreateCollection(int
I want to conditionally build a SQL statement and am having issues. In this
Ok so I want to conditionally add this line of code; <!--[if ! IE]>
I’m trying to do something similar to another question , namely, conditionally include OpenMP
I want to conditionally add an attribute using jQuery: var $this = this .append(...)
I want to conditionally unhook an event handler. Is this the right way to
I am used to using this macro to initialize NSError** arguments: #define INIT_ERROR_IF_NULL(error) error

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.