我有一个线程将相同的 40K 字节数组写入 16 个套接字(在套接字数组上迭代,每个套接字都发送整个字节数组)。这每 100 毫秒循环重复一次。
发送者是 android nexus 7 设备,接收者是 windows 7。
大约 30 秒后,其中一位作家继续说道:
Posix.sendtoBytes(FileDescriptor, Object, int, int, int, InetAddress, int) line: not available [native method]
Posix.sendto(FileDescriptor, byte[], int, int, int, InetAddress, int) line: 146
BlockGuardOs.sendto(FileDescriptor, byte[], int, int, int, InetAddress, int) line: 177
IoBridge.sendto(FileDescriptor, byte[], int, int, int, InetAddress, int) line: 473
PlainSocketImpl.write(byte[], int, int) line: 507
PlainSocketImpl.access$100(PlainSocketImpl, byte[], int, int) line: 46
PlainSocketImpl$PlainSocketOutputStream.write(byte[], int, int) line: 269
这可能是android中的错误吗?是并发问题还是网络问题?任何想法都会很棒。