Re: Sockets, writing data and shutdownOutput



jan V wrote:
> > I use the shutdownOutput to make sure the server
> > understands that we are done and no more data can
> > be expected, but it seems that it overinterpretes
> > it as if my client is not interested in
> > pending response data?
>
> Why don't you socket.shutdownOutput() in your main thread, after you;ve
> fully received the web server's response? Why do you have to call it so
> early, before having processed the reply?

I want to make sure that even the last byte
of data gets through to the server and is
not lingering somewhere in an output
buffer of the client. If the data is not
completely send, the response cannot be
complete and then the client will never
get the chance to call shutdownOutput()
if it waits until after it has received
all the response data.

Harald.

.



Relevant Pages

  • Re: Why the client cant receive the response from server?
    ... I want to send some data to the server. ... The server sent the response data ... but the client can't receive data. ... The errorRet is often set to 0 or the WSAGetLastError get the error code ...
    (microsoft.public.win32.programmer.networks)
  • Re: Ajax acts unpredictable
    ... It's as if the client sends the request to the server but the server does not see it OR I get a response and there is no data even though the server sent some data...I see the response data in fiddler ...
    (microsoft.public.scripting.jscript)
  • Why the client cant receive the response from server?
    ... I want to send some data to the server. ... The server sent the response data ... but the client can't receive data. ... The errorRet is often set to 0 or the WSAGetLastError get the error code ...
    (microsoft.public.win32.programmer.networks)
  • Re: IIS on 2003 Server Cab Download in HTTPS problem.
    ... Can you check with Network monitor to verify that indeed NO response data is ... I think something is preventing the server from serving the file: ... or the client disconnected prematurely. ... The server is not sending the CAB file. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Empty result of the web service method call
    ... result at PHP code? ... valid response, then your problem must be in the client. ... that response data by inspecting the network communication on the test ...
    (comp.lang.php)