# Wip\_write returns -1

**URL:** <https://forum.sierrawireless.com/t/wip-write-returns-1/7336>\
**Category:** Open AT\
**Created:** [July 24, 2014, 11:58am UTC](https://forum.sierrawireless.com/t/wip-write-returns-1/7336 "2014-07-24T11:58:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mandy](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mandy](https://forum.sierrawireless.com/u/mandy)\
**Post date:** [July 24, 2014, 11:58am UTC](https://forum.sierrawireless.com/t/wip-write-returns-1/7336/1 "2014-07-24T11:58:53Z")

</div>

Hello,

I try to write to an SSL socket more than 5000 bytes. The wip\_write function returns as error code -1. This is not described in the help. What does -1 means in this case?  
Writing less than 5000 bytes, it succeed. Why it is not possible to write more than 5000 bytes? I excpect, that the write function would return the number of bytes actually written bytes and I have to use the wip\_write funtion again. But instead of thi sit retunrs -1.

---

_[View the full topic](https://forum.sierrawireless.com/t/wip-write-returns-1/7336)._
