{"action":"closed","issue":{"url":"https://api.github.com/repos/pika/pika/issues/1082","repository_url":"https://api.github.com/repos/pika/pika","labels_url":"https://api.github.com/repos/pika/pika/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/pika/pika/issues/1082/comments","events_url":"https://api.github.com/repos/pika/pika/issues/1082/events","html_url":"https://github.com/pika/pika/issues/1082","id":334440297,"node_id":"MDU6SXNzdWUzMzQ0NDAyOTc=","number":1082,"title":"python3 nonblocking socket","user":{"login":"tazgithubmaster","id":34034541,"node_id":"MDQ6VXNlcjM0MDM0NTQx","avatar_url":"https://avatars0.githubusercontent.com/u/34034541?v=4","gravatar_id":"","url":"https://api.github.com/users/tazgithubmaster","html_url":"https://github.com/tazgithubmaster","followers_url":"https://api.github.com/users/tazgithubmaster/followers","following_url":"https://api.github.com/users/tazgithubmaster/following{/other_user}","gists_url":"https://api.github.com/users/tazgithubmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/tazgithubmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tazgithubmaster/subscriptions","organizations_url":"https://api.github.com/users/tazgithubmaster/orgs","repos_url":"https://api.github.com/users/tazgithubmaster/repos","events_url":"https://api.github.com/users/tazgithubmaster/events{/privacy}","received_events_url":"https://api.github.com/users/tazgithubmaster/received_events","type":"User","site_admin":false},"labels":[{"id":118682,"node_id":"MDU6TGFiZWwxMTg2ODI=","url":"https://api.github.com/repos/pika/pika/labels/Pending%20Investigation","name":"Pending Investigation","color":"e102d8","default":false}],"state":"closed","locked":false,"assignee":{"login":"lukebakken","id":514926,"node_id":"MDQ6VXNlcjUxNDkyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/514926?v=4","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false},"assignees":[{"login":"lukebakken","id":514926,"node_id":"MDQ6VXNlcjUxNDkyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/514926?v=4","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pika/pika/milestones/8","html_url":"https://github.com/pika/pika/milestone/8","labels_url":"https://api.github.com/repos/pika/pika/milestones/8/labels","id":2664000,"node_id":"MDk6TWlsZXN0b25lMjY2NDAwMA==","number":8,"title":"1.0.0","description":"","creator":{"login":"lukebakken","id":514926,"node_id":"MDQ6VXNlcjUxNDkyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/514926?v=4","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":86,"state":"open","created_at":"2017-07-26T21:40:33Z","updated_at":"2018-06-21T16:03:59Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2018-06-21T10:52:38Z","updated_at":"2018-06-21T16:04:00Z","closed_at":"2018-06-21T16:03:59Z","author_association":"NONE","body":"I'm on debian streatch with pika 0.11 and python 3.5.3. I wrote a simple blocking publisher to send larger messages (max 10MB) over the wire. At it's core it breaks down to:\r\n<pre>\r\nwith open(args.inputfile,\"rb\") as fd:\r\n    body = fd.read()\r\n    con=pika.BlockingConnection(parameters)\r\n    ch=con.channel()\r\n    ch.basic_publish(exchange=args.exchange,\r\n                     routing_key=args.routingkey,\r\n                     properties=props,\r\n                     body=body)\r\n</pre>\r\nI was able to send small messages (about 20KB in size) but as soon as I tried to send larger Messages i got\r\n\r\n``\r\npika.exceptions.ChannelClosed: Already closed: <Channel number=1 CLOSED conn=<SelectConnection CLOSED socket=None params=<ConnectionParameters host=amqp.taz.de port=5673 virtual_host=spielwiese ssl=True>>>\r\n``\r\n\r\ni could figure out a workaround by monkeypatching \r\n\r\n``pika.adapters.base_connection.BaseConnection._adapter_connect``\r\n\r\nand setting:\r\n<pre>\r\n        if not error:\r\n            # Make the socket non-blocking after the connect\r\n            self.socket.setblocking(True)\r\n</pre>\r\n\r\nI had no issues with the same code when running python2.7. "}}
{"actor":{"display_login":"lukebakken"}}