Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crashes when wifi lost during smb_write and smb_read operations #94

Open
SyedZeeshan21 opened this issue Sep 28, 2016 · 5 comments
Labels

Comments

@SyedZeeshan21
Copy link

Hi, i am using smb_fwrite and smb_fread methods for writing and reading operations, while operation is in progress and wifi connection is lost,there is no error provided in this case, please help me to handle this situation.

@chouquette
Copy link
Contributor

Could you provide a stacktrace and/or a simple test application ?

@SyedZeeshan21
Copy link
Author

SyedZeeshan21 commented Sep 28, 2016

Thanks for your response, during smb_fread operation, when download operation is in progress and if i have switched wifi or off wifi and try connect it back, if this is done multiple times there is no response of download operation .

        length = smb_fread(self.downloadSession, fileID, buffer, BUFFER_DOWNLOAD_SIZE);

Even after 5 min there is no response of download operation in progress...
Is there any smb_req timeout property for smb_fread operation???

@jbkempf jbkempf added the bug label May 8, 2017
@jbkempf
Copy link
Contributor

jbkempf commented May 8, 2017

See also #95

@khodzha
Copy link

khodzha commented Jun 11, 2019

is adding timeval timeout field to smb_session and setting SO_RCVTIMEO and SO_SNDTIMEO on netbios_session socket an appropriate fix for this?

also isnt lib basically dead with all of smb1 security issues?

@jbkempf
Copy link
Contributor

jbkempf commented Aug 9, 2023

is adding timeval timeout field to smb_session and setting SO_RCVTIMEO and SO_SNDTIMEO on netbios_session socket an appropriate fix for this?

Probably, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants