Perfect部署到服务器工作记录

Perfect部署到服务器工作记录

========================

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-65-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

Welcome to Alibaba Cloud Elastic Compute Service !

Last login: Sat Mar 20 16:36:55 2021 from 47.96.60.213
root@iZwz9ir4og87e0nnfrmugkZ:~# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/# cd home
root@iZwz9ir4og87e0nnfrmugkZ:/home# ls
Code Swift swift-5.3.3-RELEASE-ubuntu20.04 swift-5.3.3-RELEASE-ubuntu20.04.tar.gz swift-5.3.3-RELEASE-ubuntu20.04.tar.gz.sig wget-log
root@iZwz9ir4og87e0nnfrmugkZ:/home# cd Code
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code# ls
Server-tencet2
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code# cd Server-tencet2
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# swift build
error: root manifest not found
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# ls
LICENSE Perfect PerfectTemplate README.md swift-5.3.3-RELEASE-ubuntu20.04.tar.gz swift-5.3.3-RELEASE-ubuntu20.04.tar.gz.sig
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd PerfectTemplate
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# swift build
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git
Fetching https://github.com/PerfectlySoft/Perfect-HTTP.git
^C
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# git pull
Username for 'https://e.coding.net': 3440217568@qq.com
Password for 'https://3440217568@qq.com@e.coding.net':
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), 558 bytes | 558.00 KiB/s, done.
From https://e.coding.net/Zhangsaidong/server-tencet2/Server-tencet2
5495386..830be1e master -> origin/master
Updating 5495386..830be1e
Fast-forward
Perfect/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 Perfect/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# ls
LICENSE Perfect PerfectTemplate README.md swift-5.3.3-RELEASE-ubuntu20.04.tar.gz swift-5.3.3-RELEASE-ubuntu20.04.tar.gz.sig
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd PerfectTemplate
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# swift build
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git
Fetching https://github.com/PerfectlySoft/Perfect-HTTP.git
^C
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd PerfecttTemplate
-bash: cd: PerfecttTemplate: No such file or directory
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd PerfectTemplate
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# ls
LICENSE LICENSE.zh_CN Package.swift README.md README.zh_CN.md Sources
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# ls -a
. .. .build .gitignore LICENSE LICENSE.zh_CN Package.swift README.md README.zh_CN.md Sources .swiftpm
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# rm -rf .build
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# ls
LICENSE LICENSE.zh_CN Package.swift README.md README.zh_CN.md Sources
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# ls -a
. .. .gitignore LICENSE LICENSE.zh_CN Package.swift README.md README.zh_CN.md Sources .swiftpm
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# swift build
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git
Fetching https://github.com/PerfectlySoft/Perfect-HTTP.git
^Cerror: Failed to clone https://github.com/PerfectlySoft/Perfect-HTTP.git:
Cloning into bare repository '/home/Code/Server-tencet2/PerfectTemplate/.build/repositories/Perfect-HTTP-3192655d'...
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# cd Perfect
-bash: cd: Perfect: No such file or directory
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# ls
LICENSE LICENSE.zh_CN Package.swift README.md README.zh_CN.md Sources
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# cd Package.swift
-bash: cd: Package.swift: Not a directory
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# vi Package.swift
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# git pull
Username for 'https://e.coding.net': 3440217568@qq.com
Password for 'https://3440217568@qq.com@e.coding.net':
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), 322 bytes | 322.00 KiB/s, done.
From https://e.coding.net/Zhangsaidong/server-tencet2/Server-tencet2
830be1e..a6d4c36 master -> origin/master
Updating 830be1e..a6d4c36
Fast-forward
PerfectTemplate/Package.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# ls
LICENSE Perfect PerfectTemplate README.md swift-5.3.3-RELEASE-ubuntu20.04.tar.gz swift-5.3.3-RELEASE-ubuntu20.04.tar.gz.sig
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd PerfectTemplatet
-bash: cd: PerfectTemplatet: No such file or directory
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd PerfectTemplate
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# swift build
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTP-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-CZlib-src-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Net-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-LinuxBridge-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/PerfectLib-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Thread-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Crypto-tencent.git
https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Crypto-tencent.git @ 4.0.0: error: duplicate dependency 'perfectlib-tencent'
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# swift build
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTP-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-CZlib-src-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Net-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-LinuxBridge-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/PerfectLib-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Thread-tencent.git
Updating https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Crypto-tencent.git
Fetching https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-COpenSSL-Linux-tencent.git
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-COpenSSL-Linux-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-COpenSSL-Linux-tencent.git at 4.0.2
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Net-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Net-tencent.git at 4.0.0
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-CZlib-src-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-CZlib-src-tencent.git at 0.0.4
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/PerfectLib-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/PerfectLib-tencent.git at 4.0.1
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-LinuxBridge-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-LinuxBridge-tencent.git at 3.1.0
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Crypto-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Crypto-tencent.git at 4.0.0
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTPServer-tencent.git at 3.0.23
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTP-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTP-tencent.git at 3.3.0
Cloning https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Thread-tencent.git
Resolving https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-Thread-tencent.git at 3.0.7
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev

