[erlang-questions] how to flush a gen_tcp socket on close?

Anthony Shipman als@REDACTED
Tue Apr 3 19:12:51 CEST 2012


On Tue, 3 Apr 2012 11:38:41 pm Andreas Schultz wrote:
> > And to comment on the other reply, using shutdown/2 should most
> > certainly not be needed for this - the only purpose of using that is to
> > do a "half close".
> 
> Shutdown seems not to process the send queue.
> 
If close() called shutdown(, read_write) which blocked until the data was 
fully flushed then it would all make sense.
-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.



More information about the erlang-questions mailing list