fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
245 stars 141 forks source link

Multiple diameter payloads #72

Closed aaronchar closed 7 years ago

aaronchar commented 7 years ago

I am just wondering if there is any helpers do deal with multiple diameter payloads within a single TCP packet?

Currently i have some that contain up to 4 distinct diameter messages per payload

sorry if i have missed something obvious

fiorix commented 7 years ago

This shouldn't matter. The way we read packets off the wire does not look at the TCP level. Instead, we use the header length to read N bytes off the wire and consider that a single message. If there's more data on the same packet, our parser would find another header length and keep going.

In other words: this should work out of the box. If it doesn't, let me know, and we can re-open this.