crossbario / crossbario/autobahn-python

Component: correctly process all transport options

Open
#1,225 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-discussion
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

Connection failed: ValueError: Unknown rawsocket transport option: max_message_size=1048576

https://github.com/crossbario/autobahn-python/blob/f702bd96b927cfa36acb0e0a2aa23e7b7f2b0dc5/autobahn/twisted/component.py#L110

        {
            "id": "xbrmm1",
            "type": "xbrmm",
            "options": {
                "env": {
                    "inherit": true
                }
            },
            "makers": [
                {
                    "id": "maker1",
                    "store": {
                        "type": "cfxdb",
                        "path": "../.xbrdb-transactions",
                        "maxsize": 1073741824
                    },
                    "blockchain": {
                        "type": "ethereum",
                        "gateway": {
                            "type": "user",
                            "http": "http://localhost:1545"
                        }
                    },
                    "connection": {
                        "realm": "realm1",
                        "transport": {
                            "type": "rawsocket",
                            "endpoint": {
                                "type": "unix",
                                "path": "xbrmm.sock"
                            },
                            "serializer": "cbor",
                            "options": {
                                "max_message_size": 1048576
                            }
                        }
                    }
                }
            ]
        }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at autobahn/twisted/component.py around line 110 and inspect how the transport configuration passes the rawsocket options shown in the issue. Reproduce the connection with max_message_size set, then verify that the transport accepts and processes the configured option without raising the unknown-option error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.