search

Home  >  Q&A  >  body text

iOS GCDAsyncSocket sending data sets cache size?

iOS GCDAsyncSocket sends data and sets the cache size. Every time I send a picture to the server, the remaining part is not sent out. I have to wait until I send a piece of data before sending out the rest of the previous one. This happens every time. This is because GCDAsyncSocket sets the cache size incorrectly. ? How to set cache size?

PHPzPHPz2798 days ago904

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-02 09:34:43

    No matter how big the picture is, it is divided into two parts?

    GCDAsyncSocket does not have the settings you mentioned. Socket transmission is limited by MTU. This is normal. https://zh.wikipedia.org/wiki...

    reply
    0
  • Cancelreply