gen_tcp:send problem

Chandrashekhar Mullaparthi Chandrashekhar.Mullaparthi@REDACTED
Thu Jun 14 16:09:08 CEST 2001


Quite often, under high load, gen_tcp:send returns the following
error. Has anyone seen this before?? what is causing this? From the
server point of view, the connection still seems to be up - but the client
side 
can't send anymore data using this socket.

When in the process of sending a million messages, this occured about
16 times. The socket was opened as gen_tcp:open(Host,Port,[list]).

{error, {badarg, {erlang,
                                    port_command,
                                    [#Port<0.37>,
                                     [84,
                                      101,
                                      108,
                                      80,
                                      0,
                                      32,
                                      0,
                                      142,
                                      0,
                                      1,
                                      0,
                                      0,
                                      255,
                                      255,
                                      255,
                                      255,
                                      255,
                                      255,
                                      255,
                                      255,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      5,
                                      8,
                                      256,
                                      0,
                                      121,
                                      31,
                                      0,
                                      77,
                                      0,
                                      10,
                                      0,
                                      7,
                                      0,
                                      9,
                                      0,
                                      5,
                                      0,
                                      6,
                                      0,
                                      4,
                                      0,
                                      9,
                                      0,
                                      5,
                                      0,
                                      8,
                                      0,
                                      8,
                                      0,
                                      7,
                                      0,
                                      20,
                                      0,
                                      0,
                                      0,
                                      7,
                                      0,
                                      7,
                                      0,
                                      4,
                                      0,
                                      8,
                                      0,
                                      7,
                                      0,
                                      6,
                                      0,
                                      7,
                                      0,
                                      1,
                                      0,
                                      0,
                                      0,
                                      8,
                                      0,
                                      255,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      0,
                                      14,
                                      0,
                                      50,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      49,
                                      0,
                                      48,
                                      0,
                                      54,
                                      0,
                                      49,
                                      0,
                                      51,
                                      0,
                                      48,
                                      0,
                                      57,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      1,
                                      0,
                                      1,
                                      0,
                                      15,
                                      0,
                                      50,
                                      0,
                                      51,
                                      0,
                                      52,
                                      0,
                                      70,
                                      0,
                                      51,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      48,
                                      0,
                                      49,
                                      0,
                                      49,
                                      0,
                                      50,
                                      0,
                                      51,
                                      0,
                                      52,
                                      0,
                                      1,
                                      0,
                                      0,
                                      217,
                                      29]]},
                                {prim_inet,send,2},
                                {tcp_client_server,connected,3},
                                {gen_fsm,handle_msg,7},
                                {proc_lib,init_p,5}}}

tia,
Chandru



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list