I've got an android SSL client communicating with a c# ssl server. I have noticed a strange behaviour on the sslsocket on android lollipop. When I send some data to the server eg. "Hello Server" the server reads only the first character out of the data I sent but when I try the same code on a device lower than lollipop the server reads the whole message in one go. Any thoughts on this?
Asked
Active
Viewed 116 times
0
-
Bug in the server. It should read everything presented to it. – user207421 Apr 17 '15 at 09:50
-
@EJP well it does on devices lower than lollipop, because I'm using an example provided by msdn and it simply works with android devices lower than lollipop – Mr.Noob Apr 17 '15 at 10:16
-
I expressed myself poorly. It should keep reading until it has everything it needs. It should not rely on getting entire messages in a single read. – user207421 May 12 '15 at 05:56
-
I know what you mean but it's strange how it would work flawlessly on kitkat and not on android lolipop. – Mr.Noob May 12 '15 at 09:24
1 Answers
-2
Just put dash(-) while making string. than u can write ur data to server. In ssl it read security type so u should write than blank or dash(-). If it will work pls let me know.

Akash Barnwal
- 1
- 2
-
Come off it. Dash has no meaning to SSL or TCP. It is also a change in the application protocol. This is not going to work for any reason whatsoever. – user207421 May 12 '15 at 05:56
-