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 8728433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:38:23+00:00 2026-06-13T08:38:23+00:00

I have a packet to be sent from client 1 to client 2 through

  • 0

I have a packet to be sent from client 1 to client 2 through a Http connection. Lets call this packet packet 1. I don’t expect any reply from client 2 for packet 1. I now want to send packet 2. If I attempt to write packet 2 to the connection without reading the reply sent for packet 1, I get an exception. Why should I read the response for packet 1, when I’m not interested in seeing what I get?

  • 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-13T08:38:24+00:00Added an answer on June 13, 2026 at 8:38 am

    If you are using HTTP, you need to conform to the HTTP protocol as set out in the HTTP Specification. That says that the client sends a request message to the server and the server sends a response. The client needs to read that response completely before it sends another request on the connection.

    So there’s no way I can write a request without reading the response for a previous request?

    No. That would be a protocol violation. It might work for one or two requests, but eventually the server-to-client side of the connection would “back up” and things would break. HTTP is not supposed to work this way.

    If you don’t want to conform to the requirements of HTTP, you should use a different protocol … or invent your own application-specific protocol.


    It is not clear exactly why you are getting an exception immediately. (You don’t mention what the exception is, or what client-side HTTP library you are using.) But I expect that the exception is from the HTTP implementation, telling you that you are using the APIs incorrectly.

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

Sidebar

Related Questions

I have a server application that receives some special TCP packet from a client
I have this udp packet: P = <<83,65,77,80,188,64,172,85,30,144,105,0,0,0,50,0,7,0,0,0,115,97,109,112,45,114,112,11,0,0,0,149,78,87,149,82,80,149,118,50,46,50,11,0,0,0,83,97,110,32,65,110,100,114,101,97,115>> 14-15 byte is the players var
i am using pcap to create a packet sniffer. i have this tcp structure:
I have a client that will send a lots of data to server from
I've been trying to send a packet from a client to a server via
We have a production system that gathers telemetry data from remote devices. This data
So this is my question. I have a client and a server java program.
I have a struct struct Packet { int senderId; int sequenceNumber; char data[MaxDataSize]; char*
I have a Full Speed device that specifies the max packet size as 256
I have the following code int ParseData(unsigned char *packet, int len) { struct ethhdr

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.