/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetAddress.swift:97:26: warning: variable 'resultList' was never mutated; consider changing to 'let' constant
guard result == 0, var resultList = resultListPtr else {
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:41:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:42:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:70:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:71:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:209:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:210:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:273:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:274:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetAddress.swift:97:26: warning: variable 'resultList' was never mutated; consider changing to 'let' constant
guard result == 0, var resultList = resultListPtr else {
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:41:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:42:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:70:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:71:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:209:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:210:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:273:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:274:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetAddress.swift:97:26: warning: variable 'resultList' was never mutated; consider changing to 'let' constant
guard result == 0, var resultList = resultListPtr else {
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:41:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:42:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:70:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:71:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:209:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:210:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:273:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:274:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetAddress.swift:97:26: warning: variable 'resultList' was never mutated; consider changing to 'let' constant
guard result == 0, var resultList = resultListPtr else {
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:41:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:42:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:70:7: warning: variable 'addr' was never mutated; consider changing to 'let' constant
var addr = UnsafeMutablePointer<sockaddr_un>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:71:7: warning: variable 'len' was never mutated; consider changing to 'let' constant
var len = UnsafeMutablePointer<socklen_t>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:209:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:210:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:273:7: warning: variable 'nothingPtr' was never mutated; consider changing to 'let' constant
var nothingPtr = UnsafeMutablePointer<iovec>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetNamedPipe.swift:274:7: warning: variable 'nothing' was never mutated; consider changing to 'let' constant
var nothing = UnsafeMutablePointer<CChar>.allocate(capacity: 1)
~~~ ^
let
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:219:42: warning: 'TLSv1_2_method()' is deprecated
case .tlsV1_2: newSslCtx = SSL_CTX_new(TLSv1_2_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:220:42: warning: 'TLSv1_1_method()' is deprecated
case .tlsV1_1: newSslCtx = SSL_CTX_new(TLSv1_1_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:221:40: warning: 'TLSv1_method()' is deprecated
case .tlsV1: newSslCtx = SSL_CTX_new(TLSv1_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:219:42: warning: 'TLSv1_2_method()' is deprecated
case .tlsV1_2: newSslCtx = SSL_CTX_new(TLSv1_2_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:220:42: warning: 'TLSv1_1_method()' is deprecated
case .tlsV1_1: newSslCtx = SSL_CTX_new(TLSv1_1_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:221:40: warning: 'TLSv1_method()' is deprecated
case .tlsV1: newSslCtx = SSL_CTX_new(TLSv1_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:219:42: warning: 'TLSv1_2_method()' is deprecated
case .tlsV1_2: newSslCtx = SSL_CTX_new(TLSv1_2_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:220:42: warning: 'TLSv1_1_method()' is deprecated
case .tlsV1_1: newSslCtx = SSL_CTX_new(TLSv1_1_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-Net-tencent/Sources/PerfectNet/NetTCPSSL.swift:221:40: warning: 'TLSv1_method()' is deprecated
case .tlsV1: newSslCtx = SSL_CTX_new(TLSv1_method())
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:41:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPRequestHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:242:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPResponseHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPMethod.swift:67:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:41:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPRequestHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:242:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPResponseHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPMethod.swift:67:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:41:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPRequestHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:242:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPResponseHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPMethod.swift:67:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:41:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPRequestHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:242:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPResponseHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPMethod.swift:67:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:41:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPRequestHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPHeaders.swift:242:15: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPResponseHeader.Name' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/HTTPMethod.swift:67:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:17: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
let qPtr = UnsafePointer<UInt8>(byts)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
let qPtr = UnsafePointer<UInt8>(byts)
^~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let qPtr = UnsafePointer<UInt8>(byts)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:17: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
let qPtr = UnsafePointer<UInt8>(byts)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
let qPtr = UnsafePointer<UInt8>(byts)
^~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let qPtr = UnsafePointer<UInt8>(byts)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:17: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
let qPtr = UnsafePointer<UInt8>(byts)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
let qPtr = UnsafePointer<UInt8>(byts)
^~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let qPtr = UnsafePointer<UInt8>(byts)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:17: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
let qPtr = UnsafePointer<UInt8>(byts)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
let qPtr = UnsafePointer<UInt8>(byts)
^~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let qPtr = UnsafePointer<UInt8>(byts)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:17: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
let qPtr = UnsafePointer<UInt8>(byts)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
let qPtr = UnsafePointer<UInt8>(byts)
^~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTP-tencent/Sources/PerfectHTTP/MimeReader.swift:362:38: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let qPtr = UnsafePointer<UInt8>(byts)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP2/HTTP2Session.swift:73:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTP2Session' to 'Hashable' by implementing 'hash(into:)' instead
var hashValue: Int { return Int(net.fd.fd) }
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:21: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTPContentCompression.swift:52:52: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
stream.next_in = UnsafeMutablePointer(mutating: bytes)
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:44: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:386:78: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
lastHeaderName = String(validatingUTF8: UnsafeMutableRawPointer(mutating: workingBuffer).assumingMemoryBound(to: Int8.self))
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:7: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^~~~~~~~~~~~~~~~
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
/home/Code/Server-tencet2/PerfectTemplate/.build/checkouts/Perfect-HTTPServer-tencent/Sources/PerfectHTTPServer/HTTP11/HTTP11Request.swift:467:21: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
_ = UnsafePointer(b).withMemoryRebound(to: Int8.self, capacity: b.count) {
^
[88/88] Linking PerfectTemplate
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# .build/debug/PerfectTemplate
[INFO] Starting HTTP server localhost on 0.0.0.0:8181
^C
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2/PerfectTemplate# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code/Server-tencet2# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/home/Code# cd ..
root@iZwz9ir4og87e0nnfrmugkZ:/home# mkdir WebService
root@iZwz9ir4og87e0nnfrmugkZ:/home# cd WebService
root@iZwz9ir4og87e0nnfrmugkZ:/home/WebService# swift package init --type=executable
Creating executable package: WebService
Creating Package.swift
Creating README.md
Creating .gitignore
Creating Sources/
Creating Sources/WebService/main.swift
Creating Tests/
Creating Tests/LinuxMain.swift
Creating Tests/WebServiceTests/
Creating Tests/WebServiceTests/WebServiceTests.swift
Creating Tests/WebServiceTests/XCTestManifests.swift
root@iZwz9ir4og87e0nnfrmugkZ:/home/WebService#

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!