Fixup Integ Test + Limit Messages in Server Memory #36

Слито
dan слито 1 коммит(ов) из integ_test_fix в master 2018-06-09 21:21:43 +00:00
sarah прокомментировал(а) 2018-06-08 17:49:18 +00:00
Владелец
Описание отсутствует.
dan прокомментировал(а) 2018-06-09 16:31:05 +00:00
Владелец

? ms.rotated - Maybe "rolledOver"? or wrappedAround?

integ tests:

117 +		time.Sleep(time.Second * 120)

Not needed, the only thing under it is the starting of the 3 peers, and a currently 70 second for their onions to come online too. I stream lined the code a bit this way so they and the test server could come online all at once, before any peering ations were done. If you need just increase the sleep 70 at ~124 to 120

Why did you move the server join down? I had them fire off all those actions in a group so it was streamlined so the integ test ran a bit faster :)

(your 183...)
also the tests shouldnt use log (did t.log actually work tho? maybe I just muted log.) because the first thing i do at the top of the test is mute log since I don't want to see all the trace log code

We may want to make waitForPeerServerConnection and waitForPeerPeerConnection then and remove even more sleeps

? ms.rotated - Maybe "rolledOver"? or wrappedAround? integ tests: 117 + time.Sleep(time.Second * 120) Not needed, the only thing under it is the starting of the 3 peers, and a currently 70 second for their onions to come online too. I stream lined the code a bit this way so they and the test server could come online all at once, before any peering ations were done. If you need just increase the sleep 70 at ~124 to 120 Why did you move the server join down? I had them fire off all those actions in a group so it was streamlined so the integ test ran a bit faster :) (your 183...) also the tests shouldnt use log (did t.log actually work tho? maybe I just muted log.) because the first thing i do at the top of the test is mute log since I don't want to see all the trace log code We may want to make waitForPeerServerConnection and waitForPeerPeerConnection then and remove even more sleeps
dan прокомментировал(а) 2018-06-09 16:36:46 +00:00
Владелец

Also I think the file storage needs reworking, we are still just filling the file infinitely and on reload, its still appending to the buffer so it will increase its size well beyond max size

Also I think the file storage needs reworking, we are still just filling the file infinitely and on reload, its still appending to the buffer so it will increase its size well beyond max size
sarah прокомментировал(а) 2018-06-09 16:41:04 +00:00
Автор
Владелец

Yeah I mentioned in the previous PR that I will fixup the file stuff later "This adds a basic circular buffer for messages, still need to rotate the underlying file, but this will prevent memory getting too bloated (partial fix for #22)" handling the file stuff is going to involve much more rework.

t.Log works, the muted log is just for global log stuff in the rest of the library.

I think the Sleeps might be a a debugging thing, I'll remove and retest.

Yeah I mentioned in the previous PR that I will fixup the file stuff later "This adds a basic circular buffer for messages, still need to rotate the underlying file, but this will prevent memory getting too bloated (partial fix for #22)" handling the file stuff is going to involve much more rework. t.Log works, the muted log is just for global log stuff in the rest of the library. I think the Sleeps might be a a debugging thing, I'll remove and retest.
dan прокомментировал(а) 2018-06-09 16:45:48 +00:00
Владелец

Then maybe at least comment out the init code loading from the file cus I think it totally breaks everything :)

Then maybe at least comment out the init code loading from the file cus I think it totally breaks everything :)
sarah прокомментировал(а) 2018-06-09 19:13:27 +00:00
Автор
Владелец

Removed sleeps and put calls back to where they were, reverted t.Log.

We talked about the server stuff offline, leaving unchanged.

Removed sleeps and put calls back to where they were, reverted t.Log. We talked about the server stuff offline, leaving unchanged.
dan закрыл этот запрос на слияние 2018-06-09 21:21:43 +00:00
Войдите, чтобы присоединиться к обсуждению.
Нет рецензентов
Нет этапа
Нет назначенных лиц
2 участников
Уведомления
Срок выполнения
Срок действия недействителен или находится за пределами допустимого диапазона. Пожалуйста, используйте формат 'гггг-мм-дд'.

Срок выполнения не установлен.

Зависимости

Зависимостей нет.

Ссылка: cwtch.im/cwtch#36
Описание отсутствует.