why socket Disconnect when read timeout?

49 views
Skip to first unread message

yp z

unread,
Mar 14, 2020, 1:40:18 AM3/14/20
to CocoaAsyncSocket
call: 

open func write(_ data: Data, withTimeout timeout: TimeInterval, tag: Int)

timeout > 0

Socket will disconnect when read timeout

I looked at the source code and found that this is a normal logic,not a bug

Why disconnect after reading data timeout?

I want a full-duplex data transfer
what should I do?

thanks


Reply all
Reply to author
Forward
0 new messages