commit/galaxy-central: 2 new changesets
2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/0ec5d2e530f2/ Changeset: 0ec5d2e530f2 Branch: stable User: jmchilton Date: 2014-11-18 16:39:01+00:00 Summary: Fix Pulsar's default HTTP transport for poster hacking up urllib. Behavior of urllib changes with respect of content length of mmap content after poster is loaded - is automatically loaded by Pulsar client as of 9207ecb43d81853da7a58cd5634683dc87991c4f (added as part of October 2014 stable release). Enis has confirmed this fixes some problems in latest stable. Affected #: 1 file diff -r 1af943ca6e39db44bfec74a0debffbf798fc4731 -r 0ec5d2e530f2bfb597b533b7e57941224abdc1d8 lib/pulsar/client/transport/standard.py --- a/lib/pulsar/client/transport/standard.py +++ b/lib/pulsar/client/transport/standard.py @@ -24,11 +24,13 @@ input = None try: if input_path: - if getsize(input_path): + size = getsize(input_path) + if size: input = open(input_path, 'rb') data = mmap.mmap(input.fileno(), 0, access=mmap.ACCESS_READ) else: data = b"" + request.add_header('Content-Length', str(size)) response = self._url_open(request, data) finally: if input: https://bitbucket.org/galaxy/galaxy-central/commits/bb79e87274d7/ Changeset: bb79e87274d7 Branch: stable User: dannon Date: 2014-11-20 14:16:46+00:00 Summary: Merged in jmchilton/galaxy-central-fork-1/stable (pull request #566) [STABLE] Fix Pulsar's default HTTP transport for poster hacking up urllib. Affected #: 1 file diff -r bdfd486e1219d7178ac85f8fcbb3c86fac8bc236 -r bb79e87274d7ef4e043a84aeef8516a5418ef3b6 lib/pulsar/client/transport/standard.py --- a/lib/pulsar/client/transport/standard.py +++ b/lib/pulsar/client/transport/standard.py @@ -24,11 +24,13 @@ input = None try: if input_path: - if getsize(input_path): + size = getsize(input_path) + if size: input = open(input_path, 'rb') data = mmap.mmap(input.fileno(), 0, access=mmap.ACCESS_READ) else: data = b"" + request.add_header('Content-Length', str(size)) response = self._url_open(request, data) finally: if input: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org