mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-22 05:19:34 +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) {
|
func sendError(_ error: Error, call: RPCNFS3Call) {
|
||||||
if let context = self.context {
|
if let context = self.context {
|
||||||
context.fireErrorCaught(error)
|
|
||||||
let nfsErrorReply = RPCNFS3Reply(rpcReply: .init(xid: call.rpcCall.xid,
|
let nfsErrorReply = RPCNFS3Reply(rpcReply: .init(xid: call.rpcCall.xid,
|
||||||
status: self.rpcReplySuccess),
|
status: self.rpcReplySuccess),
|
||||||
nfsReply: .mount(.init(result: .fail(.errorSERVERFAULT,
|
nfsReply: .mount(.init(result: .fail(.errorSERVERFAULT,
|
||||||
NFS3Nothing()))))
|
NFS3Nothing()))))
|
||||||
context.writeAndFlush(self.wrapOutboundOut(nfsErrorReply), promise: nil)
|
context.writeAndFlush(self.wrapOutboundOut(nfsErrorReply), promise: nil)
|
||||||
|
context.fireErrorCaught(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user