fix: remove legacy rdma header descriptors

These headers are not used by the cuda cuObject client/server
interactions, so are not needed in this server implementation.
This commit is contained in:
Ben McClelland
2026-09-20 12:15:43 -07:00
parent d03ac3c299
commit 9c98084309
7 changed files with 34 additions and 120 deletions
+1 -3
View File
@@ -121,9 +121,7 @@ func (cs *CuServer) PutObject(ctx context.Context, po s3response.PutObjectInput)
// RDMA-accelerated path
size, ok := cumiddleware.GetRDMASize(ctx)
if !ok || size <= 0 {
// Size comes from the legacy 3-header scheme or, for the combined
// token scheme, the standard Content-Length header — neither was usable.
return s3response.PutObjectOutput{}, fmt.Errorf("cuserver: RDMA PUT requires a positive size via the %s header or a standard Content-Length header", cumiddleware.HeaderRDMASize)
return s3response.PutObjectOutput{}, fmt.Errorf("cuserver: RDMA PUT requires a positive Content-Length or RDMA token buffer size")
}
if size > int64(rdma.MaxTransferSize) {
return s3response.PutObjectOutput{}, fmt.Errorf("cuserver: object size %d exceeds RDMA max %d", size, rdma.MaxTransferSize)