Florian Bruhin
822623f2ed
Finally update copyrights...
2017-05-09 21:37:03 +02:00
Florian Bruhin
a55d1b1ee8
Save old socket for IPC
...
At least on Windows with Qt 5.8, we get readyRead notifications *after*
disconnect...
2017-03-31 13:03:17 +02:00
Florian Bruhin
99c7301fb4
Update IPC atime once all 3h
...
See #996
2017-03-16 09:24:49 +01:00
Florian Bruhin
8d9030ec47
Use debug log for on_timeout message
2017-03-13 07:01:21 +01:00
Florian Bruhin
e81edc8224
ipc: Delay deleting of QLocalSocket on disconnect
...
Fixes #2396 .
See https://bugreports.qt.io/browse/QTBUG-59297 and
https://github.com/qutebrowser/qutebrowser/issues/2321#issuecomment-284024213
2017-03-04 18:11:34 +01:00
Florian Bruhin
de50f30b9b
Replace all GitHub links
2017-02-05 00:13:11 +01:00
Florian Bruhin
df9bee33f4
Fix 100% coverage in misc.ipc
2016-11-08 21:56:54 +01:00
Florian Bruhin
57ee378ec5
Ignore None-socket in ipc.on_timeout
2016-11-08 12:17:44 +01:00
Florian Bruhin
caab826e8a
Use repr() for IPC logging messages
2016-07-28 07:14:54 +02:00
Jan Verbeek
bbc46d28ff
Use lists instead of tuples for comparing
...
Per one of the diff comments on #1597 :
> I used to use a tuple for constant things, but nowadays I'd actually
> prefer a list as a tuple is something more heterogeneous (i.e. it
> makes sense to have a `(x, y)` point as a tuple, but a list of points
> would be a list).
> At some point I should probably change it to a list everywhere 😉
2016-07-12 22:05:32 +02:00
Florian Bruhin
9880f5bd5f
Handle FileNotFoundError in ipc.listen
...
Fixes #1530
2016-06-07 16:48:43 +02:00
Florian Bruhin
11363b9533
Fix some invalid "# pragma: no cover" comments
...
We accidentally used "# pragma: no coverage" instead.
2016-05-24 15:40:18 +02:00
Florian Bruhin
2a343cb3a1
Various code style improvements
2016-04-27 20:25:27 +02:00
Florian Bruhin
fd20b46b33
Split IPCServer.on_ready_read into two methods
2016-04-26 23:14:03 +02:00
Florian Bruhin
3c8598f691
Work around PyQt 5.6 segfault when using IPC
...
PyQt 5.6 seems to segfault when emitting None with a signal which is
declared as emitting a string:
https://www.riverbankcomputing.com/pipermail/pyqt/2016-April/037375.html
We now avoid this by using an empty string explicitly instead of None.
2016-04-26 22:30:27 +02:00
Florian Bruhin
37b5f49c85
Fix types in @pyqtSlot decorations
...
PyQt 5.5 enforces correct type signatures, and there were a lot of
places where we were simply wrong, causing qutebrowser to not start at
all...
2016-04-26 20:34:38 +02:00
Florian Bruhin
364d069e74
Stop IPC timeout timer while executing command.
...
This hopefully helps with #1183 .
2016-01-08 13:48:19 +01:00
Florian Bruhin
d84b15d35c
ipc: Add missing 0x prefix for logged socket IDs.
2016-01-08 13:09:49 +01:00
Florian Bruhin
ff2024a565
Add socket IDs to ipc debug messages.
2016-01-08 12:02:36 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
4451165a27
Change IPC warnings to debug.
...
This seems to show up on Ubuntu Trusty (with older Qt) as well...
2015-11-01 23:11:42 +01:00
Florian Bruhin
c2ea2aa6d7
Remove unused import.
2015-10-07 22:05:22 +02:00
Florian Bruhin
7db1f65425
ipc: Avoid using QLocalServer.setSocketOptions.
...
This causes problems with AddressInUseError being swallowed.
Fixes #997 .
2015-10-07 21:52:09 +02:00
Jonas Schürmann
afc166a13e
Coding style fixes #1002
2015-10-06 22:59:49 +02:00
Jonas Schürmann
45c9768c16
Added --target command line argument #922
...
This argument is used to override the new-instance-open-target config
option.
2015-10-05 21:15:52 +02:00
Florian Bruhin
d229e90724
Fix some splelling mistakes.
2015-10-04 15:41:42 +02:00
Florian Bruhin
b42b12b7a5
Fix ipc.py coverage.
2015-10-02 08:17:50 +02:00
Florian Bruhin
454b2348a8
ipc: Actually use CONNECT_TIMEOUT.
2015-10-02 08:11:37 +02:00
Florian Bruhin
ea663f9975
IPC: Handle socket timeout correctly.
...
Hopefully fixes #975 .
2015-10-02 08:11:26 +02:00
Florian Bruhin
8e52e5f2fc
Don't use deprecated logging calls.
2015-10-01 21:39:42 +02:00
Florian Bruhin
9ab14c0384
Fix IPC coverage.
2015-09-16 07:16:07 +02:00
Florian Bruhin
73cb981ebb
Add some more IPC logging.
2015-09-15 23:05:50 +02:00
Florian Bruhin
ff24ba5437
ipc: Fix atime timer interval.
2015-09-15 22:59:53 +02:00
Florian Bruhin
3bdfa3001c
ipc: Always use standarddir.runtime().
2015-09-15 22:31:37 +02:00
Florian Bruhin
087e9a4266
Fix ipc on Windows, take 2.
2015-09-10 08:04:02 +02:00
Florian Bruhin
87ccc31cce
ipc: Add some more tests for _atime_timer.
2015-09-10 08:02:19 +02:00
Florian Bruhin
1dba5b0bbd
ipc: Fix _atime_timer shutdown on Windows.
2015-09-10 07:52:26 +02:00
Florian Bruhin
d2bce5dca9
ipc tests: Try to disconnect _atime_timer.
...
For some reason this fails during teardown on OS X!?
File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/misc/ipc.py", line 357, in update_atime
path = self._server.fullServerName()
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/mock.py", line 895, in __call__
_mock_self._mock_check_sig(*args, **kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/mock.py", line 107, in checksig
sig.bind(*args, **kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/inspect.py", line 2652, in bind
return args[0]._bind(args[1:], kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/inspect.py", line 2537, in _bind
param = next(parameters)
File "/Users/buildbot/buildbot/slave/osx/build/.tox/py34/bin/../lib/python3.4/_collections_abc.py", line 512, in __iter__
for key in self._mapping:
File "/Users/buildbot/buildbot/slave/osx/build/.tox/py34/lib/python3.4/collections/__init__.py", line 91, in __iter__
curr = root.next
2015-09-10 07:49:45 +02:00
Florian Bruhin
e6cf76e40c
Fix coverage and lint.
2015-09-10 07:44:45 +02:00
Florian Bruhin
58073fd768
ipc: Update the atime of the socket all 6h.
...
See #888 .
2015-09-10 07:38:11 +02:00
Florian Bruhin
2ca8070e7a
Add workaround for OS X issue.
2015-09-09 20:48:23 +02:00
Florian Bruhin
f7d3070c34
ipc: Fix start when a stale legacy server exists.
2015-09-09 19:39:01 +02:00
Florian Bruhin
b135569d5c
ipc: Add workaround for NameError w/ SocketOptions.
2015-09-09 19:31:52 +02:00
Florian Bruhin
69e735c42e
ipc: Add username to hash instead.
2015-09-09 19:31:52 +02:00
Florian Bruhin
4daa7e6979
Don't add username to FIFO name on Linux.
...
The runtime directory already has a qutebrowser subdir.
2015-09-09 19:31:52 +02:00
Florian Bruhin
3573b57130
Set socket permissions correctly.
2015-09-09 19:31:52 +02:00
Florian Bruhin
78cb0eaf85
More work on #888 (new IPC path).
...
First trying the legacy path and then using the new one works fine now, but the
permissions are still wrong.
2015-09-09 19:31:52 +02:00
Florian Bruhin
44b1ca5c2f
Fix comment.
2015-09-09 19:31:52 +02:00
Florian Bruhin
d18c33987d
Quick pep8 fix.
...
This is already fixed in the new-ipc-path branch, but let's at least get this
straight in master.
2015-09-09 08:06:56 +02:00
Florian Bruhin
6a0994038e
Start working on #888 (new IPC path).
2015-09-06 19:50:22 +02:00