mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 14:59:49 +00:00
Update InspIRCd. (#247)
This commit is contained in:
5
.github/workflows/test-devel.yml
vendored
5
.github/workflows/test-devel.yml
vendored
@ -153,12 +153,7 @@ jobs:
|
|||||||
- name: Build InspIRCd
|
- name: Build InspIRCd
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/inspircd/
|
cd $GITHUB_WORKSPACE/inspircd/
|
||||||
|
|
||||||
# Insp3 <= 3.16.0 and Insp4 <= 4.0.0a21 don't support -DINSPIRCD_UNLIMITED_MAINLOOP
|
|
||||||
patch src/inspircd.cpp < $GITHUB_WORKSPACE/patches/inspircd_mainloop.patch || true
|
|
||||||
|
|
||||||
./configure --prefix=$HOME/.local/inspircd --development
|
./configure --prefix=$HOME/.local/inspircd --development
|
||||||
|
|
||||||
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
||||||
make install
|
make install
|
||||||
- name: Make artefact tarball
|
- name: Make artefact tarball
|
||||||
|
5
.github/workflows/test-devel_release.yml
vendored
5
.github/workflows/test-devel_release.yml
vendored
@ -61,12 +61,7 @@ jobs:
|
|||||||
- name: Build InspIRCd
|
- name: Build InspIRCd
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/inspircd/
|
cd $GITHUB_WORKSPACE/inspircd/
|
||||||
|
|
||||||
# Insp3 <= 3.16.0 and Insp4 <= 4.0.0a21 don't support -DINSPIRCD_UNLIMITED_MAINLOOP
|
|
||||||
patch src/inspircd.cpp < $GITHUB_WORKSPACE/patches/inspircd_mainloop.patch || true
|
|
||||||
|
|
||||||
./configure --prefix=$HOME/.local/inspircd --development
|
./configure --prefix=$HOME/.local/inspircd --development
|
||||||
|
|
||||||
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
||||||
make install
|
make install
|
||||||
- name: Make artefact tarball
|
- name: Make artefact tarball
|
||||||
|
7
.github/workflows/test-stable.yml
vendored
7
.github/workflows/test-stable.yml
vendored
@ -189,17 +189,12 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: inspircd
|
path: inspircd
|
||||||
ref: v3.15.0
|
ref: v3.17.0
|
||||||
repository: inspircd/inspircd
|
repository: inspircd/inspircd
|
||||||
- name: Build InspIRCd
|
- name: Build InspIRCd
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/inspircd/
|
cd $GITHUB_WORKSPACE/inspircd/
|
||||||
|
|
||||||
# Insp3 <= 3.16.0 and Insp4 <= 4.0.0a21 don't support -DINSPIRCD_UNLIMITED_MAINLOOP
|
|
||||||
patch src/inspircd.cpp < $GITHUB_WORKSPACE/patches/inspircd_mainloop.patch || true
|
|
||||||
|
|
||||||
./configure --prefix=$HOME/.local/inspircd --development
|
./configure --prefix=$HOME/.local/inspircd --development
|
||||||
|
|
||||||
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
||||||
make install
|
make install
|
||||||
- name: Make artefact tarball
|
- name: Make artefact tarball
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
When a client registers (ie. sends USER+NICK), InspIRCd does not
|
|
||||||
immediately answers with 001. Instead it waits for the next iteration
|
|
||||||
of the main loop to call `DoBackgroundUserStuff`.
|
|
||||||
|
|
||||||
However, this main loop executes only once a second. This is usually
|
|
||||||
fine, but makes irctest considerably slower, as irctest uses hundreds
|
|
||||||
of very short-lived connections.
|
|
||||||
|
|
||||||
This patch removes the frequency limitation of the main loop to make
|
|
||||||
InspIRCd more responsive.
|
|
||||||
|
|
||||||
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
|
|
||||||
index 5760e631b..1da0285fb 100644
|
|
||||||
--- a/src/inspircd.cpp
|
|
||||||
+++ b/src/inspircd.cpp
|
|
||||||
@@ -680,7 +680,7 @@ void InspIRCd::Run()
|
|
||||||
* timing using this event, so we dont have to
|
|
||||||
* time this exactly).
|
|
||||||
*/
|
|
||||||
- if (TIME.tv_sec != OLDTIME)
|
|
||||||
+ if (true)
|
|
||||||
{
|
|
||||||
CollectStats();
|
|
||||||
CheckTimeSkip(OLDTIME, TIME.tv_sec);
|
|
||||||
|
|
@ -148,7 +148,7 @@ software:
|
|||||||
name: InspIRCd
|
name: InspIRCd
|
||||||
repository: inspircd/inspircd
|
repository: inspircd/inspircd
|
||||||
refs: &inspircd_refs
|
refs: &inspircd_refs
|
||||||
stable: v3.15.0
|
stable: v3.17.0
|
||||||
release: null
|
release: null
|
||||||
devel: master
|
devel: master
|
||||||
devel_release: insp3
|
devel_release: insp3
|
||||||
@ -158,12 +158,7 @@ software:
|
|||||||
separate_build_job: true
|
separate_build_job: true
|
||||||
build_script: &inspircd_build_script |
|
build_script: &inspircd_build_script |
|
||||||
cd $GITHUB_WORKSPACE/inspircd/
|
cd $GITHUB_WORKSPACE/inspircd/
|
||||||
|
|
||||||
# Insp3 <= 3.16.0 and Insp4 <= 4.0.0a21 don't support -DINSPIRCD_UNLIMITED_MAINLOOP
|
|
||||||
patch src/inspircd.cpp < $GITHUB_WORKSPACE/patches/inspircd_mainloop.patch || true
|
|
||||||
|
|
||||||
./configure --prefix=$HOME/.local/inspircd --development
|
./configure --prefix=$HOME/.local/inspircd --development
|
||||||
|
|
||||||
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
CXXFLAGS=-DINSPIRCD_UNLIMITED_MAINLOOP make -j 4
|
||||||
make install
|
make install
|
||||||
irc2:
|
irc2:
|
||||||
|
Reference in New Issue
Block a user