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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions