aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2011-05-03 10:59:31 +0200
committerIngela Anderton Andin <[email protected]>2011-05-03 10:59:31 +0200
commit6f03c25ec03a743c1e707b70839973a05b431095 (patch)
tree169a51216ef6b896e805d74f7b02efc3b36c76a1 /lib/ssl/src/ssl_connection.erl
parent8d74122d8ee9eb46bfb49c13ec39f515996a58a2 (diff)
parent995daeae6917c1369ef4ea7a620c9488c4059456 (diff)
downloadotp-6f03c25ec03a743c1e707b70839973a05b431095.tar.gz
otp-6f03c25ec03a743c1e707b70839973a05b431095.tar.bz2
otp-6f03c25ec03a743c1e707b70839973a05b431095.zip
Merge branch 'ia/ssl/dialyzer-iodata' into dev
* ia/ssl/dialyzer-iodata: Changed iolist() to iodata()
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index 574e1e9468..0a86e9bd29 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -107,12 +107,14 @@
%%====================================================================
%%--------------------------------------------------------------------
--spec send(pid(), iolist()) -> ok | {error, reason()}.
+-spec send(pid(), iodata()) -> ok | {error, reason()}.
%%
%% Description: Sends data over the ssl connection
%%--------------------------------------------------------------------
send(Pid, Data) ->
sync_send_all_state_event(Pid, {application_data,
+ %% iolist_to_binary should really
+ %% be called iodata_to_binary()
erlang:iolist_to_binary(Data)}, infinity).
%%--------------------------------------------------------------------