libdsm icon indicating copy to clipboard operation
libdsm copied to clipboard

Application crashes when wifi lost during smb_write and smb_read operations

Open SyedZeeshan21 opened this issue 8 years ago • 5 comments

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.

SyedZeeshan21 avatar Sep 28 '16 07:09 SyedZeeshan21

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

chouquette avatar Sep 28 '16 07:09 chouquette

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???

SyedZeeshan21 avatar Sep 28 '16 10:09 SyedZeeshan21

See also #95

jbkempf avatar May 08 '17 15:05 jbkempf

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?

khodzha avatar Jun 11 '19 04:06 khodzha

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.

jbkempf avatar Aug 09 '23 11:08 jbkempf