Re: Sockets, writing data and shutdownOutput



jan V wrote:
> > It is not the data hanging in a buffer. It is the EOF.
>
> I'm going to kick you [figuratively ;-) ] (and you're going to kick
> yourself) if the problem stems from a lack of close(). Are you calling
> close() on the stream???? The server is only going to see EOF if you close()
> the OutputStream in the client....

Not true. shutdownOutput() on the client side signals
EOF to the server. However, a close() on the
OutputStream shuts down the whole socket,
which is exactly what I not want.

Harald.

.



Relevant Pages

  • Re: Rekursionen etc
    ... Technisch kein Problem, habe Zugriff und Connections auf beide DBS, habe nur ein "Logikproblem", folgendes: ... Server, 19", AMD, Opteron, IBMblablbal, 25? ... Lese Satz ... solange nicht EOF ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)
  • NFS: NFS3 - page null fill in a short read situation
    ... file data corruption if the NFS filesystem on a non-Linux server ... The Linux NFS client ... creates a file on the server and issues the following sequence of lseeks, ... We have several non-Linux NFS servers that do not return the EOF status ...
    (Linux-Kernel)
  • read on socket shows EOF... but only when app is running in background
    ... Does anybody know other reasons a TCP Socket will read eof besides being ... My multi threaded server application doesn't work when run in the ...
    (comp.unix.programmer)
  • Re: gets throws error "connection reset by peer"
    ... The reset state is not the same as the simple EOF, ... of an abnormal condition. ... Anything else I could do on server side to check this condition ... but I'd rather want to know what really happens with the channel ...
    (comp.lang.tcl)
  • Re: Problem mit einfachem Socketserver/client
    ... Deine Schleife ist aber so programmiert, ... dass sie nur bei einem EOF endet. ... Dann kann der Server zunächst die Anzahl Bytes ... An der Notwendigkeit für ein solches Protokoll würde auch der Wechsel aufNIOnichts ändern, also spar dir das, solange duNIOnicht aus anderen ...
    (de.comp.lang.java)