[Mono-bugs] [Bug 510642] HttpWebRequest: No ProtoviolationException when writing beyond specified content-length

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 21 04:36:20 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=510642

User gert.driesen at pandora.be added comment
http://bugzilla.novell.com/show_bug.cgi?id=510642#c3


Gert Driesen <gert.driesen at pandora.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #299401|0                           |1
        is obsolete|                            |




--- Comment #3 from Gert Driesen <gert.driesen at pandora.be>  2009-06-21 02:36:15 MDT ---
Created an attachment (id=299408)
 --> (http://bugzilla.novell.com/attachment.cgi?id=299408)
Fix + Unit test

In this new patch we now keep the number of bytes written, and check against
that. I now only perform the write overflow check when not using chunked
transfer encoding.

I also removed the "max_buffer_size" field, let me know if you think we should
keep it.

The unit tests were improved to cover these changes.

I had to comment out part of these improved tests on mono, as it lead to a NRE
(writeBuffer being null on the second call to Write*). This is probably because
the SocketResponder I use does not deal with chunked transfer encoding at all,
but nonetheless it does not fail on MS.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list