Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
992d3c41
Commit
992d3c41
authored
Jul 17, 2009
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConnectionManagerFS: dont poll the remote_fs in __init__, it can be really slow
parent
b5b04d5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
fs/remote.py
+2
-7
No files found.
fs/remote.py
View file @
992d3c41
...
...
@@ -141,7 +141,7 @@ class ConnectionManagerFS(WrapFS):
poll_interval
=
1
def
__init__
(
self
,
fs
,
poll_interval
=
None
):
def
__init__
(
self
,
fs
,
poll_interval
=
None
,
connected
=
True
):
if
poll_interval
is
not
None
:
self
.
poll_interval
=
poll_interval
if
isinstance
(
fs
,
FS
):
...
...
@@ -162,12 +162,7 @@ class ConnectionManagerFS(WrapFS):
self
.
_fskwds
=
{}
self
.
_connection_cond
=
threading
.
Condition
()
self
.
_poll_thread
=
None
try
:
self
.
wrapped_fs
.
isdir
(
""
)
except
RemoteConnectionError
:
self
.
connected
=
False
else
:
self
.
connected
=
True
self
.
connected
=
connected
@property
def
wrapped_fs
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment