aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python
Commit message (Collapse)AuthorAge
* fixes to tests for py2/3 syntax compatibilityGravatar Leifur Halldor Asgeirsson2016-03-23
|
* Merge pull request #5916 from ↵Gravatar Jan Tattermusch2016-03-23
|\ | | | | | | | | leifurhauks/py3_str_bytes_in_links_service_and_beta_server Python 3: fix a bytes/str runtime issue
* \ Merge pull request #5383 from miselin/add_request_parsingGravatar Jan Tattermusch2016-03-23
|\ \ | | | | | | Add HTTP request parsing
* \ \ Merge pull request #5368 from leifurhauks/py3_test_compatGravatar Jan Tattermusch2016-03-23
|\ \ \ | | | | | | | | Python: py3 compatibility for test runner & loader
* \ \ \ Merge pull request #5755 from ahedberg/unix_sockets_optionalGravatar Jan Tattermusch2016-03-23
|\ \ \ \ | | | | | | | | | | Make unix sockets optional
* \ \ \ \ Merge pull request #5914 from thought-machine/fix_slow_string_readGravatar Jan Tattermusch2016-03-22
|\ \ \ \ \ | | | | | | | | | | | | Make grpc-python ByteBuffer.bytes() linear
| | | | * | Add HTTP request parsing.Gravatar Matthew Iselin2016-03-23
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends the existing http parser to support requests as well as responses. httpcli continues to exist and work as it has previously, though in the new directory src/core/http (to reflect the fact the directory now contains code relevant to parsing requests, which httpcli would not generally involve itself in).
| | | | * Python 3: fix a bytes/str runtime issueGravatar Leifur Halldor Asgeirsson2016-03-22
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On python3, in grpc._links.service._Kernel._on_service_acceptance_event, there is a runtime TypeError: ``` _on_service_acceptance_event group, method = service_acceptance.method.split('/')[1:3] TypeError: 'str' does not support the buffer interface ``` It is fixed by using a bytes literal (`b'/'`) instead of a string literal. This exposed another issue in grpc.beta._server where an exception was being raised with a bytes literal for a message (a string should be used instead.)
* | | | Merge pull request #5899 from dgquintas/uchannels_kthxbaiGravatar Jan Tattermusch2016-03-22
|\ \ \ \ | | | | | | | | | | removed uchannels
| | * | | Make grpc-python ByteBuffer.bytes() linear cost.Gravatar alex2016-03-22
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently ByteBuffer.bytes() reads from the underlying grpc byte_buffer a slice at a time, and appends each to a Python string (bytes). In Python strings are immutable, so appending creates a new string by copying the previous data. This means the current implementation is quadratic. The effect is very noticeable when messages have repeated (or large) string fields. We traced execution between two services and observed that when the payload size approached 600kb, the receiving service took ~10s at full CPU to read a response that had taken fractions of a second the send over the network. This commit changes ByteBuffer.bytes() to use an intermediate bytearray, instead of strings, for the in-progress bytes. Once all slices are read, the buffer is converted to a string.
* | | | Merge pull request #5650 from leifurhauks/py3_iteritemsGravatar Nicolas Noble2016-03-21
|\ \ \ \ | | | | | | | | | | replace uses of iteritems with six.iteritems
| | * | | removed uchannelsGravatar David Garcia Quintas2016-03-21
| |/ / / |/| | |
* | | | Merge pull request #5653 from leifurhauks/py3_iteratorsGravatar Jan Tattermusch2016-03-21
|\ \ \ \ | | | | | | | | | | make iterators python3-compatible
* \ \ \ \ Merge pull request #5651 from leifurhauks/py3_metaclassesGravatar Jan Tattermusch2016-03-21
|\ \ \ \ \ | | | | | | | | | | | | specify metaclasses in a py3-compatible way
* \ \ \ \ \ Merge github.com:grpc/grpc into filter-selectionGravatar Craig Tiller2016-03-21
|\ \ \ \ \ \
| * \ \ \ \ \ Merge pull request #5679 from makdharma/masterGravatar Jan Tattermusch2016-03-20
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Cleaned up installation/test requirement fetching
| * \ \ \ \ \ \ Merge github.com:grpc/grpc into backoff2Gravatar Craig Tiller2016-03-20
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Reintroduce flakiness flag for tests: lb_policies_test is inherently flaky and I don't have time to deflake this week
| | * \ \ \ \ \ \ Merge pull request #5819 from dgquintas/compression_levelsGravatar Jan Tattermusch2016-03-18
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Implemented compression level algorithms properly
| * | | | | | | | | Revert "Revert "Factor out backoff code into a separate library (to be ↵Gravatar Craig Tiller2016-03-18
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | re-used elsewhere)""
| * | | | | | | | Merge pull request #5814 from sreecha/grpc_fixitGravatar Jan Tattermusch2016-03-18
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | DocFixit: Add more troubleshooting details
| * | | | | | | | | Revert "Factor out backoff code into a separate library (to be re-used ↵Gravatar David G. Quintas2016-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elsewhere)"
| | | | | | | * | | replace uses of iteritems with six.iteritemsGravatar Leifur Halldor Asgeirsson2016-03-18
| | |_|_|_|_|/ / / | |/| | | | | | |
| | | | | | * | | make iterators python3-compatibleGravatar Leifur Halldor Asgeirsson2016-03-18
| | |_|_|_|/ / / | |/| | | | | |
| | | | | | | * py3 compatibility for test runner & loaderGravatar Leifur Halldor Asgeirsson2016-03-18
| | |_|_|_|_|/ | |/| | | | |
| | | | | * | specify metaclasses in a py3-compatible wayGravatar Leifur Halldor Asgeirsson2016-03-18
| | |_|_|/ / | |/| | | |
| | | * | | regenerated projectsGravatar David Garcia Quintas2016-03-18
| | | | | |
| | * | | | review commentsGravatar Sree Kuchibhotla2016-03-18
| | | | | |
| * | | | | Merge pull request #5786 from soltanmm/this-is-not-a-pipeGravatar Jan Tattermusch2016-03-18
| |\ \ \ \ \ | | |_|/ / / | |/| | | | Don't use a pipe for output capturing in Python's test runner
| | | | | * add unix_sockets_posix module to build system and fix compilation errorsGravatar ahedberg2016-03-18
| | | | | |
| | | * | | Add troubleshooting detailsGravatar Sree Kuchibhotla2016-03-17
| | | | | |
* | | | | | Merge github.com:grpc/grpc into filter-selectionGravatar Craig Tiller2016-03-17
|\| | | | |
| * | | | | Merge pull request #5791 from sreecha/grpc_fixitGravatar Jan Tattermusch2016-03-17
| |\ \ \ \ \ | | | |/ / / | | |/| | | DocFixit: Python README
| | | * | | Don't use a pipe for capturing in test runnerGravatar Masood Malekghassemi2016-03-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently Python can call arbitrarily deallocation code whenever its allocator is invoked, which can cause output from gRPC core to stderr, which can happen on the thread that is emptying the stderr pipe, thus causing the stderr pipe to deadlock on itself.
* | | | | | Merge github.com:grpc/grpc into filter-selectionGravatar Craig Tiller2016-03-17
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| | * | | | Merge github.com:grpc/grpc into backoff_libGravatar Craig Tiller2016-03-17
| | |\ \ \ \ | | |/ / / / | |/| | | |
| | | * | | DocFixit: Python READMEGravatar Sree Kuchibhotla2016-03-16
| | | | | |
| * | | | | Merge pull request #5767 from soltanmm/gil-not-nimble-gil-not-quickGravatar Jan Tattermusch2016-03-16
| |\ \ \ \ \ | | |_|/ / / | |/| | | | Don't hold the GIL when calling anything in core
| | | * | | Merge github.com:grpc/grpc into backoff_libGravatar Craig Tiller2016-03-16
| | | |\ \ \ | | |_|/ / / | |/| | | |
* | | | | | Merge github.com:grpc/grpc into filter-selectionGravatar Craig Tiller2016-03-16
|\| | | | |
| | * | | | Don't hold the GIL when calling anything in coreGravatar Masood Malekghassemi2016-03-15
| | | |_|/ | | |/| |
| * / | | Fix two ways tests can hangGravatar Masood Malekghassemi2016-03-15
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both have to do with the test runner's handling of the tests. With one it's the read thread somehow outliving the other threads (e.g. with ctrl-C). The other is due to a filled OS-level pipe's buffer causing a block while code is still holding the GIL in some gRPC core function. We can't empty the buffer from Python because the GIL is held, and the OS can't unblock because it's waiting for the buffer to get cleared: deadlock.
| * | | Merge pull request #5728 from jtattermusch/python_nuke_event_invocationGravatar Jan Tattermusch2016-03-13
| |\ \ \ | | | | | | | | | | Remove tests for EventInvocation API that is going to be removed
| | * | | fix copyrightGravatar Jan Tattermusch2016-03-11
| | | | |
| | * | | remove tests for EventInvocation API that is going to be removedGravatar Jan Tattermusch2016-03-11
| | | | |
| * | | | Remove unnecessary (potentially bad) safety-refsGravatar Masood Malekghassemi2016-03-11
| |/ / /
| | * / Build out backoff as a libraryGravatar Craig Tiller2016-03-11
| |/ /
| * | Merge pull request #5686 from soltanmm/gillsGravatar Masood Malekghassemi2016-03-09
| |\ \ | | | | | | | | Release GIL in queue __dealloc__
| * \ \ Merge pull request #5540 from soltanmm/upmergeGravatar Craig Tiller2016-03-09
| |\ \ \ | | | | | | | | | | Merge release-0_13 into master
| | | * | Release GIL in queue __dealloc__Gravatar Masood Malekghassemi2016-03-09
| | | | |
| * | | | Fix typoGravatar Masood Malekghassemi2016-03-09
| | |/ / | |/| |