Use chunks for ssl write
Fix write buffer size
Fix indentation
Merge pull request #545 from deiv/use-chunk-size

Use chunks for ssl write