[armedbear-devel] [Patch]: Which allows drakma to run.

Erik Huelsmann ehuels at gmail.com
Sat Aug 11 12:11:58 UTC 2012


Hi Stas,

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.

Committed as r14070.

Bye,

Erik.

On Sun, Aug 5, 2012 at 10:44 AM, Stas Boukarev <stassats at gmail.com> wrote:

> Drakma uses its own type OCTET as element-type for streams
> it's defined as
> (deftype octet () '(unsigned-byte 8))
>
> But read-byte and friends don't recognize type because it's not expanded
> before-hand.
> So, what I did is to apply EXPAND-DEFTYPE beforehand. Perhaps
> UPGRADED-ELEMENT-TYPE would've been better, or something entirely
> different in an another place or more places. But it allows me to use
> drakma successfully.
>
>
> So, one can do
> (push :drakma-no-ssl *features*) ;; I can't load CFFI needed for cl+ssl
>
> (asdf:load-system :drakma)
>
> (drakma:http-request "http://bing.com") => fancy results
>
>
> On another note, I couldn't get usocket to work on Debian until I
> discovered that I need to either do
> echo 0 > /proc/sys/net/ipv6/bindv6only
> or launch java with -Djava.net.preferIPv4Stack=true
>
> Otherwise usocket returns a very cryptic error
> SOCKET-TYPE-NOT-SUPPORTED-ERROR which is in reality
> "java.net.SocketException: Network is unreachable".
>
> --
> With best regards, Stas.
>
> _______________________________________________
> armedbear-devel mailing list
> armedbear-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20120811/7aaeb340/attachment.html>


More information about the armedbear-devel mailing list