keithduncan / CoreNetworking

Simple set up for building Objective-C network clients and servers, includes a simple HTTP server out of the box.
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Fix packet idle timeouts #62

Open keithduncan opened 10 years ago

keithduncan commented 10 years ago

I think that currently if no data arrives on the stream, and the packet isn’t started then the timeout isn’t started.

The idle timeout for a packet should be started once the packet reaches the head of the packet queue, before it is first performed, whether there’s data available or not.