Source Activity

Syndicate content
Haiku's main repository
Updated: 25 min 6 sec ago

PluginManager: Move reference counting in the MediaPlugin

Mon, 2016-10-31 22:34
* Ideally we should support this feature by default to allow future improvements to the plugins management. * Fixes the major memory corruption that lead to various crashes on exit in MediaPlayer. * Ideally we should support this feature by default to allow future improvements to the plugins management. * Fixes the major memory corruption that lead to various crashes on exit in MediaPlayer.
Categories: Development

URL Disaptching/Async listeners: forward debug messages

Mon, 2016-10-31 21:14
This makes it possible for the Asynchronous listener to get the messages. It can then process them in a more fancy way. The default implementation will still log the messages to the console (if debug is enabled), but it will do so from the Async listener for asynchronous requests now. This means they will probably be logged from the same thread, and show up in a more readable way. This also makes it possible to listen to several requests and log them in a nice way (in a status window or whatever). This makes it possible for the Asynchronous listener to get the messages. It can then process them in a more fancy way. The default implementation will still log the messages to the console (if debug is enabled), but it will do so from the Async listener for asynchronous requests now. This means they will probably be logged from the same thread, and show up in a more readable way. This also makes it possible to listen to several requests and log them in a nice way (in a status window or whatever).
Categories: Development

SecureSocket: add code to trace SSL events.

Mon, 2016-10-31 21:12
Under a #define TRACE_SSL, should you need it. Also load error strings when initializing the SSL context, so we get human readable errors from SSL (also in the ser reported ones). Under a #define TRACE_SSL, should you need it. Also load error strings when initializing the SSL context, so we get human readable errors from SSL (also in the ser reported ones).
Categories: Development

HttpRequest: use data from the input buffer first

Mon, 2016-10-31 21:00
The HttpRequest protocol loop is designed using an input buffer storing data from the socket. At each loop, we try to parse some of the data, and then read more from the socket. However, in some cases (in particular with chunks, which we parse only one at a time in a loop iteration), we may not use all the data from the buffer. Eventually, we will be left with an "empty" socket (nothing to read from there) but the request not completed because there is still data in the input buffer. In that case, we would hang waiting for a read on the socket, instead of processing data from the input buffer. Change the code to read from the socket only if a loop iteration did not manage to read anything from the input buffer. This means the input buffer is too small for the next thing to process (it contains less than one line of data, for example), and in that case we can safely read from the socket without being blocked. This should fix several cases where the network code was stuck doing nothing, including https://my.justenergy.com/ reported in #13010. The HttpRequest protocol loop is designed using an input buffer storing data from the socket. At each loop, we try to parse some of the data, and then read more from the socket. However, in some cases (in particular with chunks, which we parse only one at a time in a loop iteration), we may not use all the data from the buffer. Eventually, we will be left with an "empty" socket (nothing to read from there) but the request not completed because there is still data in the input buffer. In that case, we would hang waiting for a read on the socket, instead of processing data from the input buffer. Change the code to read from the socket only if a loop iteration did not manage to read anything from the input buffer. This means the input buffer is too small for the next thing to process (it contains less than one line of data, for example), and in that case we can safely read from the socket without being blocked. This should fix several cases where the network code was stuck doing nothing, including https://my.justenergy.com/ reported in #13010.
Categories: Development

style fix.

Mon, 2016-10-31 18:30
Categories: Development

HTTP media IO: fix another case of crash.

Mon, 2016-10-31 18:27
Categories: Development

HTTPMediaIO: fix crash on exit.

Mon, 2016-10-31 17:06
- Remove custom BUrlContext, use the shared one to simplify ownership management. This means all HTTP media streams in an application share the same context (including cookies), however. - Fix deletion of the BUrlRequest object, which cannot reliably happen before the thread has exited. RequestCompleted is too early. - Remove custom BUrlContext, use the shared one to simplify ownership management. This means all HTTP media streams in an application share the same context (including cookies), however. - Fix deletion of the BUrlRequest object, which cannot reliably happen before the thread has exited. RequestCompleted is too early.
Categories: Development

Tracker: Fixed alert button label for renaming of home folder

Mon, 2016-10-31 09:06
Fixed copy&paste error for button label of renaming action. Fixed copy&paste error for button label of renaming action.
Categories: Development

WebPositive: do not change URL while user is editing it

