gen_tcp:send problem
Peter H|gfeldt
peter@REDACTED
Tue Jun 19 13:47:04 CEST 2001
In some way you have provided Data to gen_tcp:send(Socket, Data) that is
not an I/O-list: there is an integer value of 256 in the list of data
provided to port_command.
For the definition of I/O-list, see for instance erl -man erlang, under
the heading port_command.
Regards,
Peter
-------------------------------------------------------------------------
Peter Högfeldt e-mail : peter@REDACTED
Open Telecom Platform Phone: : +46 (8) 727 57 58
Ericsson Utvecklings AB Mobile : +46 070-519 57 51
S-126 25 STOCKHOLM Fax: : +46 (8) 727 5775
Office address: Armborstvägen 1, Älvsjö
On Thu, 14 Jun 2001, Chandrashekhar Mullaparthi wrote:
>
> 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