Results 1 to 4 of 4

Thread: Problem with my web server

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    10

    Problem with my web server

    problem = i made a web server in C++ and it will send pictures or binary based files to the browser when requested by themselves, but when you request a page with a bunch of pictures either they dont all load, or none load at all. for example if you request /textfile.txt it will load. if you request /picture.gif it will load. but if you request /index.html with a bunch of pictures in it they wont all load. i think this is because the browser is requesting so many things from my server that it cant send them all or it closes the connection to early before the entire file is sent. any ideas?

  2. #2
    Zaei
    Guest
    Web browsers open a new connection for every image in a page. For instance, if you have a page with 4 images, the browser connects, and downloads the page requested, and then disconnects. It sees that there is an image, so it connects, downloads, and disconnects. It sees another pictures, connects, downloads, and disconnects. And so on. Are you resetting your server after each connection to allow another connection immediately?

    Z.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    10
    i know how web server/browsers work. i think i am. i have a array of sockets that accept each connection.

  4. #4
    Lively Member
    Join Date
    Aug 2001
    Posts
    109
    Ya, your probably not gonna wanna use the same socket for all the connections

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width