URL:
<http://savannah.cern.ch/bugs/?88947>
Summary: Incorrect write buffer length in monitoring packets
Project: XROOTD
Submitted by: jbenes
Submitted on: 2011-11-16 10:02
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Fixed by commit(s):
_______________________________________________________
Details:
Working with xrootd-3.1.0, I've noticed that the buffer length on write trace
events in monitor streams is endian-swapped before the negation. This can
cause writes to be interpreted as reads by the monitoring host.
The attached patch against the 3.1.0 tarball fixes the issue for me.
Trace entries from transfer of a 10MB file:
*Actual*
00-00-00-00-00-00-00-00-FF-FF-80-00-00-00-00-02
READ/WRITE -32768 bytes at offset 0 (dictid 2)
00-00-00-00-00-80-00-00-7F-69-E8-00-00-00-00-02
READ/WRITE 2137647104 bytes at offset 8388608 (dictid 2)
*Expected/Patched*
00-00-00-00-00-00-00-00-FF-80-00-00-00-00-00-02
READ/WRITE -8388608 bytes at offset 0 (dictid 2)
00-00-00-00-00-80-00-00-FF-E7-69-80-00-00-00-02
READ/WRITE -1611392 bytes at offset 8388608 (dictid 2)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: 2011-11-16 10:02 Name: xrd-bad-write-offset.patch Size: 489B By:
jbenes
<http://savannah.cern.ch/bugs/download.php?file_id=22413>
_______________________________________________________
Reply to this item at:
<http://savannah.cern.ch/bugs/?88947>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/
|