Uzbl

Tasklist

FS#302 - uzbl-core freeze when socket it's open

Attached to Project: Uzbl
Opened by Eduardo Gotti (eduardogotti) - 2012-08-04 10:47:08 AM
Last edited by Brendan Taylor (bct) - 2012-11-25 10:20:45 PM
Task Type Bug Report
Category uzbl-core
Status Researching
Assigned To No-one
Operating System Linux
Severity Medium
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

uzbl-core --version
Commit: 228bc38

Linux 3.4.7-1 i686 [ArchLinux]

When using sockets with uzbl, uzbl stay unresponsive until I close the socket.
example

Python code:

import socket
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect("/tmp/uzbl_socket_13570")
s.send("uri google.com")
then it stay unresponsive (screenshoot http://imgur.com/vcyka) util I do this
s.close()
then back to normality.
This task depends upon

Comment by Brendan Taylor (bct) - 2012-11-25 10:23:35 PM
It's waiting for a "\n" to indicate the end of the command. If you change that line to s.send("uri google.com\n") you'll get the expected behaviour.

Still, I don't think it should block. Looking into it.
Comment by Noel Maersk (veox) - 2013-02-17 09:33:31 AM
In Python 3, this has to be s.send(b"uri google.com")

Otherwise yes, can reproduce with git built on 2013 02 16.

If "\n" is then sent, uzbl does go to google.com and updates the window once. However, it stays unresponsive.
Comment by Noel Maersk (veox) - 2013-02-17 09:43:59 AM
After s.connect(), one action can still be performed from the user interface (e.g. browse away), but it then becomes unresponsive until the socket is closed. Wow, socket focus stolen?

Loading...