Re: Socket connection return "Process file table overflow."
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Tue, 25 Mar 2008 10:42:34 -0700 (PDT)
On Mar 25, 10:02 am, Nuno <nuno.escul...@xxxxxxxxx> wrote:
I think i do not look for any specification, because i only need to
implement a simple file download from a HTTPS Server...
And that's precisely why you're in trouble now. You don't know what
the server is supposed to do when the transfer is finished or how to
negotiate that behavior. If you had worked from a copy of the HTTP
standard, you would know.
Can you give me some guidelines of what is needed to open a connection
and to close, or to prepare it to the next download...
I think that would be more likely to hurt you than to help you. You
really should read the specification. I will tell you a few helpful
things:
1) If you implement HTTP 1.1, persistent connections (remain connected
after each query so you can send the next) are the default. The server
will send a 'Connection: close' if it cannot keep the connection open.
2) With HTTP 1.0 and later, 'Host' headers are mandatory.
3) With HTTP 1.1, you *must* be prepared to accept chunked encoding.
4) You can probably get away with implementing HTTP 1.0 but sending a
'Connection: Keep-Alive' header. You should not assume the connection
will in fact be persistent. Check for a 'Connection: Keep-Alive'
header in the response. If you get 'Connection: Close', the connection
will be closed at the end of the response.
DS
.
- References:
- Socket connection return "Process file table overflow."
- From: Nuno
- Re: Socket connection return "Process file table overflow."
- From: David Schwartz
- Re: Socket connection return "Process file table overflow."
- From: Nuno
- Re: Socket connection return "Process file table overflow."
- From: David Schwartz
- Re: Socket connection return "Process file table overflow."
- From: Nuno
- Socket connection return "Process file table overflow."
- Prev by Date: Re: Socket connection return "Process file table overflow."
- Next by Date: Re: Creating fragmentation using sockets (on ethernet)
- Previous by thread: Re: Socket connection return "Process file table overflow."
- Next by thread: Creating fragmentation using sockets (on ethernet)
- Index(es):
Relevant Pages
|