Mon, 2016-10-31 08:22
If you edit the URL while a page is loading, the URL could be changed from the page load process, losing your edits. We now check and update the URL only if the URL bar is currently not focused, so it is possible to edit the URL safely. If you edit the URL while a page is loading, the URL could be changed from the page load process, losing your edits. We now check and update the URL only if the URL bar is currently not focused, so it is possible to edit the URL safely.
Categories: Development

media/ffmpeg: skips libswr, and interleaves samples for planar audio.

Mon, 2016-10-31 08:07
* workaround for #12720. * workaround for #12720.
Categories: Development

HttpDate: fix parsing of 2-digit year dates.

Mon, 2016-10-31 07:59
Fixes #13043. Added the affected cookies to the testsuite to avoid future regressions. Fixes #13043. Added the affected cookies to the testsuite to avoid future regressions.
Categories: Development

http_streamer: don't access headers before HeadersReceived.

Sun, 2016-10-30 22:53
UpdateSize uses HttpResult::Length, which relies on the contetn-length header to be already received from the server. Doing it in ConnectionOpened will not work. Doing it from HeadersReceived, which is called a bit later, will work. This allows using the http_streamer in webkit for youtube video playing, and should fix all uses with a fixed size resource (rather than an endless stream). UpdateSize uses HttpResult::Length, which relies on the contetn-length header to be already received from the server. Doing it in ConnectionOpened will not work. Doing it from HeadersReceived, which is called a bit later, will work. This allows using the http_streamer in webkit for youtube video playing, and should fix all uses with a fixed size resource (rather than an endless stream).
Categories: Development

More fixes to the cookie parser.

Sun, 2016-10-30 19:20
- Fix parsing of strings shorter than 24 bytes (which can only happen if the year has only 3 digits, or the day in month, hour, minute or seconds have only 1). - Only allow the GMT and UTC timezone specifiers, as all HTTP dates should use the GMT zone (but still use a format that allows specifying a timezone name). All cookie tests are now passing. - Fix parsing of strings shorter than 24 bytes (which can only happen if the year has only 3 digits, or the day in month, hour, minute or seconds have only 1). - Only allow the GMT and UTC timezone specifiers, as all HTTP dates should use the GMT zone (but still use a format that allows specifying a timezone name). All cookie tests are now passing.
Categories: Development

strptime: allow dates before 1900.

Sun, 2016-10-30 19:19
While struct tm makes things more confusing than they need to be, nothing in the API prevents handling those. So let's just accept them. Fixes some strange cases in the cookie test suite (with a cookie set to expire in year 101 B.C.) While struct tm makes things more confusing than they need to be, nothing in the API prevents handling those. So let's just accept them. Fixes some strange cases in the cookie test suite (with a cookie set to expire in year 101 B.C.)
Categories: Development

BNetworkCookie: fix overflow in date computation.

Sun, 2016-10-30 17:04
Fix one of the two failing tests from the cookie testsuite. Fix one of the two failing tests from the cookie testsuite.
Categories: Development

Fix #13042: Make sure all cookies are saved

Sun, 2016-10-30 15:30
Categories: Development

radeon_hd: Add missing HD 7570. Clean up some PCI names

Sun, 2016-10-30 13:39
* Should resolve #12977. There isn't much info in the wild about the HD 7570. * Clean up naming of some cards per updated AMD pci naming table. * Should resolve #12977. There isn't much info in the wild about the HD 7570. * Clean up naming of some cards per updated AMD pci naming table.
Categories: Development

xhci: Check and report interface version

Sun, 2016-10-30 13:25
* We could also check to make sure it isn't 0xffff and bail if it is... not really a solution but helps prevent kdl's if our mapped memory is corrupted. * That seems like more of a hack though, i'd like to solve the real problem. * We could also check to make sure it isn't 0xffff and bail if it is... not really a solution but helps prevent kdl's if our mapped memory is corrupted. * That seems like more of a hack though, i'd like to solve the real problem.
Categories: Development

Small GUI fixes in Notification prefs

Sun, 2016-10-30 09:24
* Open the window a bit bigger so the scroll bar in the "Notifications" view isn't activated. * Make the window horizontally resizable. * Sentence casing * Open the window a bit bigger so the scroll bar in the "Notifications" view isn't activated. * Make the window horizontally resizable. * Sentence casing
Categories: Development

style fix.

Sun, 2016-10-30 08:15
Categories: Development