Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
robotpkg-wip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
robotpkg-wip
Commits
943ff52e
Commit
943ff52e
authored
11 years ago
by
Anthony Mallet
Browse files
Options
Downloads
Patches
Plain Diff
[wip/tcl-genomix] Import upstream bugfix for nested http requests
parent
596926ef
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tcl-genomix/Makefile
+1
-0
1 addition, 0 deletions
tcl-genomix/Makefile
tcl-genomix/distinfo
+1
-0
1 addition, 0 deletions
tcl-genomix/distinfo
tcl-genomix/patches/patch-aa
+23
-0
23 additions, 0 deletions
tcl-genomix/patches/patch-aa
with
25 additions
and
0 deletions
tcl-genomix/Makefile
+
1
−
0
View file @
943ff52e
...
...
@@ -2,6 +2,7 @@
# Created: Anthony Mallet on Fri, 19 Oct 2012
#
PKGREVISION
=
1
DISTNAME
=
tcl-genomix-1.2
CATEGORIES
=
supervision
MASTER_SITES
=
${
MASTER_SITE_OPENROBOTS:
=
tcl-genomix/
}
...
...
This diff is collapsed.
Click to expand it.
tcl-genomix/distinfo
+
1
−
0
View file @
943ff52e
SHA1 (tcl-genomix-1.2.tar.gz) = 6e5b081a055b899f5ef4cad08f3970150134a69f
RMD160 (tcl-genomix-1.2.tar.gz) = 9ddacb79d9cc4705807c43e6183daaab76f2a39a
Size (tcl-genomix-1.2.tar.gz) = 69408 bytes
SHA1 (patch-aa) = ea96d0fc9e7ccf436df696c57e07c0686e33811a
This diff is collapsed.
Click to expand it.
tcl-genomix/patches/patch-aa
0 → 100644
+
23
−
0
View file @
943ff52e
From 038ff1e69b8a9d947b4f9fce2aa2485b6f742700
When dealing with nested http requests, the innermost request (the latest one)
gets its result from the last element in the results stack. Definitely not from
the first one.
This fixes random failures under a high throughput requests flow, where http
results where sometimes mixed.
diff --git src/http.tcl src/http.tcl
index a21d250..114b7ee 100644
--- src/http.tcl
+++ src/http.tcl
@@ -55,7 +55,8 @@
namespace eval genomix::http {
# pop results
fileevent $sock readable $e
- set pending($sock) [lassign $pending($sock) r]
+ set r [lindex $pending($sock) end]
+ set pending($sock) [lrange $pending($sock) 0 end-1]
incr pindex($sock) -1
switch -- [dict get $r state] {
ok { return $r }
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment