0

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?

Mr.Noob
  • 1,005
  • 3
  • 24
  • 58
  • 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 Answers1

-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.