Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MidwestLimey

@MidwestLimey
About
Posts
1.8k
Topics
82
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Socket closing without FIN from peer
    M MidwestLimey

    Eventually (via Wireshark) identified a rogue client side process connecting that used the same client ID ... which caused my service to disconnect any connections with that ID ... d'oh! Still not sure how that's happening from the client, but at least I'm not going mad! :)

    062142174041062102

    C# help css database sysadmin debugging

  • It's been a strange week
    M MidwestLimey

    A few weeks ago my wife had fast growing a lump removed from her thyroid. Thankfully benign. But just 16 months after losing my Dad to cancer, 7 months after losing my Aunt to cancer, and with her Dad in chemo, it was not a fun filled week. Just to top it off I've also been defeated by my own code! First time I've ever had to post a question here. New territory indeed.

    062142174041062102

    The Lounge css help question career learning

  • Socket closing without FIN from peer
    M MidwestLimey

    I've got an oddball issue I'm troubleshooting. I have a heavy duty data exchange service (windows service hosted in a data center) currently routing data requests from about 120 clients. Any individual client has about 5-15 other clients able to query them. At any given time around 100 or so will be connected, each with a single socket to the exchange service. Most client connection come in from the internet (a few are also hosted at the same data center). The behaviour I'm observing is that frequently the service will carry out a formal disconnect (exchange terminate messages, and then close the socket) from the client after being connected for less than 10 seconds. Tracking it down I've identified the problem to the EndRead method below. I have the socket managed by custom implementation of Stream.

    public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) {
    if (null != _socket && _socket.Connected)
    return _socket.BeginReceive(buffer, offset, count, SocketFlags.None, callback, state);
    else
    return null;
    }

    public override int EndRead(IAsyncResult asyncResult) {
    int result = -1;
    if (null != _socket && _socket.Connected) {
    try { result = _socket.EndReceive(asyncResult); } catch (ObjectDisposedException) { }
    }
    return result;
    }

    One of two things are happening (my logging didn't track which). Either _socket.Connected is false, or _socket.EndReceive is throwing ObjectDisposedException, since -1 is returned. Wireshark captures from both the server and client sides show no FIN or RST was ever sent by the client prior to the formal disconnect, instead the disconnect is incidentally caused by Dispose logic once the read fails. Since the connection is in fact still active the terminate message is sent and responded to. If any other exception was thrown it would have been captured and logged. The read that fails is the first of 3 reads for a complete message (being Header, payload length and payload), nor does the Wireshark trace show any message attempted immediately before the disconnect. The last client message was appropriately responded to by the service. Any one have any hints on where to go hunting for answers? Addendum: This is TCP.

    062142174041062102

    C# help css database sysadmin debugging

  • How To Backup and Resotre .mdf file local database
    M MidwestLimey

    Now, not everyone's first language is English. However you did post your question in perfectly legible English so I can't give you a free ride there. At the top of the page is the following blurb:

    Quote:

    Technical discussions are encouraged, but click here to ask your programming question.

    So if you'd just delete this post and click on the link at top I'm sure someone will help you with this ...

    062142174041062102

    The Lounge database help tutorial

  • Security by Obfuscation by Laziness by Complex systems
    M MidwestLimey

    Our app works almost entirely on metadata. Working with said can be complicated and tedious at times, especially when trying to debug or setup features. So naturally, being lazy, I spent a lot of time and effort building a tool to enable me to be lazy. And being lazy I made sure all the commands were terse, as in a 4 letter command is akin to a German compound noun. I just typed in the following commmand:

    oby -nam lp ei 12 tag

    Perhaps I went too far?

    062142174041062102

    The Lounge security debugging question workspace

  • Not completely annoyed!
    M MidwestLimey

    Is about the best way to describe getting a Passport renewal from Her Majesty's Government. Sure it cost 40% more in real terms and took 4 times longer than before. But at 13 days I know it could have been so much worse! Apropos of nothing, anyone here heading yo STLDODN this week?

    062142174041062102

    The Lounge question

  • Bobwarp
    M MidwestLimey

    Is it just me, or has Bob entered a time warp:

    Quote:

    indicates new messages since 31-Dec-99 22:00

    Quote:

    indicates new messages since 31-Dec-99 18:00

    062142174041062102

    The Lounge

  • Passport to Bureaucracy, a game for all the family ...
    M MidwestLimey

    PhilLenoir wrote:

    I'm not sure if it's worth replacing the UK ones now

    Me either, but a masochistic part of me wanted to see how bad they've made the process! And I like going through the quick lane at Heathrow ...

    062142174041062102

    The Lounge game-dev question

  • Passport to Bureaucracy, a game for all the family ...
    M MidwestLimey

    Forogar wrote:

    Using the UK renewal by post I expect you will get it back sometime before 2016!

    I admire your optimism, it's truly an asset.

    062142174041062102

    The Lounge game-dev question

  • Passport to Bureaucracy, a game for all the family ...
    M MidwestLimey

    Sorted. Actually I was in London 2 weeks ago and could have had it done in a couple of hours, had I thought to book.

    062142174041062102

    The Lounge game-dev question

  • Passport to Bureaucracy, a game for all the family ...
    M MidwestLimey

    Well I decided against better judgment to renew my UK passport, technically I could survive on my US one, but what the hey. Last time I renewed it in 2004 I overnighted it to the Embassy in DC - and 80 quid poorer and 3 days later received my renewed passport. Monday evening I Fedex'd it to the much more convenient location of Durham, UK that is. They received it 6 hours ago. Between shipping and the new fees this one will cost 145 quid, taking into account shipping and inflation I'd say it's costing me close to 30% more. So for those who enjoy a betting game, any bets on when (if) I get it back?

    062142174041062102

    The Lounge game-dev question

  • Been sent a link...
    M MidwestLimey

    glennPattonPUB wrote:

    Also anyone seed Darlek Dave!

    I have never seeded Darlek Dave, rumours to the effect are unfounded gossip!

    062142174041062102

    The Lounge question

  • Time to Sell Apple Stock
    M MidwestLimey

    Wow, not the kind of thread I'd expect to see Godwin's law unfold!

    062142174041062102

    The Lounge ios com

  • An important question of morality, duty and culpability ..
    M MidwestLimey

    Roger Wright wrote:

    Obviously the kid remembered, from the first flight, what a miserable flying companion you are and was dreading the return.

    On both journeys he was sat with my wife. You could be on to something ...

    062142174041062102

    The Lounge question

  • An important question of morality, duty and culpability ..
    M MidwestLimey

    charlieg wrote:

    With 3 kids, you ought to know better ;) but I understand.

    Sure do. But it's nice to dream ;)

    062142174041062102

    The Lounge question

  • An important question of morality, duty and culpability ..
    M MidwestLimey

    In 3 days I shall have to endure enjoy a 7.5 hour flight home with my 3 kids and wife in tow. On our last flight, the littlest one unleashed screams of the damned of hades cried somewhat upon boarding the return flight, and didn't cease until landing and deboarding some 2 hours later. We know antihistamines have no effect on this kid, his mutant metabolism laughs in the face of drugs his twee body and mind so alarmed at the flight. I have to drive 90 miles after landing, since my wife refuses to (a) drive on the correct side and (b) drive a manual shift vehicle. Would it be wrong of me to accidently ingest a couple of Benedryl and then stupidly drink a glass of wine on the flight? It certainly works on me ..

    062142174041062102

    The Lounge question

  • Amazon Fire TV - opinions sought ... (*)
    M MidwestLimey

    I have finally convinced she-that-must-be-obeyed that paying vast quantities of (my) money for the privilege of not watching many channels of crap is a waste. Especially as we have the goodly services of Messrs. Prime, Netflix and Hulu. Whereas I am happiest when tinkering with and fixing technology, she is most certainly not. Ergo I'm looking for a foolproof, easy-to-use set-top box that won't involve me (or the kids) to find everything. After reading reviews on line I'm considering the Amazon Fire TV. Comments and viable alternatives welcome. * - Opinion must be relevant to stated item. Opinion must be based on actual use of stated item. Opinion must be based on use longer than 10 minutes of frustrated noob-dom, and will ideally have involved actually getting it to work.

    062142174041062102

    The Lounge html discussion

  • Car history (as per Top Gear)
    M MidwestLimey

    Missed this thread the other day, but what the hey! Never owned a car in Blighty, 'twas but a kid and then a dirt poor student. '92 Toyota Tercel - Picked it up in Chicago and brought her back to St. Louis. Bought for $3k, ran for over 30k miles and sold for $2k. Unfortunately the previous owners had ragged the cooling system. Still $1k depreciation + $400 for a new radiator for over 30k of driving isn't to bad for '98-'00. '96 Jeep Cherokee - Had/Have a thing for Jeeps. Loved the unreliable heap. Fuel pump would fail intermittently. Eventually forced to sell after the exhaust manifold cracked. '97 Saturn SC2 - Wife's workhorse bought new and ran in to the ground over 7 years. Reliable but ugly as sin by the end. '02 Jeep Liberty - Reliable, but spent waaay toooo much. Sold after having kids, gas prices shooting through the roof and facing a 60 mile round trip every day. '04 Honda Accord - Wife's replacement for the SC2. Nice, if boring, car. '06 Subaru Legacy GT - Bought new, improving my gas mileage (not hard to beat 16mpg), but needed something fun and this did the trick. '08 Kia Sedona - New car purchased in the midst of the downturn. Our newer workhouse for hauling the kids (had 2 at that time, three now!). '14 Dodge Challenger RT Plus / 6 Sp. Manual - Told to buy a car that fits three kids seats (the Subbie did not). Daddy needed V8 and 20" wheels.

    062142174041062102

    The Lounge com

  • What was the first car you ever drove?
    M MidwestLimey

    Oddly a Ford Transit Van. When I was 14. I almost rolled it in a tight turn and I wasn't allowed to drive it after that. No, we weren't on the public highways!

    062142174041062102

    The Lounge question

  • Nicely done local Ford dealership!
    M MidwestLimey

    Keith Barrow wrote:

    Worst car I ever owned, and I owned a car screwed together in Birmingham on the late 70s.

    They used screws?? Luxury! Our family's '79 midlands mobile was held together with spit and sticky tape. Eventually the rust helped add stability.

    062142174041062102

    The Lounge css performance help question lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups