Jump to content

Recommended Posts

Hi,

I have been a problem. sometimes my server ch is downed. 

Syslog:

Apr  5 14:56:31.283292 :: reallocating buffer to 8192, current 1024
Apr  5 14:56:31.283905 :: MARK_SERVER: Sending blocks. (imgIdx 1 diff 69 size 538038)
Apr  5 14:56:31.283916 :: buffer_adjust 538028 current 0/524288
SYSERR: Apr  5 14:56:31.283936 :: safe_create: calloc failed [12] Cannot allocate memory
SYSERR: Apr  5 14:56:31.287285 :: buffer_new: calloc failed [12] Cannot allocate memory
autogame starting game Sun Apr  5 14:58:53 EEST 2020
running ./game

/var/log messages

14:58:32 serverNew kernel: sonewconn: pcb 0xfffff8009c236498: Listen queue overflow: 193 already in queue awaiting acceptance (985 occurrences)

 

Link to comment
https://metin2.dev/topic/23312-ch-down-problem-with-guild-mark/
Share on other sites

I tried some suggestion ;

			if (buffer_has_space(m_lpOutputBuffer) < iSize + 8)
			{
				buffer_adjust_size(m_lpOutputBuffer, iSize);

				if (buffer_has_space(m_lpOutputBuffer) < iSize + 8)
				{
					sys_err(
					"desc buffer mem_size overflow : ",
					"	memsize(%u) ",
					"	write_pos(%u)",
					"	iSize(%d)", 
					m_lpOutputBuffer->mem_size,
					m_lpOutputBuffer->write_point_pos,
					iSize);

					m_iPhase = PHASE_CLOSE;
				}
			}

and protocol.h removed comment for  //buffer_adjust_size(pbuf, length);

 

it caused other problems. normally doesnt have problem but after one time who login game and move is disconnected

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.