• socket.recvline() and file_utime()

    From MCMLXXIX@VERT/MDJ to Digital Man on Thu Mar 11 13:22:08 2010
    file_touch("test.txt");ãlog("original mod_time: " + file_date("test.txt"));ãlog("changing file mod_time to 1267455497");ãfile_utime("test.txt",1267455497,1267455497);ãlog("new file mod_time: " + file_date("test.txt"));ãfile_remove("test.txt");ããOUTPUT:ãã 3/11 01:10:51p Node 1 original mod_time: 1268331052ã 3/11 01:10:51p Node 1 changing file mod_time to 1267455497ã 3/11 01:10:51p Node 1 new file mod_time: 1267455498ããIt's driving me insane.. doesn't make senseã----------------------------------------------------ããvar sock=new Socket();ãsock.bind(10088);ãsock.connect("localhost",25);ãlog(time());ãlog("connected: " + sock.is_connected);ãlog("nonblocking: " + sock.nonblocking);ããOUTPUT:ãã 3/11 01:19:09p Node 2 1268331549ã 3/11 01:19:09p Node 2 connected: trueã 3/11 01:19:09p Node 2 nonblocking: falseã 3/11 01:19:10p Node 2 nullã 3/11 01:19:10p Node 2 1268331550ãã-------------------------ãalso driving me insane..ããdoes anyone have an insight on these things?ããunless I'm missing something, the sock.recvline() should wait 10 secondsãbefore moving on, but it doesnt.ãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Digital Man@VERT to MCMLXXIX on Thu Mar 11 15:12:08 2010
    Re: socket.recvline() and file_utime()ã By: MCMLXXIX to Digital Man on Thu Mar 11 2010 01:22 pmãã > file_touch("test.txt");ã > log("original mod_time: " + file_date("test.txt"));ã > log("changing file mod_time to 1267455497");ã > file_utime("test.txt",1267455497,1267455497);ã > log("new file mod_time: " + file_date("test.txt"));ã > file_remove("test.txt");ã >ã > OUTPUT:ã >ã > 3/11 01:10:51p Node 1 original mod_time: 1268331052ã > 3/11 01:10:51p Node 1 changing file mod_time to 1267455497ã > 3/11 01:10:51p Node 1 new file mod_time: 1267455498ã >ã > It's driving me insane.. doesn't make senseããWhat filesystem is "test.txt" being stored on? Some filesystems (e.g. FAT,ãFAT32) only support 2-second granularity for file date/times.ããHere's a Microsoft article on the subject:ããhttp://msdn.microsoft.com/en-us/library/ms724290%28VS.85%29.aspxããã > ----------------------------------------------------ã >ã > var sock=new Socket();ã > sock.bind(10088);ããDon't bind specific port numbers for outbound connections (as we discussed).ãã > sock.connect("localhost",25);ã > log(time());ã > log("connected: " + sock.is_connected);ã > log("nonblocking: " + sock.nonblocking);ã >ã > OUTPUT:ã >ã > 3/11 01:19:09p Node 2 1268331549ã > 3/11 01:19:09p Node 2 connected: trueã > 3/11 01:19:09p Node 2 nonblocking: falseã > 3/11 01:19:10p Node 2 nullã > 3/11 01:19:10p Node 2 1268331550ã >ã > -------------------------ã > also driving me insane..ã >ã > does anyone have an insight on these things?ã >ã > unless I'm missing something, the sock.recvline() should wait 10 secondsã > before moving on, but it doesnt.ããI guess you didn't paste all your code - there was no call to recvline() there.ãã digital manããSnapple "Real Fact" #18:ãA jellyfish is 95% water.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Rassilon@VERT/ECBBS to Digital Man on Thu Mar 11 22:27:20 2010
    Re: socket.recvline() and file_utime()ã By: Digital Man to MCMLXXIX on Thu Mar 11 2010 15:12:08ããSorry, I know it's off-topic but I just couldn't help myself.ãã > Snapple "Real Fact" #18:ã > A jellyfish is 95% water.ããJellyfish heaven where jellyfish go...to get away from Mormons & drunkãEskimos....ãã(Had to)ãã-Rass...ãã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From MCMLXXIX@VERT/MDJ to Digital Man on Fri Mar 12 09:51:00 2010
    Re: socket.recvline() and file_utime()ã By: Digital Man to MCMLXXIX on Thu Mar 11 2010 15:12:08ãã > Re: socket.recvline() and file_utime()ã > By: MCMLXXIX to Digital Man on Thu Mar 11 2010 01:22 pmã > ã > > file_touch("test.txt");ã > > log("original mod_time: " + file_date("test.txt"));ã > > log("changing file mod_time to 1267455497");ã > > file_utime("test.txt",1267455497,1267455497);ã > > log("new file mod_time: " + file_date("test.txt"));ã > > file_remove("test.txt");ã > >ã > > OUTPUT:ã > >ã > > 3/11 01:10:51p Node 1 original mod_time: 1268331052ã > > 3/11 01:10:51p Node 1 changing file mod_time to 1267455497ã > > 3/11 01:10:51p Node 1 new file mod_time: 1267455498ã > >ã > > It's driving me insane.. doesn't make senseã > ã > What filesystem is "test.txt" being stored on? Some filesystems (e.g. FAT,ã > FAT32) only support 2-second granularity for file date/times.ã > ã > Here's a Microsoft article on the subject:ã > ã > http://msdn.microsoft.com/en-us/library/ms724290%28VS.85%29.aspxã > ã > ã > > ----------------------------------------------------ã > >ã > > var sock=new Socket();ã > > sock.bind(10088);ã > ã > Don't bind specific port numbers for outbound connections (as we discussed).ã > ã > > sock.connect("localhost",25);ã > > log(time());ã > > log("connected: " + sock.is_connected);ã > > log("nonblocking: " + sock.nonblocking);ã > >ã > > OUTPUT:ã > >ã > > 3/11 01:19:09p Node 2 1268331549ã > > 3/11 01:19:09p Node 2 connected: trueã > > 3/11 01:19:09p Node 2 nonblocking: falseã > > 3/11 01:19:10p Node 2 nullã > > 3/11 01:19:10p Node 2 1268331550ã > >ã > > -------------------------ã > > also driving me insane..ã > >ã > > does anyone have an insight on these things?ã > >ã > > unless I'm missing something, the sock.recvline() should wait 10 secondsã > > before moving on, but it doesnt.ã > ã > I guess you didn't paste all your code - there was no call to recvline() theã > ã > digital manã > ã ãturns out I was wrong anyway.. surprise surprise!ã though I still can't duplicate that actual example. I swear it happened ãããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã