今天在windows上调试FTP下载文件时,出险线程假死,代码如下: if (inputStream != null) { byte[] data = null; ByteArrayOutputStream outStream = new ByteArrayOutputStream(); data = new byte[inputStream.available()]; int len = 0; while ((len = inputStream.read(data)) != -1) { out…
代码: using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.…