Hopefully this is a relatively common problem. I'm working on a web service
using ZSI running on Apache. The client generates a request just fine, but
when the server tries to parse it, it fails while importing pyexpat.so.
Specifically what's happening (after I traced the call stack down) is that
x
OK, I'm back with another networking question. I'm trying to seend large
amounts of information over TCP (the length of data being given to send() is
on the order of 16000 characters in length). Unfortunately on the receiving
end, the packets appear to be truncated. So I wrote some code that
contin
The easiest way I've found is to just surround every socket-related thing
you do with try/except. the except statement is something like "except
socket.error, err_info". then the err_info variable will have a tuple
containing the BSD socket error number and the text of the error. You can
reference
at I just don't know
about.
-Walker
On 7/20/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
On Fri, 20 Jul 2007 08:27:13 -0700, Walker Lindley <[EMAIL PROTECTED]>
wrote:
>It doesn't interface well because the string you end up with often
doesn't
>fit into a sin
It doesn't interface well because the string you end up with often doesn't
fit into a single packet. Therefore you have to add a layer of protocol on
top of it that allows you to check to make sure you have the whole string
received before trying to unpickle it. This the case even if you use
socke
It is feasible to an extent since loading each builtin object type is
handled by a different function. However, as others have pointed out it
makes more sense to use a more robust protocol than try to patch pickle.
-Walker
On 7/20/07, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote:
Right, I could use Pyro, but I don't need RPC, I just wanted an easy way to
send objects across the network. I'm sure both Pyro and Yami can do that and
I may end up using one of them. For the initial version pickle will work
because we have the networking issues figured out with it, just not the
PROTECTED]> wrote:
On 7/18/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Tue, 17 Jul 2007 14:57:16 -0700, Walker Lindley <
[EMAIL PROTECTED]> wrote:
[...]
> The obvious thing you're doing wrong is using pickle over a network. ;)
>
> http://jcalderone.livejo
Thanks for all the help, I tried sending the length and then the string and
that appears to work, so I'll take a look at Pyro, too.
-Walker
On 7/18/07, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Tue, 17 Jul 2007 14
This is probably way more simple than you mean, but str() can turn an int
into a string and int() to go the opposite direction. Is that what you're
talking about or do you need something else?
-Walker Lindley
On 7/17/07, Dan Bishop <[EMAIL PROTECTED]> wrote:
On Jul 17, 7:40 am, m
ne can help based
on that description or if you need to see the source, please let me know
(it's GPL'd). Thank you so much for any help.
-Walker Lindley
--
This e-mail is licensed under the Creative Commons
Attribution-NoDerivs 2.5License. To view a copy of this license, visit
http://creat
11 matches
Mail list logo