Compare commits

..

10 Commits

Author SHA1 Message Date
b322a3f0b0 Exclude points when choosing what to remove from the net during nodelist processing
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 34s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m33s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
2024-11-26 13:34:19 +11:00
0bbff33fdd Added filefix %LIST
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 45s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
2024-11-26 12:44:21 +11:00
67cbfa4c64 Split out areafix command processing, implemented start of filefix 2024-11-26 12:23:07 +11:00
cf95b2dab4 Deprecate singleOrNew(), we use firstOrNew() instead 2024-11-23 23:26:06 +11:00
95969a857b Change NodelistImport display when using job:list 2024-11-23 23:26:06 +11:00
58fe142f7c Added ansitex font 2024-11-23 23:26:06 +11:00
43c4f1511d Remove unused config files 2024-11-23 23:26:06 +11:00
b2b519a2c4 Remove CommProtocolReceive commands, Remove protocol onConnect() functions, pass Setup::class to protocols 2024-11-23 23:26:05 +11:00
7352a74a12 Deprecate singleOrFail() in favour of sole() 2024-11-23 23:26:05 +11:00
5874b2aef1 Reduce the need for Mailer::class in protocols 2024-11-23 23:26:05 +11:00
2 changed files with 4 additions and 12 deletions

View File

@ -360,11 +360,11 @@ abstract class Protocol
* Setup a session with a remote client
*
* @param SocketClient $client Socket details of session
* @param Address $o If we have an address, we originated a session to this Address
* @param Address|null $o If we have an address, we originated a session to this Address
* @return int
* @throws \Exception
*/
public function session(SocketClient $client,Address $o): int
public function session(SocketClient $client,Address $o=NULL): int
{
if ($o->exists)
Log::withContext(['ftn'=>$o->ftn]);
@ -395,17 +395,14 @@ abstract class Protocol
}
// We are an IP node
$this->optionSet(self::O_TCP);
$this->client = $client;
// @todo This appears to be a bug in laravel? Need to call app()->isDownForMaintenance() twice?
app()->isDownForMaintenance();
$this->down = app()->isDownForMaintenance();
switch (get_class($this)) {
case EMSI::class:
Log::debug(sprintf('%s:- Starting EMSI',self::LOGKEY));
$this->optionSet(self::O_TCP);
$rc = $this->protocol_init();
if ($rc < 0) {
Log::error(sprintf('%s:! Unable to start EMSI [%d]',self::LOGKEY,$rc));
@ -420,14 +417,10 @@ abstract class Protocol
case Binkp::class:
Log::debug(sprintf('%s:- Starting BINKP',self::LOGKEY));
$this->optionSet(self::O_TCP);
$rc = $this->protocol_session($this->originate);
break;
case DNS::class:
return $this->protocol_session();
default:
Log::error(sprintf('%s:! Unsupported session type [%s]',self::LOGKEY,get_class($this)));

View File

@ -155,8 +155,7 @@ final class SocketServer {
$r = new SocketClient($this->server);
if ($r->hasData(30)) {
if (! ($this->handler[0]->{$this->handler[1]}($r)))
exit(0);
$this->handler[0]->{$this->handler[1]}($r);
// Sleep so our thread has a chance to pick up the data from our connection
usleep(50000);