Skip to content

Commit 51a2ec2

Browse files
committed
App 崩溃问题
1 parent b8117a9 commit 51a2ec2

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

Coding_iOS/Coding_Enterprise_iOS-Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>2.9.8</string>
20+
<string>2.9.9</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleURLTypes</key>
@@ -28,7 +28,7 @@
2828
</dict>
2929
</array>
3030
<key>CFBundleVersion</key>
31-
<string>2.9.8.20181031.1</string>
31+
<string>2.9.9.20181114.1</string>
3232
<key>ITSAppUsesNonExemptEncryption</key>
3333
<false/>
3434
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Coding_iOS-Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>5.4.3</string>
20+
<string>5.4.4</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleURLTypes</key>
@@ -37,7 +37,7 @@
3737
</dict>
3838
</array>
3939
<key>CFBundleVersion</key>
40-
<string>5.4.3.20181031.1</string>
40+
<string>5.4.4.20181114.1</string>
4141
<key>ITSAppUsesNonExemptEncryption</key>
4242
<false/>
4343
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Util/EADeviceToServerLog/EADeviceToServerLog.m

+7-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ - (BOOL)p_canStartLog{
108108
}
109109

110110
- (void)tryToStart{
111-
if ([self p_canStartLog]) {
112-
[self startLog];
113-
}else{
114-
[self tryToPostToServer];
115-
}
111+
return ; //停了。要开的话,以后再说
112+
113+
// if ([self p_canStartLog]) {
114+
// [self startLog];
115+
// }else{
116+
// [self tryToPostToServer];
117+
// }
116118
}
117119

118120
- (void)tryToPostToServer{

Coding_iOS/Util/EADeviceToServerLog/LDNetDiagnoService/LDNetTraceRoute.m

+5
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ - (Boolean)doTraceRoute:(NSString *)host
118118
// On progresse jusqu'à un nombre de TTLs max.
119119
while (ttl <= maxTTL) {
120120
memset(&fromAddr, 0, sizeof(fromAddr));
121+
122+
//设置不发送 `SIGPIPE` 信号
123+
int value = 1;
124+
setsockopt(send_sock, SOL_SOCKET, SO_NOSIGPIPE, &value, sizeof(value));
125+
121126
//设置sender 套接字的ttl
122127
if ((isIPV6? setsockopt(send_sock,IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)):setsockopt(send_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl))) < 0) {
123128
error = true;

0 commit comments

Comments
 (0)