1
0
mirror of https://github.com/apple/swift-nio-extras.git synced 2025-05-20 20:32:23 +08:00

delay errors

This commit is contained in:
Johannes Weiss 2023-01-18 15:14:46 +00:00
parent b483131866
commit c158372e1d

@ -62,12 +62,12 @@ public final class NFS3FileSystemNoAuthHandler<FS: NFS3FileSystemNoAuth>: Channe
func sendError(_ error: Error, call: RPCNFS3Call) {
if let context = self.context {
context.fireErrorCaught(error)
let nfsErrorReply = RPCNFS3Reply(rpcReply: .init(xid: call.rpcCall.xid,
status: self.rpcReplySuccess),
nfsReply: .mount(.init(result: .fail(.errorSERVERFAULT,
NFS3Nothing()))))
context.writeAndFlush(self.wrapOutboundOut(nfsErrorReply), promise: nil)
context.fireErrorCaught(error)
}
}