Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Tk POE SSL Win32 help

by paulbort (Hermit)
on Jul 29, 2003 at 20:09 UTC ( [id://278961]=note: print w/replies, xml ) Need Help??


in reply to Tk POE SSL Win32 help

I suspect the problem is somewhere in the layer between your Perl code and Win32. This usually happens when the program calls for a system service in such a way that either (a) the system won't send it messages until that call comes back; or (b) the program can't catch messages because it's busy waiting for the API call to return. The solution is to use either a separate process (Then you have to figure out how to pass the connection around) or a separate thread (not recommended for production, IIRC.) I'd try the thread first. If you wanted to be clever, the thread could put up a progress dialog separate from the main window...

--
Spring: Forces, Coiled Again!

Replies are listed 'Best First'.
Re: Re: Tk POE SSL Win32 help
by JamesNC (Chaplain) on Jul 29, 2003 at 20:40 UTC
    Thank you for your response, however Tk is not thread safe, and really, POE is handling that chore pretty well. If you notice the get_input session may not seem to do anything and it doesn't as it is shown, but if you put some work in there ( like a counter, or open another socket ) you would see that POE is working as advertise and Rocco's SSL client is not blocking. SSL is just slow to fire up for some reason, but after it makes the first connection, things run fairly smoothly. Like I said, this may be sort of petty and it is a performace issue, versus my initial problem, of how do you even do non-blocking ssl :-) I have no idea if this is even the correct approach since, I just popped the hood up and started munging about until it worked. No books on POE/Tk or even POE yet. I am beginning to think POE is neater than sliced bread though a lot of stuff like getting it to work with PerlApp border on the obscure.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://278961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found