Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.toolbox
Commits
b14261dd
Commit
b14261dd
authored
Nov 22, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor: bugfix on equeue in order to support slow requests.
parent
54267e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
slapos/equeue/__init__.py
slapos/equeue/__init__.py
+9
-4
No files found.
slapos/equeue/__init__.py
View file @
b14261dd
...
...
@@ -126,6 +126,8 @@ def main():
required
=
False
)
parser
.
add_argument
(
'-l'
,
'--logfile'
,
nargs
=
1
,
required
=
True
,
help
=
"Path to the log file."
)
parser
.
add_argument
(
'-t'
,
'--timeout'
,
nargs
=
1
,
required
=
False
,
dest
=
'timeout'
,
type
=
int
,
default
=
3
)
parser
.
add_argument
(
'socket'
,
help
=
"Path to the unix socket"
)
args
=
parser
.
parse_args
()
...
...
@@ -171,13 +173,16 @@ def main():
conn
,
addr
=
unixsocket
.
accept
()
logger
.
debug
(
"Connection with file descriptor %d"
,
conn
.
fileno
())
conn
.
set
blocking
(
False
)
conn
.
set
timeout
(
args
.
timeout
)
request_string
=
StringIO
()
segment
=
None
while
segment
!=
''
:
segment
=
conn
.
recv
(
1
)
request_string
.
write
(
segment
)
try
:
while
segment
!=
''
:
segment
=
conn
.
recv
(
1024
)
request_string
.
write
(
segment
)
except
socket
.
timeout
:
pass
command
=
'127'
try
:
...
...
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