mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 04:32:46 +08:00
Disable HTTP proxy for gRPC connections (#6744)
* disable http proxy for grpc * add test
This commit is contained in:
@@ -7,6 +7,7 @@ import collections
|
||||
import io
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import string
|
||||
import sys
|
||||
@@ -24,6 +25,19 @@ import ray.test_utils
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# https://github.com/ray-project/ray/issues/6662
|
||||
def test_ignore_http_proxy(shutdown_only):
|
||||
ray.init(num_cpus=1)
|
||||
os.environ["http_proxy"] = "http://example.com"
|
||||
os.environ["https_proxy"] = "http://example.com"
|
||||
|
||||
@ray.remote
|
||||
def f():
|
||||
return 1
|
||||
|
||||
assert ray.get(f.remote()) == 1
|
||||
|
||||
|
||||
def test_simple_serialization(ray_start_regular):
|
||||
primitive_objects = [
|
||||
# Various primitive types.
|
||||
|
||||
Reference in New Issue
Block a user