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:
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user