Hi Stas,<div><br></div><div>Thanks for the patch. I think your solution is best, because I'd expect people to expect STREAM-ELEMENT-TYPE to return what they set it to.</div><div><br></div><div>Committed as r14070.</div>
<div><br></div><div>Bye,</div><div><br></div><div>Erik.<br><br><div class="gmail_quote">On Sun, Aug 5, 2012 at 10:44 AM, Stas Boukarev <span dir="ltr"><<a href="mailto:stassats@gmail.com" target="_blank">stassats@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Drakma uses its own type OCTET as element-type for streams<br>
it's defined as<br>
(deftype octet () '(unsigned-byte 8))<br>
<br>
But read-byte and friends don't recognize type because it's not expanded<br>
before-hand.<br>
So, what I did is to apply EXPAND-DEFTYPE beforehand. Perhaps<br>
UPGRADED-ELEMENT-TYPE would've been better, or something entirely<br>
different in an another place or more places. But it allows me to use<br>
drakma successfully.<br>
<br><br>
So, one can do<br>
(push :drakma-no-ssl *features*) ;; I can't load CFFI needed for cl+ssl<br>
<br>
(asdf:load-system :drakma)<br>
<br>
(drakma:http-request "<a href="http://bing.com" target="_blank">http://bing.com</a>") => fancy results<br>
<br>
<br>
On another note, I couldn't get usocket to work on Debian until I<br>
discovered that I need to either do<br>
echo 0 > /proc/sys/net/ipv6/bindv6only<br>
or launch java with -Djava.net.preferIPv4Stack=true<br>
<br>
Otherwise usocket returns a very cryptic error<br>
SOCKET-TYPE-NOT-SUPPORTED-ERROR which is in reality<br>
"java.net.SocketException: Network is unreachable".<br>
<br>
--<br>
With best regards, Stas.<br>
<br>_______________________________________________<br>
armedbear-devel mailing list<br>
<a href="mailto:armedbear-devel@common-lisp.net">armedbear-devel@common-lisp.net</a><br>
<a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel</a><br>
<br></blockquote></div><br></div>