You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julia version 1.5.0
my code just start a socket server, I run the code,the Julia main process memory will increase very fast and high,but I can not found the memory used where in my code.
my code as below:
import Sockets
import Future
import Distributed
# import JuMP# import PlotsfunctionclientHandle(client)
println("Client EST")
local fileHandler =open(raw"./clientRecordMsg.txt","w+")
whileisopen(client)
msgVector =readavailable(client)
clientMsg=""for byte in msgVector
clientMsg*=string(Char(byte))
endprintln(clientMsg)
ifoccursin(raw"writeFile",clientMsg)
write(fileHandler,clientMsg*"\n")
write(client, "write to file")
elseifoccursin(raw"printMsg",clientMsg)
println(clientMsg)
write(client, "print Msg to console\n")
elseifoccursin(raw"server Quit",clientMsg)
println("server Quit")
runFlag=falsebreak;
endendclose(fileHandler)
endfunctiontcpServerTest(port)
server = Sockets.listen(port)
local runFlag =truelocal counter =UInt64(0)
while runFlag
Sockets.accept(clientHandle,server)
endclose(server)
endprintln("Start\n")
# @async tcpServerTest(8888)tcpServerTest(8888)
println("End\n")
The text was updated successfully, but these errors were encountered:
Julia version 1.5.0
my code just start a socket server, I run the code,the Julia main process memory will increase very fast and high,but I can not found the memory used where in my code.
my code as below:
The text was updated successfully, but these errors were encountered: