Skip to content

Hardcoded session timeout might fail large file uploading/downloading #392

Description

@ChongZhou-Broadcom

Describe the bug

I was using USSFiles to upload a SMP/E package to USS. Every time, around 30 seconds after the uploading started, it failed with the following exception:

requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError('The write operation timed out'))

I didn't try Datasets but I guess it would probably fail with the same reason.

Expected and actual results

It should well support large file uploading/downloading. (...which usually takes some time to finish)

Describe your environment

  • Mac, Python 3.10.20
  • Zowe Python SDK v1.0.0dev26
  • z/OS 3.2 on ZVDT

Additional context

I went over the implementation. The root cause seems to be at the following place:

self.__session_arguments: dict[str, Any] = {
"verify": self.session.reject_unauthorized,
"timeout": 30,
}

I will soon create a PR to fix this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Low Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions