Skip to content

Conversation

ekoby
Copy link
Member

@ekoby ekoby commented Sep 13, 2024

this only implements support for receiving multipart messages

issue for sending multipart is #623

@@ -153,14 +153,23 @@ func (ec *MsgChannel) WriteTraced(data []byte, msgUUID []byte, hdrs map[int32][]
copyBuf := make([]byte, len(data))
copy(copyBuf, data)

msg := NewDataMsg(ec.id, ec.msgIdSeq.Next(), copyBuf)
seq := ec.msgIdSeq.Next()
msg := NewDataMsg(ec.id, seq, copyBuf)
if msgUUID != nil {
msg.Headers[UUIDHeader] = msgUUID
}

for k, v := range hdrs {
msg.Headers[k] = v
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we send this back on the connect reply instead?

Copy link
Member Author

@ekoby ekoby Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connect reply goes to ER/controller and not to the peer SDK

@ekoby ekoby requested a review from plorenz September 13, 2024 18:42
implement support for receiving multipart edge messages
update version

[fixes #625]
@ekoby ekoby merged commit dd7f9d8 into main Sep 16, 2024
4 checks passed
@ekoby ekoby deleted the multipart-receive branch September 16, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants