Erlang/OTP Forums

Author Message

<  Open Telecom Platform (OTP)  ~  R15B ssl message split in two

freke
Posted: Fri Dec 23, 2011 1:13 pm Reply with quote
Joined: 23 Dec 2011 Posts: 1
Hi,
I got a new behavior then using ssl with erlang version R15B compared to then I used version R14B03.

For example then I run the example found in the erlang userdoc ssl:

1 server> ssl:start().
ok
2 server> {ok, ListenSocket} = ssl:listen(9999, [{certfile, "cert.pem"}, {keyfile, "key.pem"},{reuseaddr, true}]).
{ok,{sslsocket, [...]}}
3 server> {ok, Socket} = ssl:transport_accept(ListenSocket).
{ok,{sslsocket, [...]}}

1 client> ssl:start().
ok
2 client> {ok, Socket} = ssl:connect("localhost", 9999, [], infinity).
{ok,{sslsocket, [...]}}
4 server> ok = ssl:ssl_accept(Socket).
ok

4 server> ssl:send(Socket, "foo").
ok

5 client> flush().
Shell got {ssl,{sslsocket,new_ssl,<0.49.0>},"f"}
Shell got {ssl,{sslsocket,new_ssl,<0.49.0>},"oo"}
ok

Here I expect one message containing "foo" then I do flush not the two I got.

The same then I run the socket in passive mode
5>ssl:recv(Socket,0).
{ok,"f"}
6> ssl:recv(Socket,0).
{ok,"oo"}

expected to get a complete message from the first call to ssl:recv

Is this just on my computer?
Is there some better/other way to do this so I always get the complete message?
View user's profile Send private message
julmust
Posted: Mon Mar 26, 2012 5:05 pm Reply with quote
Joined: 26 Mar 2012 Posts: 1
Hi,

I am having the same problem/question an TS (also since R15B). Does anyone know why this is happening?

Regards,
View user's profile Send private message
lili50
Posted: Sat Jun 02, 2012 6:56 am Reply with quote
Joined: 25 May 2012 Posts: 1
Except for a lot of these amazing points, the birkenstock outlet strives initially to provide a athletic shoe that carryout a healthier bottom. Their particular shoes are sorted to showcase the natural pattern plus workouts concerning. Assuming decided to buy during the adequate trainer volume upper birkenstock sale, activity, plus spinal placement are usually stimulated all through the good use of the sneakers.
View user's profile Send private message
wuji
Posted: Thu Aug 16, 2012 8:40 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
apartment complex in Deerfield Beach, Fla. One boy poured rubbing rubbing imitation designer *beep* rubbing alcohol on Brewer, and another flicked a lighter, setting
ablaze.Brewer survived the attack by jumping into a nearby pool, pool, imitation designer *beep* pool, but not before second- and third-degree burns covered nearly
of his body.While Bent played no physical role in the the [h4]cheap Ralph Lauren[/h4] the attack, the prosecution accused him of orchestrating it in
of cold-blooded revenge against Brewer. In closing arguments, Assistant State State cheap designer *beep* State Attorney Maria Schneider stressed to the jury the disputes
Bent and Brewer in the day leading up to the the [h3]jordan 6 olympic 2012[/h3] the attack.The previous day, Brewer's parents reported Bent to the
for allegedly attempting to steal a family bicycle. Brewer said said imitation designer *beep* said he stayed home from school on Oct. 12 fearing
retaliation by Bent, who he testified Thursday was targeting him him knockoff designer *beep* him because he refused to buy drug paraphernalia from Bent.Denver
17, who is serving eight years in prison for pouring pouring jordan 6 olympic pouring the alcohol on Brewer, testified Wednesday that Bent offered
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum