NobodyXu commented on PR #2192:
URL: 
https://github.com/apache/incubator-opendal/pull/2192#issuecomment-1540017370

   > It seems that `read_task` exit unexceptly in 
https://github.com/openssh-rust/openssh-sftp-client/blob/main/src/tasks.rs#L204-L231.
 I use `lldb` to capture that it runs into `defer`, but it doesn't exit by 
`break Ok(());`. Also, the value of `shutdown_stage` is still 0. Can I ask is 
there any other way to get out of this loop? @NobodyXu
   
   Yes, the function uses `?` to propagate errors, so it can only an error when 
reading from `sftp-server`.
   
   @silver-ymz Can you turn on `tracing` for logging?
   I have annotated [the read 
task](https://github.com/openssh-rust/openssh-sftp-client/blob/e11a8dc7bbdc6197d00d94a97fb36e9e118eae56/src/tasks.rs#L165)
 to print the error on return, but I'm not sure whether feature 
`tracing/tracing-log` would actually print these instruments.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to