崩溃的iPad网络堆栈

时间:2016-02-11 21:04:51

标签: ios networking

自iOS 5/6左右以来,我一直在开发应用程序。最近出现了一些奇怪的问题,其中最糟糕的问题是需要重启设备才能使用任何需要网络连接的东西(Safari等)。 该应用程序运行本地服务器,并与本地网络上的许多客户端iPad应用程序通信。我有以下问题,我认为不应该这样:

  • 停顿的消息 - 我写了一个套接字。消息不会到达另一端。我写了更多,所有数据,包括之前没有到过的数据,都出现在目的地。它好像是一个冲洗'是必需的,但TCP套接字没有AFAIK这样的东西。
  • iPad的网络失败。控制台记录错误。 iPad需要重新启动。关闭和打开WiFi没有任何影响。但是,我认为,如果足够的时间过去(小时)网络再次开始工作(我今天第一次注意到这一点,需要确认)。无论如何,我不能让iPad持续数小时。 记录的信息是:
    Oct 19 16:26:27 Rabbit syslogd[22] <Notice>: ASL Sender Statistics Oct 19 16:26:51 Rabbit networkd[85] <Notice>: -[NETAWDManager reportStats:metricID:] server 0x1557d310, container 0x155910c0, metrid 2686983, successfully reported: <AWDLibnetcoreTCPConnectionReport: 0x155a7ed0> { cellularFallbackReport = { dataUsageSnapshotsAtNetworkEvents = ( { bytesIn = 25000; bytesOut = 2500; }, { bytesIn = 50000; bytesOut = 5300; }, { bytesIn = 130000; bytesOut = 8500; }, { bytesIn = 150000; bytesOut = 11000; }, { bytesIn = 250000; bytesOut = 16000; }, { bytesIn = 350000; bytesOut = 18000; } ); "fallbackTimer_msecs" = 0; fellback = 0; networkEvents = ( "NETWORK_EVENT_DATA_STALL_AT_APP_LAYER", "NETWORK_EVENT_DATA_STALL_AT_APP_LAYER", "NETWORK_EVENT_DATA_STALL_AT_APP_LAYER", "NETWORK_EVENT_DATA_STALL_AT_APP_LAYER", "NETWORK_EVENT_DATA_STALL_AT_APP_LAYER", "NETWORK_EVENT_DATA_STALL_AT_APP_LAYER" ); "timeToNetworkEvents_msecs" = ( 14062, 39061, 64061, 74061, 109061, 164061 ); }; clientIdentifier = "com.xxx.xxx (redacted)"; connectionStatisticsReport = { DNSAnswersCached = 0; "DNSResolvedTime_msecs" = 21; RTTvariance = 2931; "appDataStallTimer_msecs" = 3; appReportingDataStallCount = 6; "bestRTT_msecs" = 20; betterRouteEventCount = 0; bytesDuplicate = 0; bytesIn = 380000; bytesOut = 18000; bytesOutOfOrder = 130000; bytesRetransmitted = 13000; cellularFallback = 0; cellularRRCConnected = 0; connected = 1; connectedInterfaceType = "INTERFACE_TYPE_WIFI"; "connectionEstablishmentTime_msecs" = 35; connectionReuseCount = 0; "currentRTT_msecs" = 6314; "flowDuration_msecs" = 197976; interfaceType = "INTERFACE_TYPE_WIFI"; kernelReportedStalls = 0; kernelReportingConnectionStalled = 0; kernelReportingReadStalled = 0; kernelReportingWriteStalled = 0; packetsDuplicate = 0; packetsIn = 280; packetsOut = 51; packetsOutOfOrder = 0; packetsRetransmitted = 0; "smoothedRTT_msecs" = 3974; synRetransmissionCount = 0; tcpFastOpen = 0; "timeToConnectionEstablishment_msecs" = 58; "timeToConnectionStart_msecs" = 23; "timeToDNSResolved_msecs" = 22; "timeToDNSStart_msecs" = 1; trafficClass = 0; }; delegated = 0; reportReason = "REPORT_REASON_DATA_STALL_AT_APP_LAYER";

任何想法都非常感激。

0 个答案:

没有答案