keep-alive problems
-
macournoyer
- Milestone set to 0.8.0
- State changed from new to open
Hey Ry,
Keep alive is the default behaviour in HTTP 1.1 unless Connection: close is specified. Your application must set Content-Length 'cause some browsers were hanging w/ keep-alive and NO content-length.
Here's a quick piece of code that use a persistent connection to make 2 requests:
require 'socket' socket = TCPSocket.new('0.0.0.0', 3000) 2.times do socket.write "GET / HTTP/1.1\r\n\r\n" puts socket.readpartial(1024) end socket.closeYou can check the specs for persistent connections @ http://github.com/macournoyer/th...
If you think there's a bug, are you able to reproduce w/ some code?
-
macournoyer
- State changed from open to invalid
-
John
- Tag set to keep-alive
Per quanto ne so, i casinò online possono essere sia positivi che negativi per il tuo portafoglio. Se non vuoi sprecare il tuo tempo in ricerche inutili, visita il casinò Ice Casino e prendi i tuoi bonus. Se vuoi lasciare il tuo lavoro e guadagnarti da vivere giocando a un casinò, è la scelta https://ice-casino-play.com/lt/ migliore!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.