Comments (12)
@bagder investigating into it
from wolfssh.
The comment in the source code explains what wasn't obvious in the header file. That 'ofs' is a pointer to two 32 bit values. So my code passes in totally crazy input...
* ofst offset to start reading at. 2 word32 array with value at ofst[0]
* being the lower and ofst[1] being the upper.
from wolfssh.
Nope, premature conclusion. I updated my code to pass in a pointer to an array with two word32
values, but I still get 29 back.
from wolfssh.
I opened this PR (#190) to start on the debugging path for this. Since blocking worked ok, it looks like has to do with the non blocking portion of the code. Am working on debugging the state machine for that API with non blocking enabled.
from wolfssh.
Lovely. I'll be happy to run tests and poke from my end of things if you have any specific ideas or queries!
from wolfssh.
May I get the debug log from when it hits the issue and one from when it does not. This is with building wolfSSH with --enable-debug or the macro DEBUG_WOLFSSH and making a call to wolfSSH_Debugging_ON() to turn on debug print outs before the function in question get called.
from wolfssh.
Sure. Here are two logs from just now with the debug output from the point where wolfSSH_SFTP_Open()
returns successfully for the file.
wolfssh-log-success.txt
wolfssh-log-fail.txt
from wolfssh.
Great! That clears it up. Thank you @bagder!
from wolfssh.
The most recent commit on PR #190 should resolve the issue now
from wolfssh.
Lovely, I'll try it out tomorrow!
from wolfssh.
Confirmed! I cannot reproduce the problem anymore with #190 applied. Thanks!
from wolfssh.
Thanks again for the report and for confirming the fix! Will go ahead and close out this issue.
from wolfssh.
Related Issues (20)
- Implement remote port forwarding with lwip HOT 1
- OpenSSH sftp cannot connect with v1.4.14-stable, whilst it could with v1.4.13-stable HOT 11
- Enhancing portability and error handling in wolfSSH HOT 1
- diffie-hellman-group-exchange-sha256 broken since v1.4.12-stable HOT 2
- non blocking mode does not work : infinte lines of "client would read block" in offical test client program HOT 8
- make fail with sftp HOT 2
- wolfSSH Espressif ESP32 Managed Component Support HOT 1
- wolfSSL GitHooks pre-commit: incompatible on Visual Studio Windows WSL
- Double Free or Corruption on 1.4.13 and master branch HOT 5
- Rekeying doesn't work in certain cases HOT 1
- If the client is suspended, the server enters a busy loop with WS_WINDOW_FULL HOT 6
- DoReiceive() does not update the input buffer after DoPacket(), when it has to. HOT 1
- Espressif fixes: MISC_WARNING not expanded, vars not initialized, not used
- Missing wolfssl/options.h in esp-idf managed component version "1.4.15-stable-preview5"
- Runtime configurability of key signature algorithms for KEX HOT 7
- Failed to connect to wolfssh server with kex ID_ECDH_SHA2_NISTP* HOT 1
- Error when building wolfssh with only WOLFSSH_NO_ECDSA or WOLFSSH_NO_ECDH HOT 2
- wolfssh_template / wolfssh_echoserver don't build HOT 5
- Warnings and Errors when publishing wolfSSH Espressif Managed Component
- Post-Quantum: Liboqs v0.7.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfssh.