search for: end_headers

Displaying 20 results from an estimated 62 matches for "end_headers".

2018 Oct 15
3
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...ontent-length the client cannot do much but wait :-) > > + def do_OPTIONS(self): > > > > + self.send_response(200) > > > + self.send_header("Content-type", "application/json; > > > charset=UTF-8") > > > + self.end_headers() > > > + # Advertize only zero support. > > > + self.wfile.write(b'''{ "features": [ "zero" ] }''') > > > + > > > + # eg. zero request. Just ignore it. > > > + def do_PATCH(self): > &gt...
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...nd also hides bugs in this code. Should be fixed by adding: protocol_version = "HTTP/1.1" > + def do_OPTIONS(self): + self.send_response(200) > + self.send_header("Content-type", "application/json; > charset=UTF-8") > + self.end_headers() > + # Advertize only zero support. > + self.wfile.write(b'''{ "features": [ "zero" ] }''') > + > + # eg. zero request. Just ignore it. > + def do_PATCH(self): > This must read content-length bytes from self.rfile....
2018 Nov 20
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...> class RequestHandler(BaseHTTPRequestHandler): > + protocol_version = 'HTTP/1.1' > + > def do_OPTIONS(self): > - self.send_response(200) > - self.send_header("Content-type", "application/json; charset=UTF-8") > - self.end_headers() > + self.discard_request() > + > # Advertize only zero support. > - self.wfile.write(b'''{ "features": [ "zero" ] }''') > + content = b'''{ "features": [ "zero" ] }''...
2018 Oct 15
0
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...TP/1.1" I tried the attached patch, but for some reason it just hangs. > > + def do_OPTIONS(self): > > + self.send_response(200) > > + self.send_header("Content-type", "application/json; > > charset=UTF-8") > > + self.end_headers() > > + # Advertize only zero support. > > + self.wfile.write(b'''{ "features": [ "zero" ] }''') > > + > > + # eg. zero request. Just ignore it. > > + def do_PATCH(self): > > > > This must re...
2011 Nov 15
3
Sweave and accented letters
I often use Lyx/Sweave and I typically write in english. Today I had to write a document in Italian and, as many of you know, many italian popular words use ?, ?, ?. ?, etc. I discovered that if I type in Italian (that is there is at least one letter with accent) with the Sweave module selected lye is not able to correctly compile the document. I tried to change the input encoding, but it
2012 Mar 16
1
[PATCH] virtio-spec: split virtio-net device status filed into ro and rw byte
This patch splits the device status field of virtio-net into ro and rw byte. This would simplify the implementation of both host and guest and make the layout more clean. As VIRTIO_NET_S_ANNOUNCE is a rw bit, it was moved to bit 8 (0x100). btw. looks like there's no implementation that depends on VIRTIO_NET_S_ANNOUNCE, so the move is safe. Signed-off-by: Jason Wang <jasowang at
2012 Mar 16
1
[PATCH] virtio-spec: split virtio-net device status filed into ro and rw byte
This patch splits the device status field of virtio-net into ro and rw byte. This would simplify the implementation of both host and guest and make the layout more clean. As VIRTIO_NET_S_ANNOUNCE is a rw bit, it was moved to bit 8 (0x100). btw. looks like there's no implementation that depends on VIRTIO_NET_S_ANNOUNCE, so the move is safe. Signed-off-by: Jason Wang <jasowang at
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...port number in range [50000,59999] +imageio_port = random.randint(50000,60000) + +class RequestHandler(BaseHTTPRequestHandler): + def do_OPTIONS(self): + self.send_response(200) + self.send_header("Content-type", "application/json; charset=UTF-8") + self.end_headers() + # Advertize only zero support. + self.wfile.write(b'''{ "features": [ "zero" ] }''') + + # eg. zero request. Just ignore it. + def do_PATCH(self): + self.send_response(200) + self.end_headers() + + # Flush request...
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html v2: - Rewrote patch 2 from scratch so it incorporates Nir's suggestions. - Add fake module to EXTRA_DIST. - Retested. Unfortunately I am no longer able to test the ordinary conversion path because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2018 Sep 19
4
[PATCH 0/3] v2v: -o rhv-upload: Add a test.
This adds a test of -o rhv-upload. Obviously for an upstream test we cannot require a working oVirt server. This test works by faking the ovirtsdk4 Python module, setting PYTHONPATH so that the fake module is picked up instead of the real module (if installed). However it's more complex than that because the nbdkit plugin also expects to talk to a working imageio HTTPS server. Therefore
2018 Nov 20
0
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...hv-upload-module/ovirtsdk4/__init__.py > index 84b9d56aa..8d1058d67 100644 > --- a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py > +++ b/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py > @@ -146,7 +146,7 @@ class RequestHandler(BaseHTTPRequestHandler): > self.end_headers() > > def discard_request(self): > - length = self.headers['Content-Length'] > + length = self.headers.get('Content-Length') > if length: > length = int(length) > content = self.rfile.read(length) > --...
2009 Nov 09
1
[PATCH] virtio-spec: correct wording
virtio header resizes in the first I/O region, not in PCI configuration space as the spec v0.8.1 implied. Correct this. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- I started looking at virtio spec with the view to updating it with new features and possibly documenting more devices. I have used latex in the past but not lyx. As a start, here's a patch to correct a nit in
2009 Nov 09
1
[PATCH] virtio-spec: correct wording
virtio header resizes in the first I/O region, not in PCI configuration space as the spec v0.8.1 implied. Correct this. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- I started looking at virtio spec with the view to updating it with new features and possibly documenting more devices. I have used latex in the past but not lyx. As a start, here's a patch to correct a nit in
2012 Dec 07
3
[PATCHv6] virtio-spec: virtio network device multiqueue support
Add multiqueue support to virtio network device. Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new configuration field max_virtqueue_pairs to detect supported number of virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program packet steering for unidirectional protocols. --- Changes in v6: - rename RFS -> multiqueue to avoid confusion with RFS in linux mention
2012 Dec 07
3
[PATCHv6] virtio-spec: virtio network device multiqueue support
Add multiqueue support to virtio network device. Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new configuration field max_virtqueue_pairs to detect supported number of virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program packet steering for unidirectional protocols. --- Changes in v6: - rename RFS -> multiqueue to avoid confusion with RFS in linux mention
2010 Feb 10
1
[PATCH] virtio-spec: document indirect descriptors
Add documentation for indirect descriptors Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- virtio-spec.lyx | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 114 insertions(+), 4 deletions(-) diff --git a/virtio-spec.lyx b/virtio-spec.lyx index 8062e11..b5a8fbd 100644 --- a/virtio-spec.lyx +++ b/virtio-spec.lyx @@ -1,4 +1,4 @@ -#LyX 1.6.4 created
2010 Feb 10
1
[PATCH] virtio-spec: document indirect descriptors
Add documentation for indirect descriptors Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- virtio-spec.lyx | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 114 insertions(+), 4 deletions(-) diff --git a/virtio-spec.lyx b/virtio-spec.lyx index 8062e11..b5a8fbd 100644 --- a/virtio-spec.lyx +++ b/virtio-spec.lyx @@ -1,4 +1,4 @@ -#LyX 1.6.4 created
2007 Oct 17
3
Adding a "boot from local hard disk" option to syslinux menu, booted from USB
Hi all, I use XP on my laptop PC, with 30 GB HD (single partition), and a 3.5" hard drive (not a stick), accessed through a USB encasing, partitioned as five logical drives. I have successfully set up syslinux to boot several Ubuntu versions from the primary USB hard drive partition, and no problems there. The problem is, I would like to have an entry in the menu, like "Boot from
2010 Oct 05
1
[PATCH] virtio-spec trivial fixes
Hello Rusty, A few trivial fixes on top of virtio-spec-0.8.9 (patch -p0): - grammatical errors - mark '-' in 'avail->flags' as non-breakable hyphen - add a footnote for console device to indicate queues 2 onwards are avl. if a feature was negotiated Amit --- virtio-spec-0.8.9.lyx 2010-10-05 17:26:11.318836266 +0530 +++ virtio-spec-0.8.9-mod.lyx 2010-10-05
2010 Oct 05
1
[PATCH] virtio-spec trivial fixes
Hello Rusty, A few trivial fixes on top of virtio-spec-0.8.9 (patch -p0): - grammatical errors - mark '-' in 'avail->flags' as non-breakable hyphen - add a footnote for console device to indicate queues 2 onwards are avl. if a feature was negotiated Amit --- virtio-spec-0.8.9.lyx 2010-10-05 17:26:11.318836266 +0530 +++ virtio-spec-0.8.9-mod.lyx 2010-10